Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private boolean isAccumuloTable(SchemaTableName tableName)
return false;
}

throw new TrinoException(ZOOKEEPER_ERROR, "Error checking if path %s is an AccumuloTable object", e);
throw new TrinoException(ZOOKEEPER_ERROR, "Error checking if path is an AccumuloTable object", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import static com.google.common.base.MoreObjects.firstNonNull;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Strings.isNullOrEmpty;
import static com.google.common.base.Verify.verify;
import static com.google.common.collect.ImmutableList.toImmutableList;
import static com.google.common.collect.Iterators.peekingIterator;
import static com.google.common.collect.Iterators.singletonIterator;
Expand Down Expand Up @@ -225,13 +226,11 @@ public ConnectorSplitSource getSplits(
// validate bucket bucketed execution
Optional<HiveBucketHandle> bucketHandle = hiveTable.getBucketHandle();

if (bucketHandle.isPresent()) {
if (bucketHandle.get().getReadBucketCount() > bucketHandle.get().getTableBucketCount()) {
throw new TrinoException(
GENERIC_INTERNAL_ERROR,
"readBucketCount (%s) is greater than the tableBucketCount (%s) which generally points to an issue in plan generation");
}
}
bucketHandle.ifPresent(bucketing ->
verify(bucketing.getReadBucketCount() <= bucketing.getTableBucketCount(),
"readBucketCount (%s) is greater than the tableBucketCount (%s) which generally points to an issue in plan generation",
bucketing.getReadBucketCount(),
bucketing.getTableBucketCount()));

// get partitions
Iterator<HivePartition> partitions = partitionManager.getPartitions(metastore, hiveTable);
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,7 @@
-Xep:NullOptional:ERROR \
-Xep:ObjectToString:ERROR \
-Xep:OptionalNotPresent:ERROR \
-Xep:OrphanedFormatString:ERROR \
-Xep:Overrides:ERROR \
<!-- flags List fields even if initialized with ImmutableList -->
-Xep:PreferredInterfaceType:OFF \
Expand Down