spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-11417) @Override is not supported by older version of Janino
Date Fri, 30 Oct 2015 05:17:28 GMT

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

Apache Spark reassigned SPARK-11417:
------------------------------------

    Assignee: Apache Spark  (was: Davies Liu)

> @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: Apache Spark
>
> {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


Mime
View raw message