You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by Guillaume Masse <ma...@narrative.io> on 2023/01/27 19:12:36 UTC

array literal in spark dialect

Array literals are unparsed incorrectly for the spark dialect.

They should be in the form: array(1, 2, 3)
However, they are unparsed as ARRAY[1, 2, 3]

https://spark.apache.org/docs/latest/api/sql/#array

I would be happy to submit a fix,
Guillaume

Re: array literal in spark dialect

Posted by Julian Hyde <jh...@apache.org>.
Thanks Guillaume. We'd love a fix. I saw you logged
https://issues.apache.org/jira/browse/CALCITE-5504 so let's continue
the conversation there.

On Fri, Jan 27, 2023 at 3:05 PM Guillaume Masse
<ma...@narrative.io> wrote:
>
> Array literals are unparsed incorrectly for the spark dialect.
>
> They should be in the form: array(1, 2, 3)
> However, they are unparsed as ARRAY[1, 2, 3]
>
> https://spark.apache.org/docs/latest/api/sql/#array
>
> I would be happy to submit a fix,
> Guillaume