-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validations for time spines #344
Conversation
783f1e3
to
f4fcf3e
Compare
f4fcf3e
to
e6e1eb8
Compare
e6e1eb8
to
bf14e8a
Compare
514bd38
to
71754db
Compare
primary_column=PydanticTimeSpinePrimaryColumn(name="ds", time_granularity=TimeGranularity.DAY), | ||
custom_granularities=[ | ||
PydanticTimeSpineCustomGranularityColumn(name="retail_year"), | ||
PydanticTimeSpineCustomGranularityColumn(name="quarter"), # todo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is something blocking this validation? Seems like its not in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops I just forgot to remove the comment! It is validated here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the "names cannot match reserved time granularity keywords" one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooo didn't realize it was already in the code inside check_valid_name
and that was done prior to this PR
Description
Validations for time spines.
Also bumps to a new production version. This new version of DSI will need to be released to mantle before custom calendar is released as a feature.
Checklist
changie new
to create a changelog entry