SaurabhChawla100 commented on a change in pull request #29045:
URL: https://github.com/apache/spark/pull/29045#discussion_r453437981



##########
File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/orc/HiveOrcQuerySuite.scala
##########
@@ -288,4 +288,56 @@ class HiveOrcQuerySuite extends OrcQueryTest with 
TestHiveSingleton {
       }
     }
   }
+
+  test("SPARK-32234: orc data created by the hive tables having _col fields" +
+    " name for vectorized reader") {
+    Seq(false, true).foreach { vectorized =>
+      withSQLConf(SQLConf.ORC_VECTORIZED_READER_ENABLED.key -> 
vectorized.toString) {
+        withTable("test_hive_orc_vect_read") {
+          spark.sql(
+            """
+              | CREATE TABLE test_hive_orc_vect_read
+              | (_col1 INT, _col2 STRING, _col3 INT)
+              | USING orc
+            """.stripMargin)
+          spark.sql(
+            """
+              | INSERT INTO
+              | test_hive_orc_vect_read
+              | VALUES(9, '12', 2020)
+            """.stripMargin)
+
+          val df = spark.sql("SELECT _col2 FROM test_hive_orc_vect_read")
+          checkAnswer(df, Row("12"))
+        }
+      }
+    }
+  }
+
+  test("SPARK-32234: orc data created by the hive tables having _col fields 
name" +

Review comment:
       Merged the test




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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

Reply via email to