-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Spark needs micro precision in the 'in' function #11755
Comments
Probably |
@liujiayi771 I took further look and found Spark had its specific implementation. Fixing it in #11812 to adapt to Spark's micro precision. |
@rui-mo Do we still need to adapt Spark's micro in Iceberg equality deletes reader? |
@liujiayi771 I think so, because if milli precision is used, the micros are lost and timestamps with the same millis but different micros will be treated the same. |
Bug description
The InPredicate is registered by Spark sql and might need to provide configurable precision to adapt to both Presto and Spark.velox/velox/functions/prestosql/InPredicate.cpp
Line 161 in 8b4663d
In Velox, the Spark 'in' implementation has nanoseconds precision. In vanilla Spark, the timestamp precision is microseconds.
velox/velox/functions/sparksql/In.cpp
Line 78 in 1bd480e
System information
Velox System Info v0.0.2
Commit: edfb582
CMake Version: 3.28.3
System: Linux-5.4.0-200-generic
Arch: x86_64
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 11.1.0
C Compiler: /usr/bin/cc
C Compiler Version: 11.1.0
CMake Prefix Path: /usr/local;/usr;/;/usr/local/lib/python3.8/dist-packages/cmake/data;/usr/local;/usr/X11R6;/usr/pkg;/opt
Relevant logs
No response
The text was updated successfully, but these errors were encountered: