-
Notifications
You must be signed in to change notification settings - Fork 907
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
Cast only time of day to nanos to avoid an overflow in Parquet INT96 write #13776
Conversation
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Signed-off-by: Gera Shegalov <[email protected]>
Contributes to NVIDIA#8625, depends on rapidsai/cudf#13776 Signed-off-by: Gera Shegalov <[email protected]>
Co-authored-by: Bradley Dice <[email protected]>
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.
LGTM. A couple of minor nitpicks regarding documentation, and a typo when calling julian_days_with_time()
.
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 be good to ship after addressing the "references to temporaries" problem at line 1241.
Co-authored-by: MithunR <[email protected]>
/merge |
- Remove INT96 check for being in the Long.Min:Max range. - Update docs and tests Fixes #8625 Depends on rapidsai/cudf#8070, rapidsai/cudf#13776 Verified with the [notebook](https://github.com/gerashegalov/rapids-shell/blob/9cb4598b0feba7b71eb91f396f4b577bbb0dec00/src/jupyter/int96.ipynb) and ```bash JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 TEST_PARALLEL=0 SPARK_HOME=~/dist/spark-3.3.2-bin-hadoop3 ./integration_tests/run_pyspark_from_build.sh -k test_fix_for_int96_overflow ``` Signed-off-by: Gera Shegalov <[email protected]>
Description
Rework extraction of nanoseconds of the last day in INT96 write call path to avoid overflow. Contributes to NVIDIA/spark-rapids#8625
Fixes #8070
Checklist