yuqi1129 commented on a change in pull request #1780:
URL: https://github.com/apache/incubator-iotdb/pull/1780#discussion_r496808408



##########
File path: jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBStatement.java
##########
@@ -320,12 +320,12 @@ private ResultSet executeQuerySQL(String sql) throws 
TException, SQLException {
     if (execResp.queryDataSet == null) {
       this.resultSet = new IoTDBNonAlignJDBCResultSet(this, 
execResp.getColumns(),
           execResp.getDataTypeList(), execResp.columnNameIndexMap, 
execResp.ignoreTimeStamp, client, sql, queryId,
-          sessionId, execResp.nonAlignQueryDataSet);
+          sessionId, execResp.nonAlignQueryDataSet.deepCopy());
     }
     else {
       this.resultSet = new IoTDBJDBCResultSet(this, execResp.getColumns(),
           execResp.getDataTypeList(), execResp.columnNameIndexMap, 
execResp.ignoreTimeStamp, client, sql, queryId,
-          sessionId, execResp.queryDataSet);

Review comment:
       `queryDataSet.deepCopy()` seems do not really deeply copy memory,  deep 
copy only copy   
   `List`




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to