zentol commented on a change in pull request #13027: URL: https://github.com/apache/flink/pull/13027#discussion_r466997734
########## File path: flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/connectors/hive/HiveTableSink.java ########## @@ -241,12 +242,14 @@ public final DataStreamSink consumeDataStream(DataStream dataStream) { formatTypes[i] = tableSchema.getFieldDataType(i).get().getLogicalType(); } RowType formatType = RowType.of(formatTypes, formatNames); - Configuration formatConf = new Configuration(jobConf); - sd.getSerdeInfo().getParameters().forEach(formatConf::set); if (serLib.contains("parquet")) { + Configuration formatConf = new Configuration(jobConf); + sd.getSerdeInfo().getParameters().forEach(formatConf::set); return Optional.of(ParquetRowDataBuilder.createWriterFactory( formatType, formatConf, hiveVersion.startsWith("3."))); } else if (serLib.contains("orc")) { + Configuration formatConf = new ThreadLocalClassLoaderConfiguration(jobConf); Review comment: An opt-out switch is a good idea; also for cases where things don't behave as expected close to the next release, and we don't want to revert commits at that point. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org