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

Minor: Fix document Interval syntax #9542

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Minor: Fix document Interval syntax #9542

merged 1 commit into from
Mar 11, 2024

Conversation

yyy1000
Copy link
Contributor

@yyy1000 yyy1000 commented Mar 10, 2024

Which issue does this PR close?

Closes #9525 .

Rationale for this change

As this #9525 (comment) said

interval syntax always returns a type of IntervalMonthDayNano

And the reason is #5801 but document has not been updated yet.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

| Interval(YearMonth) |
+-------------------------------------+
+---------------------------------------------------------------------+
| arrow_typeof(IntervalMonthDayNano("79228162514264337593543950336")) |
Copy link
Contributor

Choose a reason for hiding this comment

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

why isn't it 1? 🤔

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 think it returns the nano second as the result?
If it returns IntervalYearMonth the result will be 1, but now Interval will always return IntervalMonthDayNano.
See #5801

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @yyy1000

@comphead comphead merged commit d927882 into apache:main Mar 11, 2024
4 checks passed
@yyy1000 yyy1000 deleted the port2 branch March 11, 2024 22:55
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.

Inconsistent behavior for Interval type with document
3 participants