-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-13977: [Format] clarify leap seconds for interval type #11138
Conversation
… type Like other time units, we don't account for leap seconds for interval types. For MONTH_DAY_NANO, we do account for leap days.
|
|
For the context, this came out of the exercise to define partial order for Interval Types in jorgecarleitao/arrow2#398. |
If we do not account for leap seconds, isn't this type equivalent to I.e. Given OTOH, many systems do not handle leap seconds and in 2012 there were no plans to support leap seconds in Postgres. So, my conclusion atm is that the decision tree is
If we ignore leap seconds in
and we may deprecate Since
|
@jorgecarleitao even if we don't account for leap seconds,
Are you suggesting that we should use |
You are right 👍 I understood that comment to differentiate it from In opposition to an The main difference (in my understanding) is that |
Good summary 👍 this aligns with what I have in mind as well. |
Could you send an e-mail out to dev@ to make sure this gets wide visibility |
Updating the summary table above with the result of the follow-up discussion,
|
I removed sentences that mentioned ordering and leap days. now the only change is mention of leap seconds to be consistent with other temporal types. |
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.
+1. This is fine with me.
@edponce pushed a new commit to apply your suggestions, PTAL. |
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.
+1
Like other time units, we don't account for leap seconds for interval types. For MONTH_DAY_NANO, we do account for leap days. Closes apache#11138 from houqp/qp_interval Authored-by: Qingping Hou <dave2008713@gmail.com> Signed-off-by: Qingping Hou <dave2008713@gmail.com>
Like other time units, we don't account for leap seconds for interval types. For MONTH_DAY_NANO, we do account for leap days.