Escape and subtitute query arguments client side#100
Conversation
This commit ports approximately what the Python Databricks library does in order to handle query arguments.
andrefurlan-db
left a comment
There was a problem hiding this comment.
we explicitly did not add support for this. The feature is under development in spark and databricks. We'll add support for the driver once the backend is ready.
|
I did a bit of digging and it seems the parametrized query feature has been released in Spark 3.4.0 (merged since December 2022). However, it is not exposed in the thrift server which is used by databricks-sql-go to connect to Spark. To me it looks like the feature is ready but not exposed to external clients. |
|
Hi @nohajc! The library got a support for named query parameters since v1.5.0. Can you please try it and let us know if it works for you? Thanks! |

Coming from other Go database drivers the lack of query argument support was a surprise. This commit ports approximately what the Python Databricks library does in order to handle query arguments.
Feedback, suggestions, etc welcome!