databricks-sql-nodejs icon indicating copy to clipboard operation
databricks-sql-nodejs copied to clipboard

missing errorCode and statusCode on errors

Open oleg-mirzaev opened this issue 3 years ago • 0 comments

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
  }

oleg-mirzaev avatar Jul 25 '22 06:07 oleg-mirzaev