Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass down schema on table creation #271

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

simonpannek
Copy link
Contributor

@simonpannek simonpannek commented Jan 28, 2025

Summary

Description

There is no out-of-the-box way to configure dbt models materialised as tables to be created in subdirectories.

Test Results

Added tests to check the new behavior.

Changelog

  • Push down schema definition to Dremio on table creation
  • Added a summary of what this PR accomplishes to CHANGELOG.md

Contributor License Agreement

@simonpannek simonpannek force-pushed the apply-schema-to-tables branch 3 times, most recently from 61d9820 to 82a7bbf Compare February 18, 2025 15:04
@simonpannek simonpannek force-pushed the apply-schema-to-tables branch from 82a7bbf to 442df41 Compare February 18, 2025 15:06
@simonpannek simonpannek marked this pull request as ready for review February 18, 2025 19:07
@simonpannek
Copy link
Contributor Author

The test cases around this don't seem to have that great coverage. I added two basic cases, but we might want to do some manual testing/extend these before merging.

Copy link
Contributor

@howareyouman howareyouman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR!

Are you planning to add more test cases or you think we are ok with only 2 you provided?

Could you please also remove info logging? If you need them, you could change logging level to "debug".

kwargs = {
"database": relation_parts[0],
"schema": relation_parts[1],
"identifier": relation_parts[2],
"schema": ".".join(relation_parts[1:-1]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there is no 1st element? and only zero one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants