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

   ## What is the purpose of the change
   
   With Calcite planner logging at TRACE, explaining a query such as `SELECT 
COUNT(*) FROM T1` can fail with a `ClassCastException` while HEP computes the 
cost of a physical node. This change lets batch and streaming queries produce 
the same plans at INFO, DEBUG and TRACE. 
[FLINK-20899](https://issues.apache.org/jira/browse/FLINK-20899)
   
   ## Brief change log
   
   - Give HEP a Flink-compatible cost factory that preserves Calcite's 
row-count comparisons.
   - Keep HEP's row-count costs out of the metadata cache used by Volcano. This 
also fixes a cost cast during streaming Top-N planning.
   
   ## Verifying this change
   
   - `PlannerLoggingTest` verifies eight SQL queries in batch and streaming 
modes against the same plan snapshots at INFO, DEBUG and TRACE. The queries 
cover aggregates, joins, sorting and Top-N.
   - `FlinkHepRuleSetProgramTest` checks both cost factory overloads and the 
special cost values.
   - Ran `./mvnw -pl flink-table/flink-table-planner spotless:check verify`. 
Maven reported zero failures and errors across 12,456 unit tests (44 skipped) 
and 11,323 integration tests (48 skipped).
   
   ## 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