lirui-apache commented on code in PR #15429:
URL: https://github.com/apache/iceberg/pull/15429#discussion_r2875714984
##########
spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/actions/BaseTableCreationSparkAction.java:
##########
@@ -134,6 +134,11 @@ private void validateSourceTable() {
Preconditions.checkArgument(
!sourceCatalogTable.storage().locationUri().isEmpty(),
"Cannot create an Iceberg table from a source without an explicit
location");
+ if (sourceCatalogTable.bucketSpec().isDefined()) {
Review Comment:
Updated to use `Preconditions.checkArgument`. Should I apply the change to
other spark versions, or leave that to another PR?
--
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]