Open Raffaellorr opened 2 years ago
I debugged the source code, found that it's because the ColumnDefinition
's scale filed is set to 0. But it should be 6.
I suggest that the source code should be:
ColumnDefinition.java:479
old
recommendedPrecision = precision < 0 ? DEFAULT_DATETIME64_PRECISION : precision;
new
recommendedPrecision = precision <= 0 ? DEFAULT_DATETIME64_PRECISION : precision;
When I transfrom Oracle's
timestamp
type, the result is error. The root cause is that ClickHousetoDateTime64()
function requires UInt32 type with seconds, but jdbc-bridge offers UInt64 with millSeconds.Example Oracle
ClickHouse