zhang-arvin opened a new pull request, #11849:
URL: https://github.com/apache/seatunnel/pull/11849
## Purpose
Closes #10215
## Changes
Added missing test cases to `DmdbTypeConverterTest.java`:
1. **testReconvertTimestampTz** - Tests reconversion of
`OFFSET_DATE_TIME_TYPE` to `DATETIME WITH TIME ZONE` (with and without scale)
2. **testReconvertTimestampTzBoundary** - Tests that scale > 6 is capped at
MAX_TIMESTAMP_SCALE for TIMESTAMP_TZ
3. **testReconvertDecimalBoundary** - Tests boundary conditions for Decimal
reconversion:
- Precision > 38 (capped at 38, scale adjusted)
- Scale < 0 (capped at 0)
- Scale > 37 (capped at 37)
4. **testReconvertTimeBoundary** - Tests that scale > 6 is capped at
MAX_TIME_SCALE for TIME
5. **testReconvertTimestampBoundary** - Tests that scale > 6 is capped at
MAX_TIMESTAMP_SCALE for TIMESTAMP
These tests improve unit test coverage for the Dameng/DM JDBC type
converter, covering edge cases and boundary conditions that were previously
untested.
--
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]