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

Alexander Staubo commented on CALCITE-4417:
-------------------------------------------

Same result with 1.25.0. As for using a function like upper(), that throws:
{code:java}
Translation of UPPER(ITEM($0, 'department._ref')) is not supported by 
ElasticsearchProject
{code}

> "Two non-abstract methods ... have the same parameter types"
> ------------------------------------------------------------
>
>                 Key: CALCITE-4417
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4417
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.26.0
>         Environment: {code:java}
> $ java -version
> openjdk version "11.0.9" 2020-10-20
> OpenJDK Runtime Environment (build 11.0.9+11)
> OpenJDK 64-Bit Server VM (build 11.0.9+11, mixed mode)
> $ git rev-parse HEAD
> cfa37c3fd6ae18894035721d9f1eacde40e6b268
> {code}
>            Reporter: Alexander Staubo
>            Priority: Major
>         Attachments: build.out, error.out
>
>
> I'm trying out the Elasticsearch adapter. My query:
> {code:java}
> select p._MAP['id'] as id, d._MAP['id'] as dept
> from "test_person" p
> join "test_department" d on d._MAP['id'] = p._MAP['department._ref']
> where p._MAP['department._ref'] is not null
> limit 1;
> {code}
> This fails with:
> {code:java}
> Error while compiling generated Java code: [...]
> Caused by: org.codehaus.janino.InternalCompilerException: Compiling "Baz": 
> Two non-abstract methods "public int Baz$4.compare(java.lang.Object, 
> java.lang.Object)" have the same parameter types, declaring type and return 
> type
> {code}
> Full debug output: [^error.out]



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

Reply via email to