[ 
https://issues.apache.org/jira/browse/SPARK-50403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk updated SPARK-50403:
-----------------------------
    Description: 
When spark.sql() is invoked with parameters (named or positionals), and tries 
to execute a query via EXECUTE IMMEDIATE using parameters too, the call fails 
w/ on an assert:

{code:scala}
spark.sql("execute immediate ‘select ?' using 1", Map("param1" -> "1"))
{code}


  was:
When spark.sql() is invoked with parameters (named or positionals), and tries 
to execute a query via EXECUTE IMMEDIATE using parameters too, the call fails 
w/ on an assert:

{code:scala}

{code}



> Internal error from EXECUTE IMMEDIATE and spark.sql w/ parameters
> -----------------------------------------------------------------
>
>                 Key: SPARK-50403
>                 URL: https://issues.apache.org/jira/browse/SPARK-50403
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Max Gekk
>            Assignee: Max Gekk
>            Priority: Major
>
> When spark.sql() is invoked with parameters (named or positionals), and tries 
> to execute a query via EXECUTE IMMEDIATE using parameters too, the call fails 
> w/ on an assert:
> {code:scala}
> spark.sql("execute immediate ‘select ?' using 1", Map("param1" -> "1"))
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to