Skip to content
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

feat: update interval_day function extensions to include precision param #679

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

jacques-n
Copy link
Contributor

No description provided.

Copy link
Member

@vbarua vbarua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. Left one comment.

@@ -281,31 +281,31 @@ scalar_functions:
- name: x
value: timestamp
- name: y
value: interval_day
value: interval_day<P>
return: timestamp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible not super relevant as we're slowly deprecating timestamp, but given that timestamp has microsecond precision should this function only apply to interval_day<6> values, or this implicit in the output having a microsecond precision?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would assume we'd allow any type but the output would always be reduced to precision 6.

mostly inclined not to worry about since this type is going away anyway.

@jacques-n jacques-n merged commit 28025cb into substrait-io:main Aug 12, 2024
13 checks passed
EpsilonPrime pushed a commit that referenced this pull request Aug 21, 2024
Fixes a bug in `functions_datetime.yaml` that makes it un-parseable by
substrait-java, introduced in #679. The `?` for nullability must come
before the parameters:
https://substrait.io/types/type_parsing/#type-syntax-parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants