cloud-fan commented on code in PR #52153: URL: https://github.com/apache/spark/pull/52153#discussion_r2312789939
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala: ########## @@ -1868,12 +1868,20 @@ trait HasPartitionExpressions extends SQLConfHelper { def optAdvisoryPartitionSize: Option[Long] + def directPassthrough: Boolean = false + protected def partitioning: Partitioning = if (partitionExpressions.isEmpty) { RoundRobinPartitioning(numPartitions) + } else if (directPassthrough) { + // Direct passthrough mode - use partition ID expression directly + require(partitionExpressions.length == 1, Review Comment: let's create an error condition for it in `error-conditions.json` -- 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. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org