Github user xwu0226 commented on a diff in the pull request:
https://github.com/apache/spark/pull/12716#discussion_r62270486
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/catalyst/LogicalPlanToSQLSuite.scala
---
@@ -741,4 +741,28 @@ class LogicalPlanToSQLSuite extends SQLBuilderTest
with SQLTestUtils {
test("filter after subquery") {
checkHiveQl("SELECT a FROM (SELECT key + 1 AS a FROM parquet_t1) t
WHERE a > 5")
}
+
+ test("SPARK-14933 - select parquet table") {
+ withTable("parquet_t") {
+ sql(
+ """
+ |create table parquet_t (c1 int, c2 string)
+ |stored as parquet select 1, 'abc'
+ """.stripMargin)
--- End diff --
@liancheng Sorry for the confusion. I clarified the PR description. These
cases are to verify the SQL generation from LogicalPlan related to parquet/orc
table. That is why I have hive syntax to create the parquet/orc tables. The
view creation failure was due to the failure of the SQL generation. Thanks!
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]