Adding upstream version 16.7.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
2af48256b8
commit
7297023f4e
75 changed files with 33866 additions and 31988 deletions
|
@ -159,10 +159,11 @@ def explode_to_unnest(expression: exp.Expression) -> exp.Expression:
|
|||
if isinstance(expression, exp.Select):
|
||||
from sqlglot.optimizer.scope import build_scope
|
||||
|
||||
taken_select_names = set(expression.named_selects)
|
||||
scope = build_scope(expression)
|
||||
if not scope:
|
||||
return expression
|
||||
|
||||
taken_select_names = set(expression.named_selects)
|
||||
taken_source_names = set(scope.selected_sources)
|
||||
|
||||
for select in expression.selects:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue