-
Notifications
You must be signed in to change notification settings - Fork 976
Watchdog support for Spark-3.2 #1591
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
Conversation
e0ab111 to
44726de
Compare
Codecov Report
@@ Coverage Diff @@
## master #1591 +/- ##
============================================
- Coverage 59.02% 58.06% -0.96%
+ Complexity 196 140 -56
============================================
Files 256 256
Lines 12708 12683 -25
Branches 1601 1596 -5
============================================
- Hits 7501 7365 -136
- Misses 4570 4695 +125
+ Partials 637 623 -14
Continue to review full report at Codecov.
|
|
cc @ulysses-you and watchdog original author @zhouyifan279 @i7xh |
| |SELECT * FROM t2 | ||
| |$sort | ||
| |LIMIT $limit | ||
| |""".stripMargin).queryExecution.optimizedPlan.maxRows.contains(expected)) |
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.
As WithCTE.maxRows is None, we should check optimizedPlan here.
| |$having | ||
| |$sort | ||
| |LIMIT $limit | ||
| |""".stripMargin).queryExecution.optimizedPlan.maxRows.contains(expected)) |
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.
|
|
||
| } | ||
|
|
||
| trait MarkAggregateOrderBase extends Rule[LogicalPlan] { |
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.
For Spark 3.2, we don't need MarkAggregateOrderBase about aggregate since apache/spark#32470. We only need CTE.
|
thanks, merging to master |
Why are the changes needed?
ForcedMaxOutputRowsRuleto spark-common and rename toForcedMaxOutputRowsBaseWithCTElogical plan in spark-3.2MaxPartitionStrategyto spark-commonForcedMaxOutputRowsRuleHow was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request