You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RenderTable.WHEN_MULTIPLE_TABLE flag introduced with #8893 (probably) doesn't work correctly in correlated subqueries, where we must disambiguate between tables from the local scope and tables from the outer scope. This affects both:
Normal correlated subqueries
Implicit path correlations
A prudent approach would be to always qualify fields with their tables in all scalar subqueries. Derived tables aren't affected, except for lateral derived tables, which are also correlated.
This includes:
- [#16121] Add Context.scopeParts(Class<Q>): Iterable<Q> to
allow for iterating over the values that are currently in scope
- [#15998] RenderTable.WHEN_AMBIGUOUS_COLUMNS doesn't cover all
ambiguous column name cases
- [#15996] RenderTable.WHEN_MULTIPLE_TABLES doesn't work
correctly in correlated subqueries
This includes:
- [#16121] Add Context.scopeParts(Class<Q>): Iterable<Q> to
allow for iterating over the values that are currently in scope
- [#15998] RenderTable.WHEN_AMBIGUOUS_COLUMNS doesn't cover all
ambiguous column name cases
- [#15996] RenderTable.WHEN_MULTIPLE_TABLES doesn't work
correctly in correlated subqueries
This includes:
- [#16121] Add Context.scopeParts(Class<Q>): Iterable<Q> to
allow for iterating over the values that are currently in scope
- [#15998] RenderTable.WHEN_AMBIGUOUS_COLUMNS doesn't cover all
ambiguous column name cases
- [#15996] RenderTable.WHEN_MULTIPLE_TABLES doesn't work
correctly in correlated subqueries
The
RenderTable.WHEN_MULTIPLE_TABLE
flag introduced with #8893 (probably) doesn't work correctly in correlated subqueries, where we must disambiguate between tables from the local scope and tables from the outer scope. This affects both:A prudent approach would be to always qualify fields with their tables in all scalar subqueries. Derived tables aren't affected, except for lateral derived tables, which are also correlated.
This likely also affects
WHEN_AMBIGUOUS_COLUMNS
.See also:
The text was updated successfully, but these errors were encountered: