-
Notifications
You must be signed in to change notification settings - Fork 59
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
vdk-impala: Add optional parameter for staging table prefix #1666
vdk-impala: Add optional parameter for staging table prefix #1666
Conversation
What: Adding the option to pass a staging table prefix as well as code refactoring and readme file enhancements Why: It is linked to the issue Signed-off-by: Stefan Buldeev [email protected]
for more information, see https://pre-commit.ci
I left a few questions in the source issue trying to understand the problem. I will take a look at the PR after we that. |
Changing the staging table format from "{custom_prefix}_{target_table}" to "vdk_check_{target_schema}_{target_table}" and removing the optional parameter for custom prefix from the template.
…tps://github.com/vmware/versatile-data-kit into person/sbuldeev/add-staging-table-prefix-to-scd1
Raising an error in case of combination of vdk_check_{target_schema}_{target_table} longer than 128 characters.
Please add a test covering this new scenario - e.g execute_template being called twice with different schemas and same table name.. There are multiple reasons for why Adding a test to verify a bug fix is considered good practice:
|
Actually this change is in order to improve performance instead of fixing a bug. Lets say the tables are called vmc_schema.esx and vsphere_schema.esx. I would call the staging schema "check_schema". With that said I assume we can have same table names in different schema reusing same staging schema for checks. But if the structure of these tables is different(which I guess would be most of the times), the shared staging table between them will be dropped and created on each processing run, which I want to prevent with this change. |
What: Adding the option to pass a staging table prefix as well as code refactoring and readme file enhancements Why: It is linked to the issue Signed-off-by: Stefan Buldeev [email protected] --------- Signed-off-by: Stefan Buldeev [email protected] Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
What:
Adding the option to pass a staging table prefix as well as code refactoring and readme file enhancements
Why:
It is linked to the issue
Signed-off-by: Stefan Buldeev [email protected]