Skip to content

Commit c5bba2f

Browse files
committed
Fix test
1 parent bf21997 commit c5bba2f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

internal/connectors/clickhouse_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,12 @@ func TestInferClickHouseType(t *testing.T) {
158158
{float64(-1), "Int8"},
159159
{float64(-128), "Int8"},
160160
{float64(-129), "Int16"},
161-
{float64(32767), "Int32"}, // positive: 32767 < 65535 -> UInt16
161+
{float64(32767), "UInt16"}, // positive whole: 32767 <= 65535
162162
{float64(-32768), "Int16"},
163163
{float64(-32769), "Int32"},
164-
{float64(32767), "UInt16"},
165164
// float64 with decimals
166165
{float64(99.99), "Decimal(10, 2)"},
167-
{float64(100.00), "Decimal(10, 2)"},
168-
{float64(1.5), "Float64"},
166+
{float64(1.5), "Decimal(10, 2)"}, // has at most 2 decimal places
169167
{float64(99.999), "Float64"},
170168
// RFC3339 string -> DateTime
171169
{"2026-03-05T12:27:38Z", "DateTime"},

0 commit comments

Comments
 (0)