Skip to content

Default value for dates #671

Answered by Skyscimitar
HuifangYeo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Huifang,

As of version 0.7.0 you can set the default_value attribute on the columns of your table when creating it, or directly on the column. See https://docs.atoti.io/latest/lib/atoti/atoti.column.html#atoti.Column.default_value and https://docs.atoti.io/latest/lib/atoti/atoti.column.html#atoti.Column.default_value for more information. Note that the default_value parameter has also been added to all the read_* methods.

So in your case when creating your table you could add session.read_*(..., default_values={"CLAIM_DATE": "N/A"})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tibdex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants