drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Altekruse <altekruseja...@gmail.com>
Subject Re: FunctionConverter warnings
Date Wed, 29 Apr 2015 23:58:25 GMT
This is coming out of the functions added for 2173. I hadn't noticed these
warnings when I was working on it, I wonder if my system was always using
the JDK compiler for some reason when registering them. I have filed a JIRA
to update the functions so they will not produce these warnings.

https://issues.apache.org/jira/browse/DRILL-2913

On Wed, Apr 29, 2015 at 4:33 PM, Daniel Barclay <dbarclay@maprtech.com>
wrote:

> I wrote:
>
> > What _seems_ to be line 52 in the dumped Java doesn't seem to [be]
> > something that would cause an error like that.)
>
> ... except if the compiler doesn't understand generics:  line 52 is
> "Iterable<String> subPartitions;"
>
> Daniel
>
>
>
>
>
>
> Daniel Barclay wrote:
>
>> Is it normal to get warnings like the following?:
>>
>>
>> 16:00:18.672 [main] WARN  org.apache.drill.exec.expr.fn.FunctionConverter
>> - Failure while parsing function class:
>>
>> ...
>>
>>
>>
>> }
>>
>> org.codehaus.commons.compiler.CompileException: Line 52, Column 22:
>> Java$BinaryOperation is not allowed as an expression statement. Expressions
>> statements must be one of assignments, method invocations, or object
>> allocations.
>>      at
>> org.codehaus.janino.Java$Located.throwCompileException(Java.java:98)
>> ~[janino-2.6.1.jar:2.6.1]
>>
>>
>> (What _seems_ to be line 52 in the dumped Java doesn't seem to something
>> that
>> would cause an error like that.)
>>
>>
>> Daniel
>>
>
>
> --
> Daniel Barclay
> MapR Technologies
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message