mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
format override input-format
This commit is contained in:
parent
613c9fa3c2
commit
0c47dd4ec2
@ -337,8 +337,9 @@ std::string LocalServer::getInitialCreateTableQuery()
|
||||
format_from_file_name = FormatFactory::instance().getFormatFromFileName(file_name, false);
|
||||
}
|
||||
|
||||
auto data_format
|
||||
= backQuoteIfNeed(config().getString("table-data-format", format_from_file_name.empty() ? "TSV" : format_from_file_name));
|
||||
auto data_format = backQuoteIfNeed(
|
||||
config().getString("table-data-format", config().getString("format", format_from_file_name.empty() ? "TSV" : format_from_file_name)));
|
||||
|
||||
|
||||
if (table_structure == "auto")
|
||||
table_structure = "";
|
||||
|
Loading…
Reference in New Issue
Block a user