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

fix the schema-fetching problem for impala in sql_lab #3906

Merged
merged 4 commits into from Nov 21, 2017

Conversation

xiaoyugit
Copy link
Contributor

@xiaoyugit xiaoyugit commented Nov 20, 2017

works for [thrift==0.9.3|0.10.0].

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

This is the right approach. I just have 2 minor corrections I'd like to see.

@@ -726,7 +726,8 @@ def all_view_names(self, schema=None, force=False):
return views

def all_schema_names(self):
return sorted(self.inspector.get_schema_names())
schemas = sorted(self.db_engine_spec.get_schema_names(self.inspector))
Copy link
Member

Choose a reason for hiding this comment

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

no need for the affectation, just return directly

@@ -148,6 +148,10 @@ def adjust_database_uri(cls, uri, selected_schema):
def patch(cls):
pass

@classmethod
def get_schema_names(cls, inspector):
return sorted(inspector.get_schema_names())
Copy link
Member

Choose a reason for hiding this comment

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

The code calling the function is already sorting, no need to sort here.

@mistercrunch mistercrunch merged commit feb15a3 into apache:master Nov 21, 2017
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* fix the schema-fetching problem for impala in sql_lab

* delete redundant print

* remove blank lines...

* minior corrections
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* fix the schema-fetching problem for impala in sql_lab

* delete redundant print

* remove blank lines...

* minior corrections
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.21.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants