huangxiaopingRD commented on code in PR #40232: URL: https://github.com/apache/spark/pull/40232#discussion_r1153014538
########## docs/sql-ref-syntax-ddl-create-table-datasource.md: ########## @@ -118,7 +118,7 @@ CREATE TABLE student (id INT, name STRING, age INT) USING CSV; CREATE TABLE student_copy USING CSV AS SELECT * FROM student; ---Omit the USING clause, which uses the default data source (parquet by default) +--Omit the USING clause, which uses the default data source (textfile by default) Review Comment: The hive table format depends on the conf hive.default.fileformat when set spark.sql.legacy.createHiveTableByDefault is true . And if spark.sql.legacy.createHiveTableByDefault is false, it hive table format depends on the conf spark.sql.sources.default . Now spark.sql.legacy.createHiveTableByDefault is true, and the table created by default is textfile. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org