qiaojialin commented on a change in pull request #818: [IOTDB-482] Vectorized 
TimeGenerator
URL: https://github.com/apache/incubator-iotdb/pull/818#discussion_r380035253
 
 

 ##########
 File path: 
tsfile/src/main/java/org/apache/iotdb/tsfile/read/query/timegenerator/TimeGeneratorImpl.java
 ##########
 @@ -65,12 +68,17 @@ public TimeGeneratorImpl(IExpression iexpression, 
IChunkLoader chunkLoader,
 
   @Override
   public boolean hasNext() throws IOException {
-    return operatorNode.hasNext();
+    return (cacheTimes != null && cacheTimes.hasMoreData()) || 
operatorNode.hasNext();
   }
 
   @Override
   public long next() throws IOException {
-    return operatorNode.next();
+    if (cacheTimes == null || !cacheTimes.hasMoreData()) {
 
 Review comment:
   the same as TimestampGenerator

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


With regards,
Apache Git Services

Reply via email to