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

feat: Add a test for supported types of SortMergeJoin in DataFusion #365

Closed

Conversation

planga82
Copy link
Contributor

@planga82 planga82 commented May 1, 2024

Which issue does this PR close?

Closes #357 .

Rationale for this change

The goal of these tests is that if Datafusion supports more data types, we remember to support them here.

What changes are included in this PR?

Add new tests

How are these changes tested?

Unit testing
We have yet configuration to support testing (COMET_EXEC_BROADCAST_FORCE_ENABLED) so this PR add new configuration to support the tests.
I can't do complex type testing because we don't support it in most operators.

@@ -383,6 +383,13 @@ object CometConf {
.booleanConf
.createWithDefault(false)

val COMET_SORTMERGEJOIN_CHECK_KEY_TYPES: ConfigEntry[Boolean] =
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @planga82
I'm not sure if we need to change the conf for the unit test purpose

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks @comphead . Any idea how to do this in a cleaner way? We could move this constant to other place and avoid putting it in CometConf. In that way we avoid to expose a testing configuration. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Tbh to test variety of supported datatypes I liked the @andygrove approach introduced in #351, wondering if we can do that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to review it. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's not the same idea and not applicable here. I'll close this PR and try to think of another way to do it without adding configuration. Thanks again!

@planga82 planga82 closed this May 2, 2024
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.

Add a test for supported types of SortMergeJoin in DataFusion
2 participants