Replies: 3 comments
|
So the problem here is that when we FROM __ducklake_metadata_commoncrawl.ducklake_data_file select path_is_relative, path;
┌──────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ path_is_relative │ path │
│ boolean │ varchar │
├──────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ false │ https://data.commoncrawl.org/cc-index/table/cc-main/warc/crawl=CC-MAIN-2025-43/subset=warc/part-00299-08d3d8a4-29d7-4627-90c5-75c34ee698ca.c0… │
│ false │ https://data.commoncrawl.org/cc-index/table/cc-main/warc/crawl=CC-MAIN-2021-43/subset=warc/part-00299-16202947-a809-4711-8221-79ab0a79d5b1.c0… │
└──────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘I am unsure whether this is a bug... it seems to me that this is expected behaviour, otherwise added data files need to always be in the default path to be "usable". I think this is just one other example that we need better consistency, however I am unsure that the behaviour of this function will change. @pdet what do u think? |
|
This is expected behavior. Paths are only relative if they are the same paths as the table being created. If not, we will store absolute paths. This looks more like a feature request, I'll convert it to discussions. |
|
I ran into the same underlying issue with a local-filesystem use case. I'm using What I need is not for DuckLake to copy or reorganize the files. I need to register files relative to a logical data root, then provide the actual root at For example, at import time DuckLake could read: but store: Then at runtime: ATTACH 'ducklake:metadata.ducklake' AS dl (
DATA_PATH '/runtime/root/',
OVERRIDE_DATA_PATH true
);would resolve the file as: Today, if I pass a relative path to A |
Uh oh!
There was an error while loading. Please reload this page.
What happens?
I was checking if one can change the data access path in frozen Ducklakes.
@guillesd mentioned in the Discord that one could override the DATA_PATH with frozen ducklake: https://discord.com/channels/909674491309850675/1376911883486888048/1442477672914747472
Common Crawl data can be accessed both through cloudfront (unauthenticated and rate limited) or s3 ( authenticated and without limits).
I created a reproduction script which shows that even though the DATA_PATH is overwritten to S3 the files in frozen ducklake are not accessed though S3 interface.
Maybe it's not supposed to work with frozen ducklakes yet?
Remember to export your credentials as env
export AWS_ACCESS_KEY_ID='XXXXXX' AWS_SECRET_ACCESS_KEY='YYYYYY'or use your AWS provider config to authenticate with S3 for the test.To Reproduce
OS:
MacOS
DuckDB Version:
1.4.2
DuckLake Version:
f134ad8
DuckDB Client:
CLI
Hardware:
No response
Full Name:
Onni Hakala
Affiliation:
Freelancer
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have not tested with any build
Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
All reactions