Skip to content

Set spark param ordinals with NamedValue ordinals#232

Closed
yomikaze wants to merge 1 commit intodatabricks:mainfrom
yomikaze:spark-params-ordinals
Closed

Set spark param ordinals with NamedValue ordinals#232
yomikaze wants to merge 1 commit intodatabricks:mainfrom
yomikaze:spark-params-ordinals

Conversation

@yomikaze
Copy link

@yomikaze yomikaze commented Jun 7, 2024

Querying with unnamed arguments raises this error:

ERR databricks: failed to run query error="[INVALID_PARAMETER_MARKER_VALUE.DUPLICATE_NAME] An invalid parameter mapping was provided: multiple parameter mappings were given with the name ''. SQLSTATE: 22023"

Unnamed arguments still have ordinal values, so this PR sets the driver.NamedValue ordinal value to the spark parameter.

@kravets-levko
Copy link
Contributor

Replaced with #247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments