yaooqinn commented on a change in pull request #28032:
URL: https://github.com/apache/spark/pull/28032#discussion_r641319492
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveStrategies.scala
##########
@@ -181,6 +181,46 @@ object HiveAnalysis extends Rule[LogicalPlan] {
}
}
+/**
+ * Add a repartition by dynamic partition columns before insert Hive table.
+ *
+ * Note that, this rule must be run after `HiveAnalysis`.
+ */
+object RepartitionBeforeInsertHiveTable extends Rule[LogicalPlan] {
+ override def apply(plan: LogicalPlan): LogicalPlan = {
+ if (conf.repartitionBeforeInsert) {
Review comment:
I think this should narrow the scope with `adaptiveExecutionEnabled &&
coalesceShufflePartitionsEnabled`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]