missing errorCode and statusCode on errors

Open
#33 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
api, backend

Research direction

The issue does not name files, tests, or entry points. Reproduce the shown Spark SQL parse error through the Node.js connector, then trace how the response object's statusCode and errorCode are handled; done means those fields are exposed on the resulting error rather than only its message.

Written by the indexing model from the issue text.

Description

Component: Error Handling enhancement

Hi,

in case of error there is no indication in errorCode and statusCode (or maybe also other fields), only the message

response: {
    status: {
      statusCode: 0,
      infoMessages: null,
      sqlState: null,
      errorCode: null,
      errorMessage: null
    },
    operationState: 5,
    sqlState: null,
    errorCode: 0,
    errorMessage: 'org.apache.hive.service.cli.HiveSQLException: Error running query: org.apache.spark.sql.catalyst.parser.ParseException: \n' +
      'DataType string(35) is not supported.(line 6, pos 28)\n' +
	  ...
	  ...
    taskStatus: null,
    operationStarted: null,
    operationCompleted: null,
    hasResultSet: null,
    progressUpdateResponse: null,
    numModifiedRows: null
  }
Dominant language
TypeScript
Stars
36
Forks
50
Avg merge
1d 6h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

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 databricks/databricks-sql-nodejs

All issues in databricks/databricks-sql-nodejs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.