Github user dilipbiswal commented on the issue: https://github.com/apache/spark/pull/15190 @yhuai Hi Yin, create table ... as select ... would respect the setting of hive.default.fileformat. ``` SQL scala> spark.sql("SET hive.default.fileformat=parquet") res14: org.apache.spark.sql.DataFrame = [key: string, value: string] scala> spark.sql("CREATE TABLE tmp_default4 select * from tmp_default") res11: org.apache.spark.sql.DataFrame = [] scala> spark.sql("DESC FORMATTED tmp_default4").collect.foreach(println) ... [# Storage Information,,] [SerDe Library:,org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe,] [InputFormat:,org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat,] [OutputFormat:,org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat,] ... scala> spark.sql("SET hive.default.fileformat=orc") res14: org.apache.spark.sql.DataFrame = [key: string, value: string] scala> spark.sql("CREATE TABLE tmp_default5 select * from tmp_default") res15: org.apache.spark.sql.DataFrame = [] scala> spark.sql("DESC FORMATTED tmp_default5").collect.foreach(println) ... [# Storage Information,,] [SerDe Library:,org.apache.hadoop.hive.ql.io.orc.OrcSerde,] [InputFormat:,org.apache.hadoop.hive.ql.io.orc.OrcInputFormat,] [OutputFormat:,org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat,] ... ```
--- 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