-
Notifications
You must be signed in to change notification settings - Fork 5
Add view support in GlueSync #130
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
Conversation
|
|
||
| private void syncTable(String dbName, String tableName, boolean deleteGluePartitions, boolean verbose) | ||
| throws TException { | ||
| private void syncTable(String dbName, String tableName, boolean deleteGluePartitions, boolean syncOnlyViews, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal, but if we need to keep adding options to this method, we should consider adding a SyncTableOptions class that encapsulates deleteGluePartitions, syncOnlyViews, and verbose.
|
|
||
| boolean continueOnError = cmd.hasOption("continueOnError"); | ||
| boolean deleteGluePartitions = !cmd.hasOption("keep-glue-partitions"); | ||
| boolean syncOnlyViews = cmd.hasOption("sync-only-views"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make this a bit more flexible: sync-types=[view,table,database]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or just support view, table and [view,table] for both
...java/com/expediagroup/apiary/extensions/gluesync/listener/service/HiveToGlueTransformer.java
Show resolved
Hide resolved
| options.addOption(new Option(null, "keep-glue-partitions", false, | ||
| "If true, will keep glue partitions even if there is no corresponding hive partition. If false will delete them (default: false)")); | ||
| options.addOption(new Option(null, "sync-types", true, | ||
| "Choose what table type to sync. If non specified it will be sync all table types. Example: sync-types=EXTERNAL_VIEW,MANAGED_TABLE,EXTERNAL_TABLE")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add the list of possible values?
| <include>com.amazonaws:*</include> | ||
| <include>com.expediagroup.apiary:*</include> | ||
| <include>org.apache.httpcomponents:*</include> | ||
| <include>io.micrometer:*</include> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relocate as well
📝 Description
3.6.1(was3.1.1).apiary-gluesync-listenerto1.12.792(was1.12.276)apiary-gluesync-listener.apiary-gluesync-listenerCLI🔗 Related Issues