azexcy commented on code in PR #25055:
URL: https://github.com/apache/shardingsphere/pull/25055#discussion_r1161539787


##########
kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/InventoryDumper.java:
##########
@@ -188,9 +190,12 @@ private DataRecord loadDataRecord(final ResultSet 
resultSet, final ResultSetMeta
         DataRecord result = new DataRecord(newPosition(resultSet), 
columnCount);
         result.setType(IngestDataChangeType.INSERT);
         result.setTableName(dumperConfig.getLogicTableName());
+        List<String> insertColumnNames = 
Optional.ofNullable(dumperConfig.getInsertColumnNames()).orElse(Collections.emptyList());

Review Comment:
   
   <img width="785" alt="image" 
src="https://user-images.githubusercontent.com/101622833/230863072-3a5f24f8-13b8-43d4-bc79-00a1da60afed.png";>
   The `resultSetMetaData.getColumnCount()` depends on querySQL, if provider 
querySQL, must specify `dumperConfig.getInsertColumnNames()`,  is there a 
better way to handle it?



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