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

Benchao Li commented on CALCITE-6042:
-------------------------------------

[~taoran] According to the discussions in PR, it seems that this needs more 
discussion and reach an agreement, do you think we can get it in 1.36.0, if 
not, let's remove the fixVersion=1.36.0

> 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
>             Fix For: 1.36.0
>
>
> 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