Hi I have a question regarding the automatic Glue ...
# support
b
Hi I have a question regarding the automatic Glue schema registration when sending data to S3: we're in the initial deployment steps and I expect our event data to change in future (e.g. additional attributes and therefore columns in the S3 parquet). In Athena, I've observed some HIVE_CURSOR_ERROR failures to read parquet files sent prior to a certain date which may be due to a schema discontinuity or change in column order -- before I attempt to use Glue to crawl the S3 bucket manually, I wanted to clarify my understanding of how the Rudderstack schema registration works and if there are preferred ways to keep the ability to query across Athena/glue tables while permitting additional columns to be added. Thanks!
👀 1
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Tom, checkout the doc on how the RudderStack Schema works here . Let me know if there are any followup questions.
b
After some investigation, I've found the problem: Athena's version 3 engine is not compatible with the parquet files generated with RudderStack, which use parquet format v1.0 (v2.7 is the current stable release). This results in HIVE_CURSOR_ERROR errors when the queries try to use parquet's predicate pushdown (i.e. the max and min metadata telling Athena which files can be skipped).
select * from "screens" where "context_session_id" = 1690447480
-- doesn't work on parquet v1 in Athena v3, where Athena would first leverage the sort headers to skip files. Results in HIVE_CURSOR_ERROR.
select * from "screens" where cast("context_session_id" as VARCHAR) = '1690447480'
-- the query does complete, as this query forces Athena to look at the column contents directly. Would it be possible to export files to S3 data lakes with a parquet format version > 2?
m
*Would it be possible to export files to S3 data lakes with a parquet format version > 2?*⁣ Let me check on this and get back to you.
Sorry we currently don't support the version 2
b
Hi Ranganath, thanks for following up. Were you able to replicate: 1. Send event data to an S3 datalake warehouse source with registration of the data in glue tables/databases on 2. Query the data with Athena (v3 engine) with queries that would try to use predicate pushdown (e.g. WHERE col > some_int) 3. Athena returns HIVE_CURSOR_ERROR Where the issue does not occur with the Athena engine set to v2 or the query is rewritten to avoid predicate pushdown?
m
Nope but I have passed the question along to the team.
b
Hi @shy-kite-21035 would it be part of the plan to use v2 in the near future?
m
Nope I have not gotten a conclusive answer on this.