Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45137

Unsupported map and array constructors by `sql()` in connect clients

    XMLWordPrintableJSON

Details

    Description

      The code below demonstrates the issue:

      spark.sql("select element_at(?, 1)", Array(array(lit(1)))).collect()
      

      It fails with the error:

      [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).
      

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: