You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][Connector-V2] DuckDB type conversion depends on Turkish locale #12581
I searched existing issues and pull requests for this type-conversion problem.
What happened
With the JVM default locale set to tr-TR, DuckDBTypeConverter converts a lowercase integer type to SeaTunnel STRING instead of INT. The uppercase conversion produces a dotted capital I, which does not match the switch constants. Lowercase tinyint and bigint have the same problem. Uppercase input type names work.
Reproduce by setting Locale.setDefault(Locale.forLanguageTag("tr-TR")) and passing BasicTypeDefine.builder().name("id").dataType("integer").columnType("integer").build() to DuckDBTypeConverter.INSTANCE.convert. Restore the original locale afterwards.
Expected: type-name matching yields the same result for lowercase and uppercase names in any JVM locale. This concerns catalog type conversion, separately from numeric SQL formatting in #12575.
SeaTunnel Version
Current dev at 4c4fd615d677695b619ca0e04fcfd82e104cd4a9.
SeaTunnel Config
Not configuration-dependent; use the Java API reproduction above.
Running Command
Run the converter reproduction on JDK 8 or 17.
Error Exception
No exception. The regression assertion reports expected: INT but was: STRING.
Activity