VirtualSelect opened a new pull request, #13445:
URL: https://github.com/apache/seatunnel/pull/13445

   Yes, I am contributing to Apache SeaTunnel. This patch and its tests were 
prepared with OpenAI Codex assistance.
   
   ### Purpose of this pull request
   Fixes #13441.
   
   Debezium's default converter can replace a DATETIME literal in a MySQL CDC 
ADD COLUMN event with a numeric epoch value. The same-dialect JDBC sink quotes 
that number and emits an invalid DATETIME default. Preserve a validated 
calendar DATETIME literal in the ADD event and use the sink's existing quoting. 
This leaves the shared default-value model, ALTER MODIFY/CHANGE, and 
cross-dialect default rendering unchanged.
   
   ### Does this PR introduce any user-facing change?
   Yes. A literal such as `1970-01-01 00:00:00` stays a DATETIME value instead 
of becoming `DEFAULT '0'`. Six fractional digits are preserved. 
`CURRENT_TIMESTAMP`, explicit NULL and numeric defaults keep their existing 
behavior.
   
   ### How was this patch tested?
   - Compiled dev MySQL CDC parser sources at `85c150df` against the published 
3.1.0 connector dependencies and ran the parser suite on OpenJDK 21. The new 
test reached the MySQL JDBC default renderer. Baseline: 5 passed, 1 failed with 
`DEFAULT '0'`. Patched: 6 passed.
   - Extended the existing MySQL CDC-to-JDBC schema-change IT to check target 
default values, DATETIME precision, and post-ALTER replicated data. Full Maven 
reactor and live MySQL E2E have not completed locally. Opening as a draft 
pending those checks.


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