You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/05/08 01:51:58 UTC

[GitHub] [incubator-iotdb] HTHou commented on a change in pull request #1166: [IOTDB-642] Data can't be inserted correctly by alias

HTHou commented on a change in pull request #1166:
URL: https://github.com/apache/incubator-iotdb/pull/1166#discussion_r421891787



##########
File path: server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
##########
@@ -871,8 +871,12 @@ public void insert(InsertPlan insertPlan) throws QueryProcessException {
         }
         LeafMNode measurementNode = (LeafMNode) node.getChild(measurement);
         schemas[i] = measurementNode.getSchema();
+        if (measurement != measurementNode.getName()){

Review comment:
       ```suggestion
           schemas[i] = measurementNode.getSchema();
           if (measurement != measurementNode.getName()) {
   ```




----------------------------------------------------------------
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:
users@infra.apache.org