in go/adbc/sqldriver/driver.go [326:367]
func isCorrectParamType(typ arrow.Type, val driver.Value) bool {
switch typ {
case arrow.BINARY:
return checkType[[]byte](val)
case arrow.BOOL:
return checkType[bool](val)
case arrow.INT8:
return checkType[int8](val)
case arrow.UINT8:
return checkType[uint8](val)
case arrow.INT16:
return checkType[int16](val)
case arrow.UINT16:
return checkType[uint16](val)
case arrow.INT32:
return checkType[int32](val)
case arrow.UINT32:
return checkType[uint32](val)
case arrow.INT64:
return checkType[int64](val)
case arrow.UINT64:
return checkType[uint64](val)
case arrow.STRING:
return checkType[string](val)
case arrow.FLOAT32:
return checkType[float32](val)
case arrow.FLOAT64:
return checkType[float64](val)
case arrow.DATE32:
return checkType[arrow.Date32](val)
case arrow.DATE64:
return checkType[arrow.Date64](val)
case arrow.TIME32:
return checkType[arrow.Time32](val)
case arrow.TIME64:
return checkType[arrow.Time64](val)
case arrow.TIMESTAMP:
return checkType[arrow.Timestamp](val)
}
// TODO: add more types here
return true
}