vranes opened a new pull request, #60726: URL: https://github.com/apache/spark/pull/60726
### What changes were proposed in this pull request? Backport #60620 (commit `4dd8df5c10d`) to `branch-4.3`. Use `strictIdentifier` for the BIN BY table alias. The test-file conflict is resolved by placing the original BIN BY regression test after the existing BIN BY parser tests. ### Why are the changes needed? Spark 4.3 treats a join keyword after an unaliased BIN BY clause as the table alias in the default keyword mode. For example, `BIN BY (...) LEFT JOIN` produces an inner join instead of a left join. ### Does this PR introduce _any_ user-facing change? Yes. Join keywords after BIN BY start the correct join. Unquoted keyword aliases such as `AS left` are rejected; quoted aliases such as ``AS `left` `` remain valid. ### How was this patch tested? All 107 tests in `PlanParserSuite` pass on Spark 4.3.1-SNAPSHOT: ``` build/sbt 'catalyst/testOnly org.apache.spark.sql.catalyst.parser.PlanParserSuite' ``` The regression test checks join types in both keyword modes, an ordinary alias before a join, and a quoted keyword alias. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (GPT-6) The original patch and description were authored with Isaac (Claude Opus 5.5). This backport and its description were prepared with OpenAI Codex. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
