xiangmy21 commented on code in PR #17065:
URL: https://github.com/apache/iotdb/pull/17065#discussion_r2759067597
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/process/ActiveRegionScanMergeNode.java:
##########
@@ -70,6 +70,9 @@ public PlanNode clone() {
@Override
public List<String> getOutputColumnNames() {
+ if (!children.isEmpty()) {
+ return children.get(0).getOutputColumnNames();
+ }
Review Comment:
The showDevicesColumnHeaders does not contains the 'Timeseries' type we need
for sort operation. It contains 'Device' instead of 'Timeseries'. Without this
modification the execution of `show timeseries root.sg4.** where time > 0 order
by timeseries` will raise error: org.apache.iotdb.jdbc.IoTDBSQLException: 301:
Cannot invoke "org.apache.tsfile.enums.TSDataType.ordinal()" because the return
value of "java.util.List.get(int)" is null
--
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]