-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][DOC] Fix the CalendarIntervalType description #26659
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
Conversation
|
cc @cloud-fan, please take a look at this, I believe this is trivial but important. |
|
Test build #114383 has finished for PR 26659 at commit
|
|
Test build #114397 has finished for PR 26659 at commit
|
srowen
left a comment
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.
I think ColumnVector has a similar comment that needs updating.
CC @MaxGekk
|
|
MaxGekk
left a comment
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.
Should we say what is the range of valid values. DateType and TimestampType have min and max valid points. Can the INTERVAL type represents interval greater than max-min timestamp?
| import org.apache.spark.unsafe.types.CalendarInterval | ||
|
|
||
| /** | ||
| * The data type representing calendar time intervals. The calendar time interval is stored |
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.
representing -> represents? @srowen Does representing sound good for you?
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.
representing sounds right. "[This class is] The data type representing ..."
| * The data type representing calendar time intervals. The calendar time interval is stored | ||
| * internally in two components: number of months the number of microseconds. | ||
| * internally in three components: | ||
| * the number of months |
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.
I think we should say explicitly that the numbers can be positive as well as negative
| import org.apache.spark.unsafe.types.CalendarInterval | ||
|
|
||
| /** | ||
| * The data type representing calendar time intervals. The calendar time interval is stored |
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.
calendar time intervals . It is arguable but it can represent date interval too.
|
Test build #114413 has finished for PR 26659 at commit
|
|
thanks, merging to master! |
…lity ### What changes were proposed in this pull request? In the PR, I propose to revert #26659 partially regarding to comparability of interval values. The comment became incorrect after #27262. ### Why are the changes needed? The comment is incorrect, and it might confuse Spark's devs/users. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By checking scala coding style `./dev/scalastyle`. Closes #31610 from MaxGekk/doc-interval-not-comparable. Authored-by: Max Gekk <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
…lity ### What changes were proposed in this pull request? In the PR, I propose to revert #26659 partially regarding to comparability of interval values. The comment became incorrect after #27262. ### Why are the changes needed? The comment is incorrect, and it might confuse Spark's devs/users. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By checking scala coding style `./dev/scalastyle`. Closes #31610 from MaxGekk/doc-interval-not-comparable. Authored-by: Max Gekk <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 7df4fed) Signed-off-by: Wenchen Fan <[email protected]>
…lity ### What changes were proposed in this pull request? In the PR, I propose to revert apache/spark#26659 partially regarding to comparability of interval values. The comment became incorrect after apache/spark#27262. ### Why are the changes needed? The comment is incorrect, and it might confuse Spark's devs/users. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By checking scala coding style `./dev/scalastyle`. Closes #31610 from MaxGekk/doc-interval-not-comparable. Authored-by: Max Gekk <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
fix the overdue and incorrect description about CalendarIntervalType
Why are the changes needed?
api doc correctness
Does this PR introduce any user-facing change?
no
How was this patch tested?
no