Github user dilipbiswal commented on the issue: https://github.com/apache/spark/pull/15190 @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 format. ``` 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 Storage(Location: file:/home/mygit/apache/spark/bin/spark-warehouse/tmp_default6, InputFormat: org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat, OutputFormat: org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat, Serde: org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe, 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 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