Max Gekk created SPARK-45137:
--------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]