You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2023/09/18 17:15:00 UTC
[jira] [Assigned] (SPARK-45137) Unsupported map and array constructors by `sql()` in connect clients
[ https://issues.apache.org/jira/browse/SPARK-45137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk reassigned SPARK-45137:
--------------------------------
Assignee: Max Gekk
> Unsupported map and array constructors by `sql()` in connect clients
> --------------------------------------------------------------------
>
> Key: SPARK-45137
> URL: https://issues.apache.org/jira/browse/SPARK-45137
> Project: Spark
> Issue Type: Bug
> Components: Connect
> Affects Versions: 4.0.0
> Reporter: Max Gekk
> Assignee: Max Gekk
> Priority: Major
> Labels: pull-request-available
>
> The code below demonstrates the issue:
> {code:scala}
> spark.sql("select element_at(?, 1)", Array(array(lit(1)))).collect()
> {code}
> It fails with the error:
> {code:java}
> [info] java.lang.UnsupportedOperationException: literal unresolved_function {
> [info] function_name: "array"
> [info] arguments {
> [info] literal {
> [info] integer: 1
> [info] }
> [info] }
> [info] }
> [info] not supported (yet).
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org