You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2016/04/29 07:27:12 UTC
[jira] [Comment Edited] (SPARK-14962)
spark.sql.orc.filterPushdown=true breaks DataFrame where functionality
[ https://issues.apache.org/jira/browse/SPARK-14962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15263560#comment-15263560 ]
Hyukjin Kwon edited comment on SPARK-14962 at 4/29/16 5:27 AM:
---------------------------------------------------------------
~~FWIW, I could not reproduce this in master branch. Let me try to find the related JIRA.~~ I forgot to enable predicate pushdown. I can reproduce in the master. Let me look into this.
was (Author: hyukjin.kwon):
FWIW, I could not reproduce this in master branch. Let me try to find the related JIRA.
> spark.sql.orc.filterPushdown=true breaks DataFrame where functionality
> ----------------------------------------------------------------------
>
> Key: SPARK-14962
> URL: https://issues.apache.org/jira/browse/SPARK-14962
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.5.2
> Reporter: Justin Foster
>
> When running spark-shell with the configuration "spark.sql.orc.filterPushdown=true", the DataFrame function where and filter have an error. In particular, "column is not null" fails.
> Example Code:
> import sqlContext.implicits._
> case class MyData(string_field: String, array_field: Seq[String])
> val myDataArray = Array(
> MyData("foo", Seq("bar")),
> MyData("foobar", null)
> )
> val myDataDF = sc.parallelize(myDataArray).toDF
> myDataDF.count // 2
> myDataDF.where("array_field is null").count // 1
> myDataDF.where("array_field is not null").count // 1
> myDataDF.write.format("orc").save("/tmp/mydata.orc")
> val myLoadedDataDF = sqlContext.read.format("orc").load("/tmp/mydata.orc")
> myLoadedDataDF.count // 2
> myLoadedDataDF.where("array_field is not null").count // 0 incorrect
--
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