DanielLeens opened a new issue, #13660: URL: https://github.com/apache/seatunnel/issues/13660
Yes, I am contributing to Apache SeaTunnel. ### Problem The JDBC source converts STRING fields through `JdbcFieldTypeUtils.getString`. Since #9305 added Oracle BLOB-as-string support, this helper calls `ResultSet.getObject` to identify a Blob, then calls `getString` for other non-null values. With MySQL Connector/J 8.0.33, ordinary character values are decoded by both getters. An existing full-engine JFR diagnostic on a one-million-row, 19-field workload recorded 467 inclusive CPU samples in this helper. This is a source-read hotspot, not proof of a particular end-to-end speedup. ### Proposed boundary Use direct `getString` only when the result-set metadata explicitly declares `java.lang.String` as the class returned by `getObject`. Preserve the existing object-based path for Blob/unknown metadata and when optional metadata cannot be obtained. Continue using the driver's `getString` result rather than reusing the object getter's String: Connector/J can apply different `clobCharacterEncoding` behavior to the latter. Preserve SQL NULL, empty strings, Unicode, full Blob UTF-8 decoding and Blob release. This is distinct from open #13589, which caches schema conversion metadata. No API/configuration/default/dependency changes are proposed. The initial implementation will avoid a global result-set cache or ThreadLocal so it does not retain connections or classloaders. ### Validation Extend existing focused tests and the existing MySQL IT with decoding/NULL/empty-string checks. Run affected formatting, compilation and tests, validate the actual built artifact against self-hosted private MySQL, PostgreSQL and SQL Server as applicable, then compare complete engines with warmup, alternating million-row pairs and exact reconciliation of all 19 declared fields. Retain losing profiles; do not report this optimization as faster than DataX until the formal results establish that claim. -- 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]
