databricks-sql-nodejs
databricks-sql-nodejs copied to clipboard
missing errorCode and statusCode on errors
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
}