cloud-fan commented on a change in pull request #34914:
URL: https://github.com/apache/spark/pull/34914#discussion_r778964484
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/expressions/expressions.scala
##########
@@ -104,24 +104,29 @@ private[sql] final case class BucketTransform(
columns: Seq[NamedReference],
sortedColumns: Seq[NamedReference] = Seq.empty[NamedReference]) extends
RewritableTransform {
- override val name: String = "bucket"
+ override val name: String = if (sortedColumns.nonEmpty) "sortedBucket" else
"bucket"
Review comment:
Can we create a new class `SortedBucketTransform`?
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/expressions/expressions.scala
##########
@@ -104,24 +104,29 @@ private[sql] final case class BucketTransform(
columns: Seq[NamedReference],
sortedColumns: Seq[NamedReference] = Seq.empty[NamedReference]) extends
RewritableTransform {
- override val name: String = "bucket"
+ override val name: String = if (sortedColumns.nonEmpty) "sortedBucket" else
"bucket"
Review comment:
Can we create a new class `SortedBucketTransform` to be clearer?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]