You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2022/03/04 13:03:00 UTC
[jira] [Resolved] (SPARK-38345) Introduce SQL function ARRAY_SIZE
[ https://issues.apache.org/jira/browse/SPARK-38345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-38345.
---------------------------------
Fix Version/s: 3.3.0
Resolution: Fixed
Issue resolved by pull request 35671
[https://github.com/apache/spark/pull/35671]
> Introduce SQL function ARRAY_SIZE
> ---------------------------------
>
> Key: SPARK-38345
> URL: https://issues.apache.org/jira/browse/SPARK-38345
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Affects Versions: 3.3.0
> Reporter: Xinrong Meng
> Assignee: Xinrong Meng
> Priority: Major
> Fix For: 3.3.0
>
>
> Counting elements within an array is a common use case. ARRAY_SIZE ensures the input to be an array and then returns the size.
> Other DBRMS like Snowflake supports that as well: https://docs.snowflake.com/en/sql-reference/functions/array_size.html. Implementing that improves compatibility with DBMS and makes migration easier.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org