Add option to put "database_prefix" when import is mode is "from_s3". #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.