Au-Miner opened a new pull request, #30080: URL: https://github.com/apache/flink/pull/30080
## What is the purpose of the change `UNIX_TIMESTAMP(ts)` and `UNIX_TIMESTAMP(ts, format)` parse their arguments. Marking them as non-deterministic prevents their use in filters on updating tables with `table.optimizer.non-deterministic-update.strategy=TRY_RESOLVE`. Only the zero-argument overload reads the current time. [FLINK-41637](https://issues.apache.org/jira/browse/FLINK-41637) ## Brief change log - Select the SQL operator by argument count in SQL and Table API calls. Keep the clock-based overload non-deterministic and allow constant folding for string arguments. - Use operand counts to resolve built-in overloads that share a name in compiled plans. ## Verifying this change - Added tests for determinism, monotonicity, non-deterministic arguments and compiled-plan round trips. Updated the batch and streaming plan expectations for constant folding. - Verified the updating-table filters with all three overloads and restored a plan containing all three that was compiled before the fix. - Ran `spotless:check` and `verify` for `flink-table/flink-table-planner`. ## 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: yes - 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]
