Skip to content

Add optional argument for glob pattern in databricks COPY INTO#259

Merged
ueshin merged 2 commits into
databricks:mainfrom
brooklyn-data:feat/copy-into-support-for-glob-pattern
Jan 25, 2023
Merged

Add optional argument for glob pattern in databricks COPY INTO#259
ueshin merged 2 commits into
databricks:mainfrom
brooklyn-data:feat/copy-into-support-for-glob-pattern

Conversation

@dluftspring
Copy link
Copy Markdown
Contributor

@dluftspring dluftspring commented Jan 23, 2023

Description

This PR adds an optional key word argument to the databricks_copy_into macro that allows the user to specify a pattern for file globbing. Please let me know if there are unintended consequences i'm not considering but based on my reading of the docs this should work. Please let me know how you normally handle unit testing.

Checklist

  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

@dluftspring dluftspring changed the title Add optional argument for glob pattern for databricks COPY INTO Add optional argument for glob pattern in databricks COPY INTO Jan 23, 2023
Copy link
Copy Markdown
Collaborator

@allisonwang-db allisonwang-db left a comment

Choose a reason for hiding this comment

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

Thanks for adding this!

@ueshin
Copy link
Copy Markdown
Contributor

ueshin commented Jan 25, 2023

Hi @dluftspring, could you add an item in CHANGELOG? I'll backport this to 1.4, so the item would be under the section for 1.4.0. Thanks.

@ueshin
Copy link
Copy Markdown
Contributor

ueshin commented Jan 25, 2023

The linter failure is not related to this PR. Let's fix it later.

@ueshin
Copy link
Copy Markdown
Contributor

ueshin commented Jan 25, 2023

Thanks! merging.

@ueshin ueshin merged commit 73628b9 into databricks:main Jan 25, 2023
ueshin pushed a commit that referenced this pull request Jan 25, 2023
### Description

This PR adds an optional key word argument to the `databricks_copy_into` macro that allows the user to specify a pattern for file globbing. Please let me know if there are unintended consequences i'm not considering but based on my reading of the docs this should work. Please let me know how you normally handle unit testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants