mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Support of Nullable types in MySQL function
Add setting 'external_tables_use_nulls'
This commit is contained in:
parent
98b70f524c
commit
cde57600d9
@ -300,6 +300,7 @@ struct Settings
|
||||
M(SettingBool, allow_experimental_multiple_joins_emulation, false, "Emulate multiple joins using subselects") \
|
||||
M(SettingBool, allow_experimental_cross_to_join_conversion, false, "Convert CROSS JOIN to INNER JOIN if possible") \
|
||||
M(SettingBool, cancel_http_readonly_queries_on_client_close, false, "Cancel HTTP readonly queries when a client closes the connection without waiting for response.") \
|
||||
M(SettingBool, external_tables_use_nulls, true, "If it is set to true, external tables will implicitly use Nullable type if needed.") \
|
||||
|
||||
#define DECLARE(TYPE, NAME, DEFAULT, DESCRIPTION) \
|
||||
TYPE NAME {DEFAULT};
|
||||
|
@ -158,7 +158,8 @@ StoragePtr TableFunctionMySQL::executeImpl(const ASTPtr & ast_function, const Co
|
||||
(*block.getByPosition(0).column)[i].safeGet<String>(),
|
||||
getDataType(
|
||||
(*block.getByPosition(1).column)[i].safeGet<String>(),
|
||||
(*block.getByPosition(2).column)[i].safeGet<UInt64>(),
|
||||
(*block.getByPosition(2).column)[i].safeGet<UInt64>()
|
||||
&& context.getSettings().external_tables_use_nulls,
|
||||
(*block.getByPosition(3).column)[i].safeGet<UInt64>(),
|
||||
(*block.getByPosition(4).column)[i].safeGet<UInt64>()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user