You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/08/13 16:20:45 UTC
[jira] [Commented] (SPARK-9938) Constant folding in
binaryComparison
[ https://issues.apache.org/jira/browse/SPARK-9938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14695285#comment-14695285 ]
Apache Spark commented on SPARK-9938:
-------------------------------------
User 'yjshen' has created a pull request for this issue:
https://github.com/apache/spark/pull/8165
> Constant folding in binaryComparison
> ------------------------------------
>
> Key: SPARK-9938
> URL: https://issues.apache.org/jira/browse/SPARK-9938
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Yijie Shen
>
> When we are comparing a int column with long literal, a < Int.MaxValue.toLong + 1L as a example, the analyzed plan would be LessThan(Cast(a, LongType), Literal).
> The result of predicate is determined and we could fold this at optimization phase.
--
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