JeremyXin commented on code in PR #9446:
URL: https://github.com/apache/seatunnel/pull/9446#discussion_r2196642381


##########
seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/source/ClickhouseSourceFactory.java:
##########
@@ -117,11 +183,80 @@ private String modifySQLToLimit1(String sql) {
         return String.format("SELECT * FROM (%s) s LIMIT 1", sql);
     }
 
+    private String generateQuerySql(String sql, String database, String table) 
{
+        if (StringUtils.isNotEmpty(sql)) {
+            return modifySQLToLimit1(sql);
+        }
+
+        return String.format("SELECT * FROM %s.%s LIMIT 1", database, table);
+    }
+
+    private List<Shard> getClusterShardList(

Review Comment:
   done. Thanks for the review!



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