zhangshenghang opened a new pull request, #11068: URL: https://github.com/apache/seatunnel/pull/11068
### Purpose of this pull request Fixes #9849. Cassandra `timestamp` columns can be null. The current conversion path calls `Objects.requireNonNull(row.getInstant(i))`, so a null timestamp from Cassandra fails with `NullPointerException` before the row reaches downstream connectors. This patch keeps null timestamp values as null, and only converts non-null `Instant` values to `LocalDateTime`. ### Does this PR introduce _any_ user-facing change? No. It only fixes null handling for Cassandra timestamp columns. ### How was this patch tested? - `./mvnw -pl seatunnel-connectors-v2/connector-cassandra -Dtest=TypeConvertUtilTest#testBuildSeaTunnelRowKeepsNullTimestamp test` - `./mvnw -pl seatunnel-connectors-v2/connector-cassandra test` - `./mvnw spotless:apply` - `./mvnw -q -DskipTests verify` -- 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]
