Github user dilipbiswal commented on the issue:
    @gatorsmile Thanks.. didn't realize we wanted to find out the CTAS 
behaviour. Here is the result..
    When covertCTAS is set to true, we create a data source table with parquet 
    ``` SQL
    scala> spark.sql("SET spark.sql.hive.convertCTAS=true")
    res23: org.apache.spark.sql.DataFrame = [key: string, value: string]
    scala> spark.sql("CREATE TABLE tmp_default6 as select * from tmp_default")
    res24: org.apache.spark.sql.DataFrame = []
    scala> spark.sql("DESC extended tmp_default6").collect.foreach(println)
    [# Detailed Table Information,CatalogTable(
        Provider: parquet
file:/home/mygit/apache/spark/bin/spark-warehouse/tmp_default6, InputFormat:, OutputFormat:, Serde:, Properties: 
[path=file:/user/hive/warehouse/tmp_default6, serialization.format=1])),]

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to