luoyuxia commented on code in PR #20694:
URL: https://github.com/apache/flink/pull/20694#discussion_r975133798
##########
flink-connectors/flink-connector-hive/src/test/java/org/apache/flink/connectors/hive/HiveSourceFileEnumeratorTest.java:
##########
@@ -72,6 +74,7 @@ public void testCreateInputSplits() throws Exception {
// set split max size and verify it works
jobConf = new JobConf();
+
jobConf.set(HiveOptions.TABLE_EXEC_HIVE_CALCULATE_PARTITION_SIZE_THREAD_NUM.key(),
"1");
Review Comment:
I add a test `HiveSourceFileEnumeratorTest#testCalculateFilesSize` to verify
it.
Since the multiple threads only make difference while calculating file
size, the test verifies the total size calculated is right when with multiple
threads and multiple partitions.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]