databricks / databricks-sql-go

Golang database/sql driver for Databricks SQL.
Apache License 2.0
37 stars 41 forks source link

Implementing error types #116

Closed mattdeekay closed 1 year ago

mattdeekay commented 1 year ago

Issue

68

This is a rebased and cleaned-up version of https://github.com/databricks/databricks-sql-go/pull/93

Plan

The following DBSQL error categories will be exposed to clients: RequestError ExecutionError SystemFault

The standard Databricks error expose fields err, corrId, connId. ExecutionError will also expose sqlState, queryId, and errClass. SystemFault will also expose isRetryable.

Remaining work