You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ca...@apache.org on 2022/11/27 05:39:00 UTC

[iotdb] 01/01: fix bug in ASTVisitor

This is an automated email from the ASF dual-hosted git repository.

caogaofei pushed a commit to branch beyyes/fix_slot
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit cfb7b030f739104d7c9afef65a14b7b80db15893
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Sun Nov 27 13:37:06 2022 +0800

    fix bug in ASTVisitor
---
 .../src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
index cc453de4dd..f1f0b0e236 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
@@ -3029,7 +3029,7 @@ public class ASTVisitor extends IoTDBSqlParserBaseVisitor<Statement> {
             new TSeriesPartitionSlot(Integer.parseInt(ctx.seriesSlot.getText())));
     if (ctx.timeSlot != null) {
       getRegionIdStatement.setTimeSlotId(
-          new TTimePartitionSlot(Integer.parseInt(ctx.timeSlot.getText())));
+          new TTimePartitionSlot(Long.parseLong(ctx.timeSlot.getText())));
     }
     return getRegionIdStatement;
   }