cswangzheng commented on code in PR #4440:
URL: 
https://github.com/apache/incubator-seatunnel/pull/4440#discussion_r1160394991


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/source/JdbcSource.java:
##########
@@ -217,6 +225,11 @@ private PartitionParameter 
initPartitionParameterAndExtendSql(Connection connect
             }
             PartitionParameter partitionParameter =
                     initPartitionParameter(partitionColumn, connection);
+            if (partitionParameter == null) {
+                LOG.info(
+                        "The partition_column parameter is configured, but the 
result set is empty");
+                return null;

Review Comment:
   sure, let me change this code to use optional to return 



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