This is an automated email from the ASF dual-hosted git repository.

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d02aa776e [core] Also remove metadata.stats-mode=none in postpone 
bucket writers when not using avro (#5736)
7d02aa776e is described below

commit 7d02aa776ea9679e569fbf8d9e1996614db73d59
Author: tsreaper <[email protected]>
AuthorDate: Thu Jun 12 10:32:17 2025 +0800

    [core] Also remove metadata.stats-mode=none in postpone bucket writers when 
not using avro (#5736)
---
 .../java/org/apache/paimon/postpone/PostponeBucketFileStoreWrite.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/paimon-core/src/main/java/org/apache/paimon/postpone/PostponeBucketFileStoreWrite.java
 
b/paimon-core/src/main/java/org/apache/paimon/postpone/PostponeBucketFileStoreWrite.java
index ccd4ac6fe3..09b3afdff2 100644
--- 
a/paimon-core/src/main/java/org/apache/paimon/postpone/PostponeBucketFileStoreWrite.java
+++ 
b/paimon-core/src/main/java/org/apache/paimon/postpone/PostponeBucketFileStoreWrite.java
@@ -77,10 +77,10 @@ public class PostponeBucketFileStoreWrite extends 
AbstractFileStoreWrite<KeyValu
             // use avro for postpone bucket
             AvroSchemaConverter.convertToSchema(schema.logicalRowType(), new 
HashMap<>());
             newOptions.set(CoreOptions.FILE_FORMAT, "avro");
+            newOptions.set(CoreOptions.METADATA_STATS_MODE, "none");
         } catch (Exception e) {
             // ignored, avro does not support certain types in schema
         }
-        newOptions.set(CoreOptions.METADATA_STATS_MODE, "none");
         // Each writer should have its unique prefix, so files from the same 
writer can be consumed
         // by the same compaction reader to keep the input order.
         // Also note that, for Paimon CDC, this object might be created 
multiple times in the same

Reply via email to