You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2015/10/30 08:39:27 UTC

[jira] [Resolved] (SPARK-11417) @Override is not supported by older version of Janino

     [ https://issues.apache.org/jira/browse/SPARK-11417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davies Liu resolved SPARK-11417.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.2
                   1.6.0

Issue resolved by pull request 9372
[https://github.com/apache/spark/pull/9372]

> @Override is not supported by older version of Janino
> -----------------------------------------------------
>
>                 Key: SPARK-11417
>                 URL: https://issues.apache.org/jira/browse/SPARK-11417
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>            Reporter: Davies Liu
>            Assignee: Davies Liu
>             Fix For: 1.6.0, 1.5.2
>
>
> {code}
> java.util.concurrent.ExecutionException: java.lang.Exception: failed to compile: org.codehaus.commons.compiler.CompileException: Line 15, Column 9: Invalid character input "@" (character code 64)
> public SpecificOrdering generate(org.apache.spark.sql.catalyst.expressions.Expression[] expr) {
>   return new SpecificOrdering(expr);
> }
> class SpecificOrdering extends org.apache.spark.sql.catalyst.expressions.codegen.BaseOrdering {
>   
>   private org.apache.spark.sql.catalyst.expressions.Expression[] expressions;
>   
>   
>   
>   public SpecificOrdering(org.apache.spark.sql.catalyst.expressions.Expression[] expr) {
>     expressions = expr;
>     
>   }
>   
>   @Override
>   public int compare(InternalRow a, InternalRow b) {
>     InternalRow i = null;  // Holds current row being evaluated.
>     
>     i = a;
>     boolean isNullA2;
>     long primitiveA3;
>     {
>       /* input[2, LongType] */
>       
>       boolean isNull0 = i.isNullAt(2);
>       long primitive1 = isNull0 ? -1L : (i.getLong(2));
>       
>       isNullA2 = isNull0;
>       primitiveA3 = primitive1;
>     }
>     i = b;
>     boolean isNullB4;
>     long primitiveB5;
>     {
>       /* input[2, LongType] */
>       
>       boolean isNull0 = i.isNullAt(2);
>       long primitive1 = isNull0 ? -1L : (i.getLong(2));
>       
>       isNullB4 = isNull0;
>       primitiveB5 = primitive1;
>     }
>     if (isNullA2 && isNullB4) {
>       // Nothing
>     } else if (isNullA2) {
>       return 1;
>     } else if (isNullB4) {
>       return -1;
>     } else {
>       int comp = (primitiveA3 > primitiveB5 ? 1 : primitiveA3 < primitiveB5 ? -1 : 0);
>       if (comp != 0) {
>         return -comp;
>       }
>     }
>     
>     return 0;
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org