There was an error where aws wrangler would not convert parquet dates correctly. This has been fixed in AWS Data Wrangler 2.12.0 (PR that fixed it for context) so we need to point pydbtools to at least this release.
Check that it functions correctly run the workaround that I posted in the PR:
import awswrangler as wr
df = wr.athena.read_sql_query(
"SELECT mojap_end_datetime xhibit_v1.cases where mojap_latest_record LIMIT 10",
database="database",
pyarrow_additional_kwargs={"coerce_int96_timestamp_unit": "ms", "timestamp_as_object": True}
)
df.head()
You can use any SQL query that has an mojap_end_datetime as the default value is 2999-01-01 00:00:00 for latest records. This query should give back correct timestamps (2999-01-01 00:00:00).
If it works you will need to update the pyproject.toml to the relevant awrangler dependency.
There was an error where aws wrangler would not convert parquet dates correctly. This has been fixed in AWS Data Wrangler 2.12.0 (PR that fixed it for context) so we need to point pydbtools to at least this release.
Check that it functions correctly run the workaround that I posted in the PR:
You can use any SQL query that has an
mojap_end_datetimeas the default value is2999-01-01 00:00:00for latest records. This query should give back correct timestamps (2999-01-01 00:00:00).If it works you will need to update the
pyproject.tomlto the relevant awrangler dependency.