Github user tejasapatil commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11891#discussion_r57240111
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/OrcQuerySuite.scala ---
    @@ -400,4 +400,33 @@ class OrcQuerySuite extends QueryTest with 
BeforeAndAfterAll with OrcTest {
           }
         }
       }
    +
    +  test("SPARK-14070 Use ORC data source for SQL queries on ORC tables") {
    +    withTempPath { dir =>
    +      withSQLConf(SQLConf.ORC_FILTER_PUSHDOWN_ENABLED.key -> "true") {
    +        val path = dir.getCanonicalPath
    +
    +        withTable("dummy_orc") {
    +          withTempTable("single") {
    +            sqlContext.sql(
    +              s"""CREATE TABLE dummy_orc(key INT, value STRING)
    +                  |STORED AS ORC
    +                  |LOCATION '$path'
    +               """.stripMargin)
    +
    +            val singleRowDF = Seq((0, "foo")).toDF("key", 
"value").coalesce(1)
    +            singleRowDF.registerTempTable("single")
    +
    +            sqlContext.sql(
    +              s"""INSERT INTO TABLE dummy_orc
    +                  |SELECT key, value FROM single
    +               """.stripMargin).collect()
    --- End diff --
    
    removed `collect()`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to