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

VDK-Plugin: Added insert template to trino plugin #3363

Merged
merged 2 commits into from
May 20, 2024

Conversation

anitaratansingh
Copy link
Contributor

@anitaratansingh anitaratansingh commented May 16, 2024

  • Added insert template in trino plugin
  • Workflow of template:
  1. check if schema of source and target schema matches
  2. Add quality check:
    Drop staging table if exists
    Create staging table, insert source data to staging table
    Drop view if exists
    Create view by combining staging table + target table
    pass view to validation check function
  3. Drop tmp_target if exists
    Drop backup_target if exists
    create tmp_target
    insert source_view and target data into tmp_target
    move data from tmp_target to target table using trino_utility function

@anitaratansingh anitaratansingh force-pushed the person/sianita/add_insert_template_trino_plugin branch 11 times, most recently from 93eb22a to 5be13cc Compare May 17, 2024 08:35
@anitaratansingh anitaratansingh force-pushed the person/sianita/add_insert_template_trino_plugin branch from d4af46a to fd29743 Compare May 17, 2024 09:47
Copy link
Collaborator

@dakodakov dakodakov left a comment

Choose a reason for hiding this comment

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

lgtm

@anitaratansingh anitaratansingh merged commit 80654b3 into main May 20, 2024
9 of 10 checks passed
@anitaratansingh anitaratansingh deleted the person/sianita/add_insert_template_trino_plugin branch May 20, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants