| object |
struct |
object |
JSON/JSONB |
record |
struct |
struct |
JSON |
ROW |
dict |
StructType |
| array |
[]T |
array |
ARRAY |
array |
List |
list |
Array(T) |
ARRAY |
list |
ArrayType |
| int8 |
int8 |
number |
smallint |
int |
tinyint |
int |
Int8 |
TINYINT |
int |
ByteType |
| int16 |
int16 |
number |
smallint |
int |
smallint |
int |
Int16 |
SMALLINT |
int |
ShortType |
| int32 |
int32 |
number |
integer |
int |
int |
int |
Int32 |
INT |
int |
IntegerType |
| int64 |
int64 |
number |
bigint |
long |
bigint |
long |
Int64 |
BIGINT |
int |
LongType |
| uint8 |
uint8 |
number |
smallint |
int |
smallint |
int |
UInt8 |
SMALLINT |
int |
ShortType |
| uint16 |
uint16 |
number |
integer |
int |
int |
int |
UInt16 |
INT |
int |
IntegerType |
| uint32 |
uint32 |
number |
bigint |
long |
bigint |
long |
UInt32 |
BIGINT |
int |
LongType |
| uint64 |
uint64 |
string |
numeric |
string |
string |
string |
UInt64 |
VARCHAR |
int |
StringType |
| boolean |
bool |
boolean |
boolean |
boolean |
boolean |
boolean |
bool |
BOOLEAN |
bool |
BooleanType |
| string |
string |
string |
text |
string |
string |
string |
String |
VARCHAR |
str |
StringType |
| float |
float32 |
number |
real |
float |
float |
float |
Float32 |
REAL |
float |
FloatType |
| double |
float64 |
number |
double precision |
double |
double |
double |
Float64 |
DOUBLE |
float |
DoubleType |
| decimal |
decimal.Decimal |
string |
numeric [ (p, s) ] |
"type": "bytes", "logicalType": "decimal", "precision": 4, "scale": 2 |
decimal |
decimal |
Decimal |
DECIMAL |
decimal.Decimal |
DecimalType |
| type: string, format: "ISO8601Date" |
time.Time{} |
string |
date |
type: string, format: "ISO8601Date" |
date |
date |
Date |
DATE |
datetime.date |
DateType |
| type: string, format: "ISO8601" |
time.Time{} |
string |
timestamp [ (p) ] with time zone |
type: string, format: "ISO8601" |
timestamp |
timestamp |
DateTime |
TIMESTAMP (3) |
datetime.datetime |
TimestampType |
| type: string, format: "RFC3339Nano" |
time.Time{} |
string |
timestamp [ (p) ] with time zone |
type: string, format: "RFC3339Nano" |
timestamp |
timestamp |
DateTime64 (9) |
TIMESTAMP (9) |
str |
StringType |
| type: string, format: "uuid" |
uuid.UUID{} |
string |
UUID |
type: string, logicalType: "uuid" |
string |
uuid |
UUID |
UUID |
uuid.UUID |
StringType |