Skip to content
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

Merged
merged 10 commits into from
Feb 16, 2024

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Feb 13, 2024

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.

@andygrove andygrove marked this pull request as ready for review February 13, 2024 16:12
@viirya
Copy link
Member

viirya commented Feb 14, 2024

I will close and reopen this to trigger CI.

@viirya viirya closed this Feb 14, 2024
@viirya viirya reopened this Feb 14, 2024
Comment on lines 22 to 25
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}
Copy link
Member

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?

Copy link
Member

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.

Copy link
Member

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.

@sunchao sunchao changed the title Add some fuzz testing for cast operations test: Add some fuzz testing for cast operations Feb 16, 2024
Copy link
Member

@sunchao sunchao left a 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 👍

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sunchao sunchao merged commit 4e19751 into apache:main Feb 16, 2024
4 of 6 checks passed
@sunchao
Copy link
Member

sunchao commented Feb 16, 2024

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants