Genius-pig commented on a change in pull request #2034:
URL: https://github.com/apache/iotdb/pull/2034#discussion_r527562374
##########
File path:
server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java
##########
@@ -608,9 +604,11 @@ private PhysicalPlan transformQuery(QueryOperator
queryOperator, int fetchSize)
}
}
}
- if(queryOperator instanceof QueryIndexOperator) {
- ((QueryIndexPlan) queryPlan).setIndexType(((QueryIndexOperator)
queryOperator).getIndexType());
- ((QueryIndexPlan) queryPlan).setProps(((QueryIndexOperator)
queryOperator).getProps());
+ if(queryOperator.getIndexType() != null) {
+ if(queryPlan instanceof QueryIndexPlan) {
Review comment:
I think it's equivalent
----------------------------------------------------------------
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]