haruki-830 opened a new pull request, #4495: URL: https://github.com/apache/flink-cdc/pull/4495
#### Summary This PR completes temporal expression support in Flink CDC YAML Transform. It adds runtime support for `EXTRACT` and date-part functions, and introduces interval literal arithmetic for `DATE`, `TIME`, `TIMESTAMP`, and `TIMESTAMP_LTZ` values. #### Key Changes 1. EXTRACT and Date-Part Functions / Commit1 - Added support for `EXTRACT(...)`. - Added `YEAR`, `QUARTER`, `MONTH`, `WEEK`, `DAYOFYEAR`, `DAYOFMONTH`, `DAYOFWEEK`, `HOUR`, `MINUTE`, and `SECOND`. - Added pipeline time-zone handling for `TIMESTAMP_LTZ`. - Added parser, runtime, YAML Transform, and documentation coverage. 2. Interval Literal Arithmetic / Commit2 - Added support for `temporal +/- INTERVAL` and `INTERVAL + temporal`. - Supports year-month and day-time interval literals, including compound forms such as `INTERVAL '1-2' YEAR TO MONTH` and `INTERVAL '1 02:03:04' DAY TO SECOND`. - Supports `DATE`, `TIME`, `TIMESTAMP`, and `TIMESTAMP_LTZ`, preserving their runtime types and null semantics. - Added coverage for projection, filtering, nested arithmetic, negative intervals, invalid expressions, and null values. 3. Verification - Verified runtime and parser tests with both Flink 1.x and Flink 2.x profiles. - Verified `temporal.yaml` runtime specifications with both Flink profiles. - Updated the English and Chinese Transform documentation. #### JIRA Reference [https://issues.apache.org/jira/browse/FLINK-40312](url) -- 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]
