Is there any way to show nice exceptions in jupyter that are thrown by phhive.

Open
#402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
jupyter, python
Domain
databases

Research direction

Reproduce the shown PyHive HiveServer2 exception in a Jupyter session and inspect how the response is surfaced to the user. Clarify the desired readable format and define done as presenting the SQL error without requiring users to parse the nested Hive and Spark exception text.

Written by the indexing model from the issue text.

Description

TExecuteStatementResp(status=TStatus(statusCode=3, infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Error running query: org.apache.spark.sql.AnalysisException: cannot resolve '`AB`' given input columns: [spark_catalog.default.************************************

the above exception is so decrypt. the above exception is correctly thrown, because the sql error is wrong, but to parse the above, the user needs to think a lot.

Dominant language
Python
Stars
1.7k
Forks
545
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dropbox/PyHive

All issues in dropbox/PyHive

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.