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

feat: Vertica metadata extractor #433

Merged
merged 8 commits into from
Feb 4, 2021
Merged

Conversation

sanzgiri
Copy link
Contributor

@sanzgiri sanzgiri commented Jan 27, 2021

feat: Adding a metadata extractor for Vertica

Summary of Changes

Adding metadata extractor for Vertica

Tests

Confirmed extractor works in a local installation.
Can contribute a sample_vertica_loader.py file
No tests added, but could add. Please provide pointers on doing this.

Documentation

None so for

CheckList

Make sure you have checked all steps below to ensure a timely review.

  • [ x] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • [ x] PR includes a summary of changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
  • PR passes make test

@sanzgiri sanzgiri requested a review from a team as a code owner January 27, 2021 18:25
@sanzgiri sanzgiri changed the title Adding metadata extractor for Vertica feat: Vertica metadata extractor Jan 27, 2021
databuilder/extractor/ver Outdated Show resolved Hide resolved
Adding a metadata extractor for Vertica using MySQL as template

Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Signed-off-by: Ashutosh Sanzgiri <[email protected]>
@feng-tao feng-tao added the keep fresh Disables stalebot from closing an issue label Jan 29, 2021
Copy link
Member

@feng-tao feng-tao left a comment

Choose a reason for hiding this comment

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

could you add a readme of this extractor? thanks

CLUSTER_KEY config parameter is used as cluster name
Not distinguishing between table & view for now
"""
# SELECT statement from vertica information_schema to extract table and column metadata
Copy link
Member

Choose a reason for hiding this comment

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

do you need any vertica deps to use this extractor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can add a section in the README in the top directory of the repo, under the List of Extractors.

I can also add an example as a file example/scripts/vertica_data_loader.py that shows how the extractor can be used.

Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Signed-off-by: Ashutosh Sanzgiri <[email protected]>
@feng-tao feng-tao merged commit f4bd207 into amundsen-io:master Feb 4, 2021
Wonong pushed a commit to Wonong/amundsendatabuilder that referenced this pull request Mar 4, 2021
* Adding metadata extractor for Vertica

Adding a metadata extractor for Vertica using MySQL as template

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* renaming appropriately

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* reordering imports

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* add docs for vertica extractor

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* fix lint errors

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* fix isort errors

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* fix isort errors

Signed-off-by: Ashutosh Sanzgiri <[email protected]>

* fix isort errors

Signed-off-by: Ashutosh Sanzgiri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep fresh Disables stalebot from closing an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants