Au-Miner opened a new pull request, #30079:
URL: https://github.com/apache/flink/pull/30079

   ## What is the purpose of the change
   
   Reject unsupported predicates in `LEFT JOIN LATERAL TABLE(...)` during SQL 
validation. A query with a predicate such as `ON f = v` previously passed 
validation and failed during planning with `unexpected correlate variable`. 
[FLINK-41638](https://issues.apache.org/jira/browse/FLINK-41638)
   
   ## Brief change log
   
   - Inspect the ordinary table function inside an explicit `LATERAL` call when 
checking the join predicate. Preserve key predicates for `LATERAL SNAPSHOT`.
   - Use a registered table function in the batch regression and add a 
streaming SQL case for `ON FALSE`. Both assert the validation message.
   
   ## Verifying this change
   
   - Both SQL regression tests failed before the fix and passed afterward. The 
focused run also passed the streaming `ON TRUE` case and the batch and 
streaming `LateralSnapshotJoinTest` suites (56 tests total).
   - `./mvnw -pl flink-table/flink-table-planner spotless:check verify` passed. 
Maven reported 12,439 unit tests and 11,324 integration tests, with 92 skipped 
and no failures or errors.
   
   ## Does this pull request potentially affect one of the following parts:
   
   - Dependencies (does it add or upgrade a dependency): no
   - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
   - The serializers: no
   - The runtime per-record code paths (performance sensitive): no
   - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
   - The S3 file system connector: no
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes
   
   Generated-by: OpenAI Codex CLI 0.169.1
   


-- 
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]

Reply via email to