[ 
https://issues.apache.org/jira/browse/CALCITE-6042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779093#comment-17779093
 ] 

Ran Tao edited comment on CALCITE-6042 at 10/24/23 1:41 PM:
------------------------------------------------------------

yes, I have removed this.  thanks.


was (Author: lemonjing):
yes, I have removed this. 

> Add test cases for ARRAY-related functions by using spark array function
> ------------------------------------------------------------------------
>
>                 Key: CALCITE-6042
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6042
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: Ran Tao
>            Assignee: Ran Tao
>            Priority: Major
>              Labels: pull-request-available
>
> Currently, we support a serials of Spark ARRAY functions such as 
> ARRAY/ARRAY_DISTINCT/ARRAY_EXCEPT/ARRAY_POSITION/ARRAY_CONTAINS...
> however, the test cases of these functions use calcite array constructor such 
> as
> {code:java}
> array_except(array[2], array[2, 3]) {code}
> We don't have any testcase related to the Spark's array function, however 
> this is actually important. Because these array functions belong to Spark 
> library, and the Spark's array has some different behaviors with calcite's 
> array constructor.
>  # use array(expr, ...) rather than array[expr, ...]
>  # allows empty array such as array(); however calcite array constructor not 
> support it.
>  # spark array supports some special cases such as array(1, 'x') 
> we expect to add some test cases like:
> {code:java}
> array_except(array(2), array(2, 3))  
> array_except(array(2), array())  {code}
> Frankly speaking, if the user activates the spark library, it is more natural 
> for them to use the array() function rather than array[]. We should treat it 
> as 2 functions for testing and coverage.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to