You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "huangxiaopingRD (via GitHub)" <gi...@apache.org> on 2023/03/30 09:49:58 UTC

[GitHub] [spark] huangxiaopingRD commented on a diff in pull request #40232: [SPARK-42629][DOCS] Update the description of default data source in the document

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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org