-
Notifications
You must be signed in to change notification settings - Fork 12
Support 3-part paths in DuckDB #24
Support 3-part paths in DuckDB #24
Conversation
|
Please base your PR on this recently merged PR - #18 Use a similar implementation. (using lower() is probably wrong for duckdb) Also add DuckDB to the simple test that it introduces. |
|
|
Thanks for sharing that error message from the CI checks @dlawin. Are there any instructions I can follow for running the CI checks locally? |
|
1 and 2 part drop statements are working, but seems that 3 part is not: |
|
Hmm I think the issue here is that duckdb doesn't seem to support 3 part paths. Only <schema>.<object> |
|
It should. https://duckdb.org/docs/sql/statements/attach#name-qualification Are you sure you're using the newest duckdb? |
|
seems to be added in 0.7.0 |
|
I have not tested how 3-part paths for Could you try re-running the workflow? More detail
I just did some more testing with DuckDB 0.6 (which is not the newest version). It does support 3-part paths for |
Looks like I need to generate a new lock file after updating |
Oh I beat you to it. Works for me locally and the tests are passing here |

resolves #21
History
#22 was an initial attempt at unblocking
data-diff --dbtfor DuckDB. This is a second attempt.Happy to iterate on this PR to fix things for DuckDB the proper way 🤗 Just let me know anything that needs to be addressed.
Enabling 3-part fully-qualified names (FQN)
This PR enables all of the following for DuckDB connections:
The latter is especially important for the following reasons:
Implementation details
Both DuckDB and Redshift have lots of similarities with PostgreSQL. So for this implementation, I just copied-pasted two methods from redshift to duckdb:
select_table_schema_normalize_table_pathCaveats
See it in action
Wanna see it in action? Follow the simple instructions here.