-
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
test: Add some fuzz testing for cast operations #16
Conversation
I will close and reopen this to trigger CI. |
import org.apache.spark.sql.execution.adaptive.AdaptiveSparkPlanHelper | ||
import org.apache.spark.sql.{CometTestBase, DataFrame, SaveMode} | ||
import org.apache.spark.sql.functions.col | ||
import org.apache.spark.sql.types.{DataType, DataTypes} |
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.
@sunchao Do we run style check in CI? Looks like the import order looks not correct?
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 need to double-check. The scalafix check is done here but I'm not sure if the import order is checked by something else.
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.
Oh it's because the scalastyle-maven-plugin is disabled. Let me try to re-enable it.
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. It's always useful to have more test coverage 👍
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.
👍
Merged, thanks! |
This PR adds some fuzz tests for cast operations. I only covered a few data types, but expanding this to cover more types should be simple.
Many tests are currently failing, so those ones are ignored for now.