You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Rares Mirica (JIRA)" <ji...@apache.org> on 2015/12/01 11:32:10 UTC

[jira] [Commented] (SPARK-11352) codegen.GeneratePredicate fails due to unquoted comment

    [ https://issues.apache.org/jira/browse/SPARK-11352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15033480#comment-15033480 ] 

Rares Mirica commented on SPARK-11352:
--------------------------------------

Hi, I am sorry, am no longer able to find the original problem. is it possible to simply parse the strings at the point where the comment is added (though I don't see why you would even leave a comment there in the generated production code) and strip any problematic character?

> codegen.GeneratePredicate fails due to unquoted comment
> -------------------------------------------------------
>
>                 Key: SPARK-11352
>                 URL: https://issues.apache.org/jira/browse/SPARK-11352
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.1
>            Reporter: Rares Mirica
>
> Somehow the code being generated ends up having comments with comment-terminators unquoted, eg.:
> /* ((input[35, StringType] <= text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8) && (text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 <= input[36, StringType])) */
> with emphasis on ... =0.9,*/...
> This leads to a org.codehaus.commons.compiler.CompileException



--
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