Closed VDFaller closed 1 year ago
@owenprough-sift I'm confused what you're telling me (unless you're not talking to me and just putting in some debug notes). Because that same sql file runs fine when I just run it on athena.
Your sample query runs fine as a SELECT
statement, but not in a CREATE
statement, which is what dbt-athena
runs. You can try it yourself in the Athena web console:
CREATE TABLE tz_table AS SELECT CAST('2022-07-20 9:15:00 US/Pacific' AS Timestamp with time zone) as dt
You'll get the error.
Until Athena/Hive adds support for timezone-aware timestamp datatype, the workaround is probably to use the timestamp
datatype (and store your timestamps in UTC) and convert them to the desired timezone on-the-fly as necessary.
OH, gotcha. Thanks for the explaination.
Closing this as it seems it's more an athena issue than dbt
how to replicate
create a sql file
run
error