We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf21997 commit c5bba2fCopy full SHA for c5bba2f
1 file changed
internal/connectors/clickhouse_test.go
@@ -158,14 +158,12 @@ func TestInferClickHouseType(t *testing.T) {
158
{float64(-1), "Int8"},
159
{float64(-128), "Int8"},
160
{float64(-129), "Int16"},
161
- {float64(32767), "Int32"}, // positive: 32767 < 65535 -> UInt16
+ {float64(32767), "UInt16"}, // positive whole: 32767 <= 65535
162
{float64(-32768), "Int16"},
163
{float64(-32769), "Int32"},
164
- {float64(32767), "UInt16"},
165
// float64 with decimals
166
{float64(99.99), "Decimal(10, 2)"},
167
- {float64(100.00), "Decimal(10, 2)"},
168
- {float64(1.5), "Float64"},
+ {float64(1.5), "Decimal(10, 2)"}, // has at most 2 decimal places
169
{float64(99.999), "Float64"},
170
// RFC3339 string -> DateTime
171
{"2026-03-05T12:27:38Z", "DateTime"},
0 commit comments