XiaoJiang521 commented on code in PR #5535:
URL: https://github.com/apache/seatunnel/pull/5535#discussion_r1361484598


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/oracle/OracleCatalog.java:
##########
@@ -223,4 +235,16 @@ protected String getUrlFromDatabaseName(String 
databaseName) {
     protected String getOptionTableName(TablePath tablePath) {
         return tablePath.getSchemaAndTableName();
     }
+
+    public String getCountSql(TablePath tablePath) {
+        return String.format(
+                "select * from %s.%s WHERE ROWNUM=1 ",
+                tablePath.getSchemaName(), tablePath.getTableName());

Review Comment:
   Can refer to OracleCreateTableSqlBuilder will some examples



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