harsh1231 commented on code in PR #9501:
URL: https://github.com/apache/hudi/pull/9501#discussion_r1302492231


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/HoodieIncrSource.java:
##########
@@ -128,6 +133,10 @@ public static class Config {
   public HoodieIncrSource(TypedProperties props, JavaSparkContext 
sparkContext, SparkSession sparkSession,
                           SchemaProvider schemaProvider) {
     super(props, sparkContext, sparkSession, schemaProvider);
+
+    this.snapshotLoadQuerySplitter = 
Option.ofNullable(props.getString(SNAPSHOT_LOAD_QUERY_SPLITTER_CLASS_NAME, 
null))
+        .map(className -> (SnapshotLoadQuerySplitter) 
ReflectionUtils.loadClass(className,
+              new Class<?>[]{TypedProperties.class}, props));

Review Comment:
   className is null then this.snapshotLoadQuerySplitter = Option.empty() . 
   class does not exist -> will throw class not found error . 



-- 
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]

Reply via email to