ulysses-you opened a new pull request, #5088: URL: https://github.com/apache/paimon/pull/5088
<!-- Please specify the module before the PR name: [core] ... or [flink] ... --> ### Purpose <!-- Linking this pull request to the issue --> <!-- What is the purpose of the change --> Adds a new Spark function `max_pt`. It accpets a string type literal and return a max-valid-toplevel partition value. - `valid` means the partition contains data files - `toplevel` means only return the first partition value if the table has multi-partition columns `max_pt` will throw exception when: - the table is not a partitioned table - the partitioned table does not have partition - all of the partitions do not contains data files This pr adds `max_pt` through spark v2 function catalog using a fake scalar function and then adds a rule to replace `max_pt` to a literal value during analysis. <!-- List UT and IT cases to verify this change --> ### API and Format <!-- Does this change affect API or storage format --> no ### Documentation <!-- Does this change introduce a new feature --> -- 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]
