-
Notifications
You must be signed in to change notification settings - Fork 169
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
[EPIC] Spark-compatible cast / try_cast operations #286
Comments
@andygrove do we have already a framework for fuzz testing in Scala (i.e. ScalaCheck?) Should anyone wait until you are done with the first ones so you establish a pattern? |
There is a |
I am now working on cast string -> integral types. I will have a PR up later this week. |
@andygrove can I take care of this " Implement a mechanism where we can selectively fall back to Spark for specific cast operations" ? I was looking at the top of the list, but everything was quickly taken |
What is the problem the feature request solves?
Comet currently delegates to DataFusion for many cast operations, and the behavior is not guaranteed to match Spark. This epic is to track fully implementing Spark-compatible
cast
andtry_cast
operations in Comet, with support for ANSI mode.For each item in this list to be considered complete, we should have scala tests demonstrating that
cast
andtry_cast
produce the same results as Spark, both with ANSI mode enabled and disabled, using fuzz testing to find edge cases. We can update this list with links to issues as we make progress.For cast operations that we cannot easily support with full compatibility, we should either fall back to Spark or provide a configuration that the user can enable to allow the operation to run in Comet. We should also provide documentation explaining any differences in behavior compared to Spark.
spark.sql.legacy.allowNegativeScaleOfDecimal
is true and scale is negativeIn addition to the above tasks, we also need to do the following:
The text was updated successfully, but these errors were encountered: