Support custom partitioning schemes based on "patterns" in the OPTIONS files parameter of CREATE FOREIGN TABLE #79
Labels
feature
New feature or request
priority-low
Low priority issue
question
Further information is requested
user-request
This issue was directly requested by a user
What feature are you requesting?
The ability to specify a custom partitioning scheme through the use of a pattern in the
files
option when creating foreign tables, like this:CREATE FOREIGN TABLE my_table () SERVER parquet_server OPTIONS (files 's3://bucket/data_{id_1}_{id_2}.parquet')
Why are you requesting this feature?
To support existing custom partitioning scheme.
What is your proposed implementation for this feature?
Foreign tables could be created like this:
CREATE FOREIGN TABLE my_table () SERVER parquet_server OPTIONS (files 's3://bucket/data_{id_1}_{id_2}.parquet')
...or this:
CREATE FOREIGN TABLE my_table () SERVER parquet_server OPTIONS (files 's3://bucket/data_{id_1}_*.parquet')
The values in brackets must correspond with column names defined in the referenced parquet files or the statement will fail.
When running a query like this on the first table defined above:
...the
id_1
andid_2
column values from the sql where clause will be substituted into thefiles
pattern producing a string that must correspond with an actual parquet file at the specified s3 location:s3://bucket/data_1234_0987.parquet
A query on the second table table defined above:
...will produce a
files
pattern after substitution that looks like this:s3://bucket/data_1234_*.parquet
Full Name:
Patrick Park
Affiliation:
Payzer
The text was updated successfully, but these errors were encountered: