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/02/27 05:10:00 UTC

[jira] [Created] (SPARK-23523) Incorrect result caused by the rule OptimizeMetadataOnlyQuery

Xiao Li created SPARK-23523:
-------------------------------

             Summary: Incorrect result caused by the rule OptimizeMetadataOnlyQuery
                 Key: SPARK-23523
                 URL: https://issues.apache.org/jira/browse/SPARK-23523
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.2.1, 2.3.0
            Reporter: Xiao Li
            Assignee: Xiao Li


{format}
val tablePath = new File(s"${path.getCanonicalPath}/cOl3=c/cOl1=a/cOl5=e")
Seq(("a", "b", "c", "d", "e")).toDF("cOl1", "cOl2", "cOl3", "cOl4", "cOl5")
  .write.json(tablePath.getCanonicalPath)
val df = spark.read.json(path.getCanonicalPath).select("CoL1", "CoL5", "CoL3").distinct()
df.show()
{format}



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