You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a reproducible example showing that writing timestamp without a timezone comes back as timestamp with a timezone when using delta_scan.
Not sure whether this is expected behavior!
importdatetimeimportduckdbimportdeltalakeasdlimportpyarrowaspat=pa.Table.from_pydict({"ts": [datetime.datetime(2024, 6, 27, 7, 13, 13)]})
# timezone should be Noneassertt["ts"].type.tzisNone# write the deltalake filedl.write_deltalake("test.delta", t)
ddb=duckdb.connect()
ddb.install_extension("delta")
ddb.load_extension("delta")
res=ddb.sql("DESCRIBE FROM delta_scan('test.delta')")
[(coltype,)] =res.column_type.fetchall()
# should be timestamp, but comes back as TIMESTAMP WITH TIME ZONEassertcoltype=="TIMESTAMP"
The text was updated successfully, but these errors were encountered:
Here's a reproducible example showing that writing timestamp without a timezone comes back as timestamp with a timezone when using
delta_scan
.Not sure whether this is expected behavior!
The text was updated successfully, but these errors were encountered: