zhaojinchao95 commented on issue #22413:
URL: 
https://github.com/apache/shardingsphere/issues/22413#issuecomment-1328014412

   @tuichenchuxin Hi, Can you look this? Maybe this method logic has some 
problem : 
   
   ```
   private ShardingSphereTableData loadTableData(final String databaseName, 
final String schemaName, final String tableName) {
           String tableData = 
repository.getDirectly(ShardingSphereDataNode.getTablePath(databaseName, 
schemaName, tableName));
           YamlShardingSphereTableData yamlTableData = 
YamlEngine.unmarshal(tableData, YamlShardingSphereTableData.class);
           Map<Integer, YamlShardingSpherePartitionRowData> partitionRowsData = 
new TreeMap<>();
           for (String each : 
repository.getChildrenKeys(ShardingSphereDataNode.getTablePath(databaseName, 
schemaName, tableName))) {
               String partitionRows = 
repository.getDirectly(ShardingSphereDataNode.getTablePartitionRowsPath(databaseName,
 schemaName, tableName, each));
               partitionRowsData.put(Integer.parseInt(each), 
YamlEngine.unmarshal(partitionRows, YamlShardingSpherePartitionRowData.class));
           }
           yamlTableData.setPartitionRows(partitionRowsData);
           return new 
YamlShardingSphereTableDataSwapper().swapToObject(yamlTableData);
       }
   ```


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