morningman commented on code in PR #16983: URL: https://github.com/apache/doris/pull/16983#discussion_r1121431421
########## docs/en/docs/lakehouse/file.md: ########## @@ -85,6 +85,57 @@ As can be seen, Doris is able to automatically infer column types based on the m Besides Parquet, Doris supports analysis and auto column type inference of ORC, CSV, and Json files. +**CSV Schema** + +<version since="dev"></version> + +在默认情况下,对 CSV 格式文件,所有列类型均为 String。可以通过 `csv_schema` 属性单独指定列名和列类型。Doris 会使用指定的列类型进行文件读取。格式如下: + +`name1:type1,name2:type2,...` + +对于格式不匹配的列(比如文件中为字符串,用户定义为 int),或缺失列(比如文件中有4列,用户定义了5列),则这些列将返回null。 + +当前支持的列类型为: + Review Comment: done -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org