spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dilip Biswal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-25307) ArraySort function may return a error in the code generation phase.
Date Sun, 02 Sep 2018 04:03:00 GMT
Dilip Biswal created SPARK-25307:
------------------------------------

             Summary: ArraySort function may return a error in the code generation phase.
                 Key: SPARK-25307
                 URL: https://issues.apache.org/jira/browse/SPARK-25307
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.3.1
            Reporter: Dilip Biswal


Sorting array of booleans (not nullable) returns a compilation error in the code generation
phase. Below is the compilation error :
{code:java}
java.util.concurrent.ExecutionException: org.codehaus.commons.compiler.CompileException: File
'generated.java', Line 51, Column 23: failed to compile: org.codehaus.commons.compiler.CompileException:
File 'generated.java', Line 51, Column 23: No applicable constructor/method found for actual
parameters "boolean[]"; candidates are: "public static void java.util.Arrays.sort(long[])",
"public static void java.util.Arrays.sort(long[], int, int)", "public static void java.util.Arrays.sort(byte[],
int, int)", "public static void java.util.Arrays.sort(float[])", "public static void java.util.Arrays.sort(float[],
int, int)", "public static void java.util.Arrays.sort(char[])", "public static void java.util.Arrays.sort(char[],
int, int)", "public static void java.util.Arrays.sort(short[], int, int)", "public static
void java.util.Arrays.sort(short[])", "public static void java.util.Arrays.sort(byte[])",
"public static void java.util.Arrays.sort(java.lang.Object[], int, int, java.util.Comparator)",
"public static void java.util.Arrays.sort(java.lang.Object[], java.util.Comparator)", "public
static void java.util.Arrays.sort(int[])", "public static void java.util.Arrays.sort(java.lang.Object[],
int, int)", "public static void java.util.Arrays.sort(java.lang.Object[])", "public static
void java.util.Arrays.sort(double[])", "public static void java.util.Arrays.sort(double[],
int, int)", "public static void java.util.Arrays.sort(int[], int, int)"
	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:306)
	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:293)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2410)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2380)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
	at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
	at org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$.compile(CodeGenerator.scala:1305)

 {code}



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

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


Mime
View raw message