-
Notifications
You must be signed in to change notification settings - Fork 616
Description
Description
Some DB tools use java.sql.Array#getBaseTypeName and java.sql.Array#getBaseType to determine what array element type is. And there is a difference between V1 and V2:
-
java.sql.Array#getBaseTypeNamein V1 returns simple type likeTuple,Nested. V2 returns column definition insteadTuple(Int32, String). It was done to provide more details. -
java.sql.Array#getBaseTypein V1 returns2002what matchesSTRUCTtype. V2 returns1111what matchesOTHERmeaning this is DB specific type with no match to JDBC one.
Now the problem is - how to make ClickHouse datatypes more JDBC compatible. Using only java.sql.Array#getBaseType would simplify thing. If driver returns java.sql.Types#OTHER then however application should get more information about type.
This issue is for:
- Review V2 behavior and fix
Tuple/Nestedif possible. - Define problem and discuss it.