Skip to content

Commit 5b10b9f

Browse files
authored
pref: New Configuration from shared conf to avoid high costs (#2402)
1 parent 48a0cc0 commit 5b10b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/apache/comet/parquet/NativeBatchReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public void init() throws Throwable {
433433
private ParquetColumn getParquetColumn(MessageType schema, StructType sparkSchema) {
434434
// We use a different config from the config that is passed in.
435435
// This follows the setting used in Spark's SpecificParquetRecordReaderBase
436-
Configuration config = new Configuration();
436+
Configuration config = new Configuration(conf);
437437
config.setBoolean(SQLConf.PARQUET_BINARY_AS_STRING().key(), false);
438438
config.setBoolean(SQLConf.PARQUET_INT96_AS_TIMESTAMP().key(), false);
439439
config.setBoolean(SQLConf.CASE_SENSITIVE().key(), false);

0 commit comments

Comments
 (0)