Skip to content

Commit 86178d7

Browse files
authored
Throw 701 while show time partition in table mode
1 parent ed1f1b8 commit 86178d7

File tree

1 file changed

+4
-4
lines changed
  • iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/parser

1 file changed

+4
-4
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/parser/AstBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,25 +1143,25 @@ public Node visitShowClusterIdStatement(RelationalSqlParser.ShowClusterIdStateme
11431143

11441144
@Override
11451145
public Node visitShowRegionIdStatement(RelationalSqlParser.ShowRegionIdStatementContext ctx) {
1146-
return super.visitShowRegionIdStatement(ctx);
1146+
throw new SemanticException("SHOW REGION ID is not supported yet.");
11471147
}
11481148

11491149
@Override
11501150
public Node visitShowTimeSlotListStatement(
11511151
RelationalSqlParser.ShowTimeSlotListStatementContext ctx) {
1152-
return super.visitShowTimeSlotListStatement(ctx);
1152+
throw new SemanticException("SHOW TIME SLOT is not supported yet.");
11531153
}
11541154

11551155
@Override
11561156
public Node visitCountTimeSlotListStatement(
11571157
RelationalSqlParser.CountTimeSlotListStatementContext ctx) {
1158-
return super.visitCountTimeSlotListStatement(ctx);
1158+
throw new SemanticException("COUNT TIME SLOT is not supported yet.");
11591159
}
11601160

11611161
@Override
11621162
public Node visitShowSeriesSlotListStatement(
11631163
RelationalSqlParser.ShowSeriesSlotListStatementContext ctx) {
1164-
return super.visitShowSeriesSlotListStatement(ctx);
1164+
throw new SemanticException("SHOW SERIES SLOT is not supported yet.");
11651165
}
11661166

11671167
@Override

0 commit comments

Comments
 (0)