Skip to content

Commit 9b73296

Browse files
committed
fix bug
1 parent 75e82f8 commit 9b73296

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

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

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,12 +1654,10 @@ public Node visitShowConfigurationStatement(
16541654
RelationalSqlParser.ShowConfigurationStatementContext ctx) {
16551655
ShowConfigurationStatement showConfigurationStatement;
16561656
boolean withDescription = ctx.DESC() != null;
1657-
if (ctx.ALL() != null) {
1658-
showConfigurationStatement = new ShowConfigurationStatement(true, -1, withDescription);
1659-
} else {
1660-
int nodeId = ctx.nodeId == null ? -1 : Integer.parseInt(ctx.nodeId.getText());
1661-
showConfigurationStatement = new ShowConfigurationStatement(false, nodeId, withDescription);
1662-
}
1657+
boolean showAllConfiguration = (ctx.ALL() != null);
1658+
int nodeId = ctx.nodeId == null ? -1 : Integer.parseInt(ctx.nodeId.getText());
1659+
showConfigurationStatement =
1660+
new ShowConfigurationStatement(showAllConfiguration, nodeId, withDescription);
16631661
return new ShowConfiguration(showConfigurationStatement, null);
16641662
}
16651663

0 commit comments

Comments
 (0)