Support scalar function aliases in FROM - #3178
Conversation
f70b768 to
55a62d2
Compare
|
|
@fulghum DOLT
|
|
SummaryThe run covers generated-row behavior across direct naming, ordering, filtering, joins, record-shaped results, and array indexing, including boundary conditions such as invalid dimensions, empty arrays, and nullable arrays. Happy-path expansion and composition behave correctly, but an edge case produces incorrect query results for nullable arrays. Merge with caution — the PR introduces a medium-severity correctness issue in SQL result generation for nullable array inputs, despite the broader alias and row-expansion behavior passing. This is attributable to the change and should be treated as a merge risk, while no unrelated findings are present. Tests run by ItoTip Reply with @itoqa to send us feedback on this test run. |
5e3550f to
0638898
Compare
Commit: SummaryThe run covers core database behavior for generated values, aliases, record-shaped results, inserts, and correlated queries, including ordering and nested execution. It also exercises edge cases such as null or empty arrays, invalid dimensions, unsupported query forms, and mixed function outputs. Merge with caution — the PR introduces a medium-severity query-planning crash for a supported combination of record-returning and aliased generated-value functions, so affected queries fail instead of returning results; no data loss or corruption was observed. Tests run by ItoTip Reply with @itoqa to send us feedback on this test run. |
0638898 to
acfde2c
Compare
Commit: SummaryCoverage spans array expansion and table-valued function behavior across normal queries, aliases, joins, ordering, null and unsupported-dimension edge cases, and per-row correlated expansion. The tested non-correlated paths are broadly healthy, but correlated array expansion remains unsupported. Merge with caution — the PR enables a feature that works for ordinary alias and join usage but still fails for valid per-row correlated queries, creating a medium-impact functional gap for affected users. This is a meaningful limitation in the changed behavior rather than a flag-for-later observation. Tests run by ItoTip Reply with @itoqa to send us feedback on this test run. |
acfde2c to
3d005f4
Compare
Commit: SummaryCoverage spans normal query results, explicit and implicit naming, record-valued results, joins and per-row expansion, metadata ordering, and combinations of multiple array scans. It also exercises edge and recovery behavior for null or empty inputs, unsupported dimensions, and zero-based vector indexing, with overall behavior appearing healthy. Safe to merge — the run reports no PR-attributable regressions or unresolved failures across the exercised query, metadata, edge-case, and recovery behavior. No merge blocker is indicated; overall risk is low. Tests run by Ito
Tip Reply with @itoqa to send us feedback on this test run. |
3d005f4 to
2e7d52d
Compare
Commit: SummaryCoverage spans normal array expansion and alias behavior, legacy indexing, concurrent query isolation, and adversarial recovery paths, alongside edge cases for empty or null inputs and mixed function results. Happy-path behavior works, but important alias-related edge cases still produce incorrect rows or server failures. Merge with caution — the PR-attributable failures show that the changed alias behavior can silently return incorrect data and can crash valid mixed-function queries, creating meaningful but localized merge risk. Separate correlated-query failures are not attributable to this PR and remain flag-for-later observations. Tests run by ItoAdditional Findings DetailsThese findings are unrelated to the current changes but were observed during testing. 🟠 Correlated array queries mishandle null rows
Evidence Package🟡 Focused set returning function suite still fails
Evidence PackageTip Reply with @itoqa to send us feedback on this test run. |
2e7d52d to
ee562a0
Compare
Commit: SummaryCoverage spans normal query behavior for generated rows, aliases, joins, record fields, and independent array expansion, along with edge cases for empty and NULL inputs, missing or unsupported dimensions, row isolation, and malformed aliases. It also includes adversarial checks around invalid usage and regression coverage for previously problematic field handling, with the exercised behavior broadly healthy. Safe to merge — the run reports no PR-attributable regressions, new failures, or previously flagged failures, and the covered query and boundary behaviors are passing. The only caveat is that one malformed-alias check was blocked by environment setup rather than a product failure, so it is a flag for later and not a merge blocker. Tests run by Ito
Tip Reply with @itoqa to send us feedback on this test run. |


Enable PostgreSQL scalar-function aliases in
FROMto name the function output column, includinggenerate_subscripts(...) AS k. Record-returning functions retain their declared OUT column names.Pin go-mysql-server to the supporting planner and strict-SRF wrapper changes. Regression coverage includes alias references, NULL arguments, empty arrays, explicit column aliases, direct SRF calls, table-sourced NULL arrays, two scalar SRFs, and mixed scalar/record-returning functions in both orders. Assertions were verified against PostgreSQL 15.17 and with
GOWORK=off go test ./testing/go -run TestSetReturningFunctions -count=1.Fixes #3173
Depends on: go-mysql-server #3726