Merging upstream version 17.4.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f4a8b128b0
commit
bf82c6c1c0
78 changed files with 35859 additions and 34717 deletions
|
@ -12,7 +12,12 @@ def isolate_table_selects(expression, schema=None):
|
|||
continue
|
||||
|
||||
for _, source in scope.selected_sources.values():
|
||||
if not isinstance(source, exp.Table) or not schema.column_names(source):
|
||||
if (
|
||||
not isinstance(source, exp.Table)
|
||||
or not schema.column_names(source)
|
||||
or isinstance(source.parent, exp.Subquery)
|
||||
or isinstance(source.parent.parent, exp.Table)
|
||||
):
|
||||
continue
|
||||
|
||||
if not source.alias:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue