You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2018/06/29 17:30:00 UTC
[jira] [Assigned] (SPARK-24696) ColumnPruning rule fails to remove
extra Project
[ https://issues.apache.org/jira/browse/SPARK-24696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li reassigned SPARK-24696:
-------------------------------
Assignee: Maryann Xue
> ColumnPruning rule fails to remove extra Project
> ------------------------------------------------
>
> Key: SPARK-24696
> URL: https://issues.apache.org/jira/browse/SPARK-24696
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.3.1
> Reporter: Xiao Li
> Assignee: Maryann Xue
> Priority: Major
>
> {code}
> test("optimization infinite loop") {
> withTempDir { dir =>
> val path = dir.getCanonicalPath
> import testImplicits._
> Seq((3, "a")).toDF("id", "value").write.format("parquet").mode("overwrite").save(path)
> import org.apache.spark.sql.functions.udf
> val filterIt = udf((value: Int) => value > 0).asNondeterministic
> spark.read.load(path)
> .where(filterIt('id))
> .where('id < 0)
> .select('id)
> .collect
> }
> }
> {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