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 61160a52e [core] Fix test or dev with NoSuchMethodException in IDE in 
OrcConf (#3279)
61160a52e is described below

commit 61160a52ee0d76860abfe70c7a28f30b5af08abf
Author: xuzifu666 <[email protected]>
AuthorDate: Sun Apr 28 18:17:22 2024 +0800

    [core] Fix test or dev with NoSuchMethodException in IDE in OrcConf (#3279)
---
 .../src/main/java/org/apache/paimon/format/OrcOptions.java   | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/paimon-format/src/main/java/org/apache/paimon/format/OrcOptions.java 
b/paimon-format/src/main/java/org/apache/paimon/format/OrcOptions.java
index 28780cfea..24cad16ad 100644
--- a/paimon-format/src/main/java/org/apache/paimon/format/OrcOptions.java
+++ b/paimon-format/src/main/java/org/apache/paimon/format/OrcOptions.java
@@ -20,10 +20,6 @@ package org.apache.paimon.format;
 
 import org.apache.paimon.options.ConfigOption;
 
-import org.apache.orc.OrcConf;
-
-import static org.apache.orc.OrcConf.DICTIONARY_KEY_SIZE_THRESHOLD;
-import static org.apache.orc.OrcConf.DIRECT_ENCODING_COLUMNS;
 import static org.apache.paimon.options.ConfigOptions.key;
 
 /** Options for orc format. */
@@ -36,7 +32,7 @@ public class OrcOptions {
                     .withDescription("write batch size for orc.");
 
     public static final ConfigOption<String> ORC_COMPRESS =
-            key(OrcConf.COMPRESS.getAttribute())
+            key("orc.compress")
                     .stringType()
                     .defaultValue("lz4")
                     .withDescription(
@@ -45,16 +41,16 @@ public class OrcOptions {
                                     + "orc.compression.zstd.level");
 
     public static final ConfigOption<Integer> ORC_COLUMN_ENCODING_DIRECT =
-            key(DIRECT_ENCODING_COLUMNS.getAttribute())
+            key("orc.column.encoding.direct")
                     .intType()
                     .noDefaultValue()
                     .withDescription(
                             "Comma-separated list of fields for which 
dictionary encoding is to be skipped in orc.");
 
     public static final ConfigOption<Double> ORC_DICTIONARY_KEY_THRESHOLD =
-            key(DICTIONARY_KEY_SIZE_THRESHOLD.getAttribute())
+            key("orc.dictionary.key.threshold")
                     .doubleType()
-                    .defaultValue((Double) 
DICTIONARY_KEY_SIZE_THRESHOLD.getDefaultValue())
+                    .defaultValue(0.8)
                     .withDescription(
                             "If the number of distinct keys in a dictionary is 
greater than this "
                                     + "fraction of the total number of 
non-null rows, turn off "

Reply via email to