You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Rui Wang (JIRA)" <ji...@apache.org> on 2019/04/23 15:18:00 UTC

[jira] [Comment Edited] (CALCITE-2889) IndexOutOfBoundsException in EnumUtils#fromInternal when handling methods with varargs

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

Rui Wang edited comment on CALCITE-2889 at 4/23/19 3:17 PM:
------------------------------------------------------------

[~zabetak]

Las time, I couldn't add tests to UdfTest (something did not work for me). 

I could address your two comments today but I am afraid that I don't have bandwidth to figure out and fix UdfTest. 


was (Author: amaliujia):
[~zabetak]

Las time, I couldn't add tests to UdfTest (something does not work for me). 

I could address your two comments today but I am afraid that I don't have bandwidth to figure out and fix UdfTest. 

> IndexOutOfBoundsException in EnumUtils#fromInternal when handling methods with varargs
> --------------------------------------------------------------------------------------
>
>                 Key: CALCITE-2889
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2889
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Rui Wang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.20.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/adapter/enumerable/EnumUtils.java#L210
> If "targetTypes" is from "method.getParameterTypes()" and if method's signature is "func(stirng ... args)", then "targetTypes" will contain one type "String[].class", but "expressions" could contain one than one element, so it throws IndexOutOfBoundsException.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)