Skip to content

Commit

Permalink
Core: Fix logging table name when scanning metadata table (apache#10141)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuzhang authored Apr 15, 2024
1 parent 943321e commit e6a1a45
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import java.io.IOException;
import java.io.UncheckedIOException;
import java.util.Locale;
import org.apache.iceberg.events.Listeners;
import org.apache.iceberg.events.ScanEvent;
import org.apache.iceberg.expressions.ExpressionUtil;
Expand Down Expand Up @@ -60,11 +61,12 @@ public TableScan asOfTime(long timestampMillis) {

@Override
public CloseableIterable<FileScanTask> planFiles() {
String metadataTableName = table().name() + "." + tableType().name().toLowerCase(Locale.ROOT);
LOG.info(
"Scanning metadata table {} with filter {}.",
table(),
metadataTableName,
ExpressionUtil.toSanitizedString(filter()));
Listeners.notifyAll(new ScanEvent(table().name(), 0L, filter(), schema()));
Listeners.notifyAll(new ScanEvent(metadataTableName, 0L, filter(), schema()));

return doPlanFiles();
}
Expand Down

0 comments on commit e6a1a45

Please sign in to comment.