[
https://issues.apache.org/jira/browse/SPARK-11352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15034419#comment-15034419
]
Yin Huai commented on SPARK-11352:
----------------------------------
{code}
Seq((1, "*/")).toDF("i", "j").registerTempTable("test")
sqlContext.sql("select * from test where j = '*/'").show
{code}
This one will fail.
> 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: [email protected]
For additional commands, e-mail: [email protected]