Skip to content

Commit

Permalink
fix show history output
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed May 13, 2023
1 parent d6b5113 commit 11bbc52
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11459,4 +11459,29 @@ public boolean visit(SQLUnpivot x) {

return false;
}

public boolean visit(SQLShowHistoryStatement x) {
if (x.isTables()) {
print0(ucase ? "SHOW HISTORY FOR TABLES " : "show history for tables ");
} else {
print0(ucase ? "SHOW HISTORY FOR TABLE " : "show history for table ");
}
x.getTable().accept(this);

List<SQLAssignItem> properties = x.getProperties();
if (!properties.isEmpty()) {
print0(" (");
printAndAccept(properties, ", ");
print(')');
}

List<SQLAssignItem> partitions = x.getPartitions();
if (!partitions.isEmpty()) {
print0(ucase ? " PARTITION (" : " partition (");
printAndAccept(partitions, ", ");
print(')');
}
// HISTORY
return false;
}
}

0 comments on commit 11bbc52

Please sign in to comment.