[
https://issues.apache.org/jira/browse/SPARK-20556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15993464#comment-15993464
]
Herman van Hovell edited comment on SPARK-20556 at 5/2/17 6:34 PM:
-------------------------------------------------------------------
[~vlyubin] This was fixed in SPARK-18952. This should be part of the coming
2.1.1 release.
was (Author: hvanhovell):
[~vlyubin] This was fixed in SPARK-18952, lets just back port that change to
2.1.
> codehaus fails to generate code because of unescaped strings
> ------------------------------------------------------------
>
> Key: SPARK-20556
> URL: https://issues.apache.org/jira/browse/SPARK-20556
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Volodymyr Lyubinets
> Fix For: 2.2.0
>
>
> I guess somewhere along the way Spark uses codehaus to generate optimized
> code, but if it fails to do so, it falls back to an alternative way. Here's a
> log string that I see when executing one command on dataframes:
> 17/05/02 12:00:14 ERROR CodeGenerator: failed to compile:
> org.codehaus.commons.compiler.CompileException: File 'generated.java', Line
> 93, Column 13: ')' expected instead of 'type'
> ...
> /* 088 */ private double loadFactor = 0.5;
> /* 089 */ private int numBuckets = (int) (capacity / loadFactor);
> /* 090 */ private int maxSteps = 2;
> /* 091 */ private int numRows = 0;
> /* 092 */ private org.apache.spark.sql.types.StructType keySchema = new
> org.apache.spark.sql.types.StructType().add("taxonomyPayload",
> org.apache.spark.sql.types.DataTypes.StringType)
> /* 093 */ .add("{"type":"nontemporal"}",
> org.apache.spark.sql.types.DataTypes.StringType)
> /* 094 */ .add("spatialPayload",
> org.apache.spark.sql.types.DataTypes.StringType);
> /* 095 */ private org.apache.spark.sql.types.StructType valueSchema = new
> org.apache.spark.sql.types.StructType().add("sum",
> org.apache.spark.sql.types.DataTypes.DoubleType);
> /* 096 */ private Object emptyVBase;
> /* 097 */ private long emptyVOff;
> /* 098 */ private int emptyVLen;
> /* 099 */ private boolean isBatchFull = false;
> /* 100 */
> It looks like on line 93 it failed to escape that string (that happened to be
> in my code). I'm not sure how critical this is, but seems like there's
> escaping missing somewhere.
> Stack trace that happens afterwards: https://pastebin.com/NmgTfwN0
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]