File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -466,6 +466,30 @@ assert rows[0][0] == "-2001-08-22"
466
466
assert cur.description[0 ][1 ] == " date"
467
467
```
468
468
469
+ # ## Trino to Python type mappings
470
+
471
+ | Trino type | Python type |
472
+ | ------------ | ------------------ - |
473
+ | BOOLEAN | bool |
474
+ | TINYINT | int |
475
+ | SMALLINT | int |
476
+ | INTEGER | int |
477
+ | BIGINT | int |
478
+ | REAL | float |
479
+ | DOUBLE | float |
480
+ | DECIMAL | decimal.Decimal |
481
+ | VARCHAR | str |
482
+ | CHAR | str |
483
+ | VARBINARY | bytes |
484
+ | DATE | datetime.date |
485
+ | TIME | datetime.time |
486
+ | TIMESTAMP | datetime.datetime |
487
+ | ARRAY | list |
488
+ | MAP | dict |
489
+ | ROW | tuple |
490
+
491
+ Trino types other than those listed above are not mapped to Python types. To use those use [legacy primitive types](# legacy-primitive-types).
492
+
469
493
# Need help?
470
494
471
495
Feel free to create an issue as it makes your request visible to other users and contributors.
You can’t perform that action at this time.
0 commit comments