[jira] [Commented] (SPARK-29737) Concat for array in Spark SQL is not the one in PostgreSQL but array_cat

2019-12-01 Thread Xiao Li (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-29737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16985714#comment-16985714
 ] 

Xiao Li commented on SPARK-29737:
-

We do not need to change the Spark behavior, although it is different from pgSQL

> Concat for array in Spark SQL is not the one in PostgreSQL but array_cat
> 
>
> Key: SPARK-29737
> URL: https://issues.apache.org/jira/browse/SPARK-29737
> Project: Spark
>  Issue Type: Sub-task
>  Components: SQL
>Affects Versions: 3.0.0
>Reporter: Kent Yao
>Priority: Major
>
> {code:sql}
> postgres=# select array_cat(array[1,2], array[2]);
>  array_cat
> ---
>  {1,2,2}
> (1 row)
> postgres=# select concat(array[1,2], array[2]);
>   concat
> --
>  {1,2}{2}
> (1 row)
> {code}
> {code:sql}
> // Some comments here
> spark-sql> select concat(array(1,2), array(2));
> [1,2,2]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-29737) Concat for array in Spark SQL is not the one in PostgreSQL but array_cat

2019-11-03 Thread Aman Omer (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-29737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16966396#comment-16966396
 ] 

Aman Omer commented on SPARK-29737:
---

Thanks [~Qin Yao] . I will soon raise a PR for this.

> Concat for array in Spark SQL is not the one in PostgreSQL but array_cat
> 
>
> Key: SPARK-29737
> URL: https://issues.apache.org/jira/browse/SPARK-29737
> Project: Spark
>  Issue Type: Sub-task
>  Components: SQL
>Affects Versions: 3.0.0
>Reporter: Kent Yao
>Priority: Major
>
> {code:sql}
> postgres=# select array_cat(array[1,2], array[2]);
>  array_cat
> ---
>  {1,2,2}
> (1 row)
> postgres=# select concat(array[1,2], array[2]);
>   concat
> --
>  {1,2}{2}
> (1 row)
> {code}
> {code:sql}
> // Some comments here
> spark-sql> select concat(array(1,2), array(2));
> [1,2,2]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org