Question: Does filtering on the Hive metadata "$path" column work? #24440
Unanswered
draganrelu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Suppose we have the following parquet files in S3:
And we create a Trino table
results
with the storage location ats3://history/results/
, partitioned bydt
.If we do a query that filters both on the partitioning column
dt
but also on the Hive metadata column$path
:This query will return the elements from
But would it also read and parse the content of the
bob
files in that day??
In other words, does query filtering on the
$path
column do "pre-filtering" (skips reading the content of certain files) or "post-filtering" (reads the contents of all files and then filters the results)?Thanks,
Relu
Beta Was this translation helpful? Give feedback.
All reactions