SEPURI-SAI-KRISHNA commented on PR #13391: URL: https://github.com/apache/seatunnel/pull/13391#issuecomment-7128057697
Thank you @DanielLeens for the review. I took the first option. In `c470660fe5` the reflective test is replaced by `testWriteBindsTimestampAsTextWithMicroseconds`, which builds a real `DatabendSinkWriter` in traditional mode on a mocked `Connection` and calls the public `write()`. It checks the insert statement the writer prepared: the whole hour, microsecond and nanosecond values are bound with `setString` and six fractional digits, never with `setObject` of a `LocalDateTime` or with `setTimestamp`; the DATE value still goes through `setObject`; there is one `addBatch` and no `executeBatch` below the batch size. With the `LocalDateTime` branch of `processRow` disabled, the test fails. The production code and `DatabendIT` are unchanged. On JDK 17, `DatabendSinkWriterTest` passes 11/11, the module 26/26, and spotless is clean. -- 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]
