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

[sql_lab] Handle PyHive DatabaseError format #4019

Merged
merged 1 commit into from Dec 7, 2017

Conversation

dmigo
Copy link
Contributor

@dmigo dmigo commented Dec 6, 2017

Fixes #4013

Converts this:
screen shot 2017-12-05 at 17 32 09

into this:
screen shot 2017-12-06 at 11 44 05

Current implementation is based on what is available in debugger when running superset locally. Plus on the current implementation of the PyHive.

Not sure where the current approach comes from, but I left it there since according to @mistercrunch it seems to still work in some cases.

@fabianmenges
Copy link
Contributor

I don't think we should send the entire call stack to the client side. Thats generally bad practice specifically for security reasons. Errors should be logged on the application side.

@dmigo
Copy link
Contributor Author

dmigo commented Dec 6, 2017

@fabianmenges that is what this pr is about. It sends only the message now.

@dmigo dmigo changed the title [WIP] Add support of another DatabaseError format [WIP][sql_lab] Add support of another DatabaseError format Dec 6, 2017
@dmigo dmigo changed the title [WIP][sql_lab] Add support of another DatabaseError format [sql_lab] Handle PyHive DatabaseError format Dec 6, 2017
@fabianmenges
Copy link
Contributor

Ah... sorry, I can't read. LGTM

@mistercrunch mistercrunch merged commit e02d35e into apache:master Dec 7, 2017
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@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.

[sql lab] Presto & Hive errors shows as big unreadable messages
3 participants