Skip to content

Commit

Permalink
another another type to add
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Dec 11, 2024
1 parent de7c766 commit dff1b04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flow/e2e/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ func (s ClickHouseSuite) GetRows(table string, cols string) (*model.QRecordBatch
}
case *int64:
qrow = append(qrow, qvalue.QValueInt64{Val: *v})
case **int16:
if *v == nil {
qrow = append(qrow, qvalue.QValueNull(qvalue.QValueKindInt16))
} else {
qrow = append(qrow, qvalue.QValueInt16{Val: **v})
}
case *int16:
qrow = append(qrow, qvalue.QValueInt16{Val: *v})
default:
return nil, fmt.Errorf("cannot convert %T to qvalue", v)
}
Expand Down

0 comments on commit dff1b04

Please sign in to comment.