Closed mehulkasliwal closed 8 months ago
If you are running against your own cluster, please check dbr version >= 13.3
@yunbodeng-db I'm running it via SQL warehouse. Is it still applicable there?
If you are running against your own cluster, please check dbr version >= 13.3
I got a report internally too. I think it is the same issue. The endpoint is sql/protocolv1/o/123456789/xxxx-xxxxxx-xxxxxxby
. I did query info of this cluster and it's indeed 13.3.x-scala2.12.
I am checking with others to see why this would not work for you.
BTW, I ran the same code against our own staging environment and it worked. It is an AWS workspace though.
This issue is resolved - apparently the connection values were pointing to the cluster instead of warehouse.
@yunbodeng-db A follow up question - Is there a way to use the "IN" operator with parameterized queries? Something like "SELECT * FROM table WHERE Id IN :ids" where ids is an array of strings
Complex data types like array currently are not supported.
Version list
Golang - 1.21 github.com/databricks/databricks-sql-go - v1.5.3
Code
Secrets truncated. Example taken from https://github.com/databricks/databricks-sql-go/blob/main/examples/parameters/main.go
Error