Skip to content

Commit 1576952

Browse files
Map bool->boolean (#4)
* Add object and datetime64[ns] to _p2smap * Added bool->boolean mapping * Remove datetype64[ns] mapping I see that it's a deprecated concept, and that it is preferred to have a UTC timecode as part of a datetime. * Add , back to last element that was mistakenly removed Purely a style question that I guessed wrong about. * Changed timestamp precision to (6) Accommodate Iceberg's requirements.
1 parent e110739 commit 1576952

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osc_ingest_trino/sqltypes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
'Int32': 'integer',
1616
'int64': 'bigint',
1717
'Int64': 'bigint',
18+
'bool': 'boolean',
1819
'category': 'varchar',
19-
'datetime64[ns, UTC]': 'timestamp',
20+
'datetime64[ns, UTC]': 'timestamp(6)',
2021
}
2122

2223
def pandas_type_to_sql(pt, typemap={}):

0 commit comments

Comments
 (0)