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

Refresh Presto schema by table_name and skip hive views #3900

Closed
wants to merge 1 commit into from

Conversation

guyco33
Copy link
Contributor

@guyco33 guyco33 commented Jun 12, 2019

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

It takes very long time to construct Presto schema with one select query for large catalog that contains lots of tables.
Query also fails to retrieve columns when catalog contains hive view.
With this PR I split the schema construction into one query per table, so it's possible to skip hive views and each table query returns fast results.

@guyco33 guyco33 force-pushed the presto_schema_refresh branch 2 times, most recently from d6a8bd0 to febdcd7 Compare June 12, 2019 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant