danny0405 commented on a change in pull request #2640: URL: https://github.com/apache/hudi/pull/2640#discussion_r590150162
########## File path: hudi-flink/src/main/java/org/apache/hudi/util/StreamerUtil.java ########## @@ -332,7 +331,7 @@ public static String getTablePath(FileSystem fs, Path[] userProvidedPaths) throw public static boolean needsScheduleCompaction(Configuration conf) { return conf.getString(FlinkOptions.TABLE_TYPE) .toUpperCase(Locale.ROOT) - .equals(HoodieTableType.MERGE_ON_READ.name()) + .equals(FlinkOptions.TABLE_TYPE_MERGE_ON_READ) Review comment: Spark did have a definition, see `DataSourceOptions.COW_TABLE_TYPE_OPT_VAL` and `DataSourceOptions.MOR_TABLE_TYPE_OPT_VAL`. ---------------------------------------------------------------- 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