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 @@ -395,11 +395,6 @@ public List<CassandraPartition> getPartitions(CassandraTable table, List<Set<Obj
rows = queryPartitionKeysLegacyWithMultipleQueries(table, filterPrefixes);
}

if (rows == null) {
// just split the whole partition range
return ImmutableList.of(CassandraPartition.UNPARTITIONED);
}

ByteBuffer buffer = ByteBuffer.allocate(1000);
HashMap<ColumnHandle, NullableValue> map = new HashMap<>();
Set<String> uniquePartitionIds = new HashSet<>();
Expand Down Expand Up @@ -489,7 +484,7 @@ private Iterable<Row> queryPartitionKeysLegacyWithMultipleQueries(CassandraTable

log.debug("Execute cql for partition keys with multiple queries: %s", partitionKeys);
List<Row> resultRows = execute(partitionKeys.build()).all();
if (resultRows != null && !resultRows.isEmpty()) {
if (!resultRows.isEmpty()) {
rowList.addAll(resultRows);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public void createMaterializedView(
.setViewExpandedText(Optional.of("/* " + ICEBERG_MATERIALIZED_VIEW_COMMENT + " */"));
io.trino.plugin.hive.metastore.Table table = tableBuilder.build();
PrincipalPrivileges principalPrivileges = isUsingSystemSecurity ? NO_PRIVILEGES : buildInitialPrivilegeSet(session.getUser());
if (existing.isPresent() && replace) {
if (existing.isPresent()) {
// drop the current storage table
String oldStorageTable = existing.get().getParameters().get(STORAGE_TABLE);
if (oldStorageTable != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ private static Comparator<Object> columnComparator(int precision)
if (a.getClass() != b.getClass()) {
throw new TypesDoNotMatchException(format("item types do not match: %s vs %s", a.getClass().getName(), b.getClass().getName()));
}
if ((a.getClass().isArray() && b.getClass().isArray())) {
if (a.getClass().isArray()) {
Object[] aArray = (Object[]) a;
Object[] bArray = (Object[]) b;

Expand Down