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 add_intervals functions with option for days in a year #739

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scgkiran
Copy link
Contributor

No description provided.

@scgkiran
Copy link
Contributor Author

This is used by BFT tests and in duckdb & postgres dialects

@@ -374,6 +374,9 @@ scalar_functions:
value: interval_year
- name: y
value: interval_year
options:
Copy link
Member

Choose a reason for hiding this comment

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

Would these options also apply to any place an interval was being used?

@@ -374,6 +374,9 @@ scalar_functions:
value: interval_year
- name: y
value: interval_year
options:
days_in_year:
values: [ YEAR_366DAYS, YEAR_365DAYS, YEAR_360DAYS ]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should hold off on introducing this option without thinking more broadly about this.

Additionally, this concept (days in year) is irrelevant to interval_day and interval_year. Neither of those mix days and years. It is really only relevant when you bring in interval_compound.

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