in client/sql/dataframe.go [474:507]
func convertProtoDataTypeToDataType(input *proto.DataType) DataType {
switch v := input.GetKind().(type) {
case *proto.DataType_Boolean_:
return BooleanType{}
case *proto.DataType_Byte_:
return ByteType{}
case *proto.DataType_Short_:
return ShortType{}
case *proto.DataType_Integer_:
return IntegerType{}
case *proto.DataType_Long_:
return LongType{}
case *proto.DataType_Float_:
return FloatType{}
case *proto.DataType_Double_:
return DoubleType{}
case *proto.DataType_Decimal_:
return DecimalType{}
case *proto.DataType_String_:
return StringType{}
case *proto.DataType_Binary_:
return BinaryType{}
case *proto.DataType_Timestamp_:
return TimestampType{}
case *proto.DataType_TimestampNtz:
return TimestampNtzType{}
case *proto.DataType_Date_:
return DateType{}
default:
return UnsupportedType{
TypeInfo: v,
}
}
}