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

fix: Fallback to Spark for unsupported partitioning #759

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Aug 1, 2024

Which issue does this PR close?

Closes #760.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 77.77778% with 8 lines in your changes missing coverage. Please review.

Project coverage is 54.11%. Comparing base (c1b7c7d) to head (932e15c).
Report is 22 commits behind head on main.

Files Patch % Lines
.../scala/org/apache/comet/serde/QueryPlanSerde.scala 79.31% 1 Missing and 5 partials ⚠️
...org/apache/comet/CometSparkSessionExtensions.scala 71.42% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #759      +/-   ##
============================================
+ Coverage     53.66%   54.11%   +0.45%     
- Complexity      810      819       +9     
============================================
  Files           107      107              
  Lines         10265    10316      +51     
  Branches       1930     1947      +17     
============================================
+ Hits           5509     5583      +74     
+ Misses         3781     3743      -38     
- Partials        975      990      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

columns: Array[Column],
partitions: Array[Transform],
catalog: InMemoryTableCatalog = catalog): Unit = {
catalog.createTable(Identifier.of(Array("ns"), table), columns, partitions, emptyProps)
Copy link
Member Author

Choose a reason for hiding this comment

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

Some APIs are added since Spark 3.4. One config is added since Spark 4.0. So this test is only compilable for 3.4+ and only useful for 4.0.

val msg3 = createMessage(
isShuffleEnabled && columnarShuffleEnabled && !QueryPlanSerde
.supportPartitioningTypes(s.child.output)
.supportPartitioningTypes(s.child.output, s.outputPartitioning)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit s.outputPartitioning => outputPartitioning

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay.

@viirya viirya merged commit 2d95fea into apache:main Aug 2, 2024
74 checks passed
@viirya
Copy link
Member Author

viirya commented Aug 2, 2024

Merged. Thanks @kazuyukitanimura @andygrove

@viirya viirya deleted the fix_shuffle_support branch August 2, 2024 13:03
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
* fix: Fallback to Spark for unsupported partitioning

* fix

* Move test

* For review

(cherry picked from commit 2d95fea)
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.

Comet should fallback to Spark for unsupported partitioning
4 participants