From 49a9f70aead8dfa18bc010c7865896e0da1dabf2 Mon Sep 17 00:00:00 2001 From: Jingsong Date: Wed, 4 Dec 2024 08:58:15 +0700 Subject: [PATCH] fix --- .../org/apache/paimon/flink/lookup/LookupDataTableScan.java | 1 + .../paimon/flink/lookup/PrimaryKeyPartialLookupTable.java | 1 + .../java/org/apache/paimon/flink/service/QueryFileMonitor.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/LookupDataTableScan.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/LookupDataTableScan.java index 48cb64e70be1..f43d80321ecc 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/LookupDataTableScan.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/LookupDataTableScan.java @@ -59,6 +59,7 @@ public LookupDataTableScan( defaultValueAssigner); this.startupMode = options.startupMode(); this.lookupScanMode = lookupScanMode; + dropStats(); } @Override diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/PrimaryKeyPartialLookupTable.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/PrimaryKeyPartialLookupTable.java index ef5543ac9b7c..7bd7a652b56e 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/PrimaryKeyPartialLookupTable.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lookup/PrimaryKeyPartialLookupTable.java @@ -207,6 +207,7 @@ private LocalQueryExecutor( this.scan = table.newReadBuilder() + .dropStats() .withFilter(filter) .withBucketFilter( requireCachedBucketIds == null diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/service/QueryFileMonitor.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/service/QueryFileMonitor.java index 02f8a654112e..b9776786fa57 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/service/QueryFileMonitor.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/service/QueryFileMonitor.java @@ -83,7 +83,7 @@ public void open(OpenContext openContext) throws Exception { */ public void open(Configuration parameters) throws Exception { FileMonitorTable monitorTable = new FileMonitorTable((FileStoreTable) table); - ReadBuilder readBuilder = monitorTable.newReadBuilder(); + ReadBuilder readBuilder = monitorTable.newReadBuilder().dropStats(); this.scan = readBuilder.newStreamScan(); this.read = readBuilder.newRead(); }