-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Propagate timezone to created arrays #5481
Conversation
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.
Thank you @maxburke -- can you please add some tests as well (so we don't accidentally break this functionality in the future)?
This was manifesting as an error in the use of window functions on Timestamp types with Arrow failing to concatenate arrays of different data types (one array with a timezone, one without).
@alamb Done! |
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.
Thanks @maxburke !
); | ||
} | ||
|
||
assert_eq!(131072, num_rows); |
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.
👍
In the future you could also use sqllogictest to write this kind of test. Something like https://github.com/apache/arrow-datafusion/blob/eb9541380964a5fd5aa92302a82ec189c3be792e/datafusion/core/tests/sqllogictests/test_files/window.slt#L18-L36
Thanks again @maxburke |
Benchmark runs are scheduled for baseline = 978ec2d and contender = 21e33a3. 21e33a3 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
This fixes #5480