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

Add option to put "database_prefix" when import is mode is "from_s3". #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daniloffantinato
Copy link

Using this approach its possible to import between multiple accounts and
add a database prefix.

Hi,
I created this change on the import code based on a client engagement on Chile Peru, we needed to have a prefix on databases to import Glue Catalog between AWS accounts.
Actually the code is running daily to export from Account A to Account B and its working fine.

Issue #, if available:
I founded a issue related to a similar case "#43" but I made that based on client needs.

Description of changes:
Changed the function "metastore_import_from_s3" and change dataframes "databases", "tables" and "partitions" based on "db_prefix" parameter.

Changed the main and remove database_prefix from not_allowed_options

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Using this approach its possible to import between multiple accounts and
add a database prefix.
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.

1 participant