databricks-sql-go
databricks-sql-go copied to clipboard
Golang database/sql driver for Databricks SQL.
Upgrades related to issue https://github.com/databricks/databricks-sql-go/issues/256
Hi! I am using the databricks-sql-go library in my application and seeing this weird behaviour when querying decimal columns. I am using `CAST(... AS DECIMAL(5, 2))` to get my desired...
Found in 1.6.1 source: https://github.com/databricks/databricks-sql-go/blob/v1.6.1/parameters.go#L140-L145 when inferring the type of `int64` and `uint64`, it defaults to `SqlInteger` instead of `SqlBigInt` I get the following error: ``` [INVALID_PARAMETER_MARKER_VALUE.INVALID_VALUE_FOR_DATA_TYPE] An invalid parameter...
This PR fixes an issue where the driver discards the `context.Context` during polling, making it impossible to use authentication mechanisms (like Azure OBO) that rely on passing credentials via the...
## Summary Fixes type inference bugs for numeric parameters: - **int64/uint64**: Were incorrectly mapped to `SqlInteger` instead of `SqlBigInt` (fixes #250) - **float64**: Was incorrectly mapped to `SqlFloat` instead of...
### Changes : The changes in this PR : 1. Add config params for telemetry similar to oss jdbc 2. Add circuit breaker logic code (Note : this will be...
When passing float64 values as query parameters, they are incorrectly mapped to SqlFloat instead of SqlDouble, causing precision loss and overflow/underflow issues. https://github.com/databricks/databricks-sql-go/blob/main/parameters.go#L151
Adds token federation for databricks sql go driver
## Context Given an Databricks SQL Warehouse that is currently **stopped** and this code: ```go driverCntor, driverErr := dbsql.NewConnector(options...) if driverErr != nil { return driverErr } conn, connErr :=...
## Summary This PR implements **Task 1** of SEA (Statement Execution API) Phase 1: Add Configuration and Protocol Selection support for the Databricks SQL Go driver. This is a foundational...