You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "yzeng1618 (via GitHub)" <gi...@apache.org> on 2026/01/22 08:24:27 UTC

Re: [I] [Bug][connector-jdbc] integer overflow when reading MySQL LONGTEXT with table_path + query [seatunnel]

yzeng1618 commented on issue #10386:
URL: https://github.com/apache/seatunnel/issues/10386#issuecomment-3783143768

   The main cause of the current issue is: when table_path + query is used, it goes through JdbcCatalogUtils.mergeCatalogTable to perform table schema merging. For MySQL type mapping, LONGTEXT/LONGBLOB directly set columnLength = 2^32-1 = 4294967295L
   . However, Column.columnLength itself is a Long, and casting it to int during merging triggers an ArithmeticException: integer overflow.
   For now, if you are doing single-table synchronization, a temporary workaround is to use the query directly for synchronization without adding table_list. You can give this a try.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org