Skip to content

Commit

Permalink
[core] Fix orc test NoSuchMethodException in IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Apr 10, 2024
1 parent 8e77b1e commit 0be4a21
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import org.apache.orc.OrcConf;

import static org.apache.orc.OrcConf.COMPRESSION_ZSTD_LEVEL;
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;
Expand All @@ -43,7 +42,7 @@ public class OrcOptions {
.withDescription(
"Define the compression codec for ORC file, if a higher compression ratio is required, "
+ "it is recommended to configure it as 'zstd', and you can configure: "
+ COMPRESSION_ZSTD_LEVEL.getAttribute());
+ "orc.compression.zstd.level");

public static final ConfigOption<Integer> ORC_COLUMN_ENCODING_DIRECT =
key(DIRECT_ENCODING_COLUMNS.getAttribute())
Expand All @@ -62,10 +61,12 @@ public class OrcOptions {
+ "dictionary encoding in orc. Use 0 to always disable dictionary encoding. "
+ "Use 1 to always use dictionary encoding.");

// Do not use OrcConf.COMPRESSION_ZSTD_LEVEL, it may cause IDE testing to occur
// NoSuchMethodException
public static final ConfigOption<Integer> ORC_COMPRESSION_ZSTD_LEVEL =
key(COMPRESSION_ZSTD_LEVEL.getAttribute())
key("orc.compression.zstd.level")
.intType()
.defaultValue((Integer) COMPRESSION_ZSTD_LEVEL.getDefaultValue())
.defaultValue(3)
.withDescription(
"Define the compression level to use with ZStandard codec while writing data. "
+ "The valid range is 1~22.");
Expand Down

0 comments on commit 0be4a21

Please sign in to comment.