ic4y commented on code in PR #3309:
URL:
https://github.com/apache/incubator-seatunnel/pull/3309#discussion_r1021102675
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/source/JdbcSource.java:
##########
@@ -139,7 +130,7 @@ private SeaTunnelRowType initTableField(Connection conn) {
ArrayList<String> fieldNames = new ArrayList<>();
try {
PreparedStatement ps =
conn.prepareStatement(jdbcSourceOptions.getJdbcConnectionOptions().getQuery());
- ResultSetMetaData resultSetMetaData = ps.getMetaData();
+ ResultSetMetaData resultSetMetaData =
ps.executeQuery().getMetaData();
Review Comment:
executeQuery has a great impact on the performance of other databases, it is
recommended to use JdbcDialect to achieve
--
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]