pan3793 commented on code in PR #55718:
URL: https://github.com/apache/spark/pull/55718#discussion_r3199345968
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowCreateTableExec.scala:
##########
@@ -98,7 +99,10 @@ case class ShowCreateTableExec(
val transforms = new ArrayBuffer[String]
var bucketSpec = Option.empty[BucketSpec]
table.partitioning.map {
- case BucketTransform(numBuckets, col, sortCol) =>
+ case BucketTransform(numBuckets, col, sortCol) if
table.isInstanceOf[V1Table] =>
+ if (bucketSpec.nonEmpty) {
+ throw
QueryExecutionErrors.unsupportedMultipleBucketTransformsError()
+ }
Review Comment:
replaced it with `require` assertion
--
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]