Skip to content

Commit 128a51c

Browse files
author
Sreesh Maheshwar
committed
Nit: Move unchecked suppression down to violating assignment in ParquetMetricsRowGroupFilter
1 parent 57ec535 commit 128a51c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parquet/src/main/java/org/apache/iceberg/parquet/ParquetMetricsRowGroupFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ public <T> Boolean notIn(BoundReference<T> ref, Set<T> literalSet) {
437437
}
438438

439439
@Override
440-
@SuppressWarnings("unchecked")
441440
public <T> Boolean startsWith(BoundReference<T> ref, Literal<T> lit) {
442441
int id = ref.fieldId();
443442

@@ -447,6 +446,7 @@ public <T> Boolean startsWith(BoundReference<T> ref, Literal<T> lit) {
447446
return ROWS_CANNOT_MATCH;
448447
}
449448

449+
@SuppressWarnings("unchecked")
450450
Statistics<Binary> colStats = (Statistics<Binary>) stats.get(id);
451451
if (colStats != null && !colStats.isEmpty()) {
452452
if (allNulls(colStats, valueCount)) {
@@ -486,7 +486,6 @@ public <T> Boolean startsWith(BoundReference<T> ref, Literal<T> lit) {
486486
}
487487

488488
@Override
489-
@SuppressWarnings("unchecked")
490489
public <T> Boolean notStartsWith(BoundReference<T> ref, Literal<T> lit) {
491490
int id = ref.fieldId();
492491
Long valueCount = valueCounts.get(id);
@@ -496,6 +495,7 @@ public <T> Boolean notStartsWith(BoundReference<T> ref, Literal<T> lit) {
496495
return ROWS_MIGHT_MATCH;
497496
}
498497

498+
@SuppressWarnings("unchecked")
499499
Statistics<Binary> colStats = (Statistics<Binary>) stats.get(id);
500500
if (colStats != null && !colStats.isEmpty()) {
501501
if (mayContainNull(colStats)) {

0 commit comments

Comments
 (0)