Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Dec 23, 2024
1 parent 476c010 commit b9ad96c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.Flush;
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.KillQuery;
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.PipeStatement;
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.RenameColumn;
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.RenameTable;
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.SetConfiguration;
import org.apache.iotdb.db.queryengine.plan.relational.sql.ast.SetProperties;
Expand Down Expand Up @@ -396,6 +397,7 @@ private IQueryExecution createQueryExecutionForTableModel(
|| statement instanceof DropColumn
|| statement instanceof DropTable
|| statement instanceof DeleteDevice
|| statement instanceof RenameColumn
|| statement instanceof RenameTable
|| statement instanceof UpdateTreeView
|| statement instanceof ShowCluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ protected IConfigTask visitRenameTable(final RenameTable node, final MPPQueryCon
return new AlterTableRenameTableTask(
databaseTablePair.getLeft(),
databaseTablePair.getRight(),
node.getTarget().getValue(),
context.getQueryId().getId(),
node.getTarget().getValue(),
node.tableIfExists());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public boolean tableIfExists() {
}

@Override
public <R, C> R accept(final AstVisitor<R, C> visitor, C context) {
public <R, C> R accept(final AstVisitor<R, C> visitor, final C context) {
return visitor.visitRenameTable(this, context);
}

Expand Down

0 comments on commit b9ad96c

Please sign in to comment.