Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/1846#discussion_r17399457
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
---
@@ -47,4 +47,16 @@ class SQLQuerySuite extends QueryTest {
GROUP BY key, value
ORDER BY value) a""").collect().toSeq)
}
+
+ test("test CTAS") {
+ sql("CREATE TABLE test_ctas_123 AS SELECT key, value FROM src").schema
--- End diff --
Oh, I understood. But I'd like to make that as 2 independent PRs:
* Revert the `SchemaRDDLike.scala` and `SQLQuerySuite.scala`, and only keep
the logic of table creation move from `HiveMetastoreCatalog.scala` to the
physical operator `CreateTableAsSelect.scala`
* Update the #1847 for supporting the `EXPLAIN` for `command` (e.g. `ctas`,
`InsertIntoTable`, `WriteToFile` etc.)
What do you think about this?
---
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]