Skip to content

Commit

Permalink
fix: Alias of the ParenthesedSelect when FromItem is a TableFunction
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <[email protected]>
Signed-off-by: manticore-projects <[email protected]>
  • Loading branch information
manticore-projects committed Dec 8, 2024
1 parent e8ff9fb commit 469190d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ private static Alias getAliasFromItem(FromItem fromItem) {
if (fromItem instanceof Table && fromItem.getAlias() == null) {
Table t = (Table) fromItem;
return new Alias(t.getName(), true);
} else if (fromItem instanceof TableFunction && fromItem.getAlias() == null) {
TableFunction t = (TableFunction) fromItem;
return new Alias(t.getName(), true);
} else {
return new Alias(fromItem.getAlias().getName(), true);
}
Expand Down

0 comments on commit 469190d

Please sign in to comment.