From 6e3a1d4e99a113ebd435ccfd85a6e7e5f9ec0241 Mon Sep 17 00:00:00 2001 From: adevyatova Date: Thu, 13 May 2021 18:18:26 +0000 Subject: [PATCH] update --- .../functions/ext-dict-functions.md | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/docs/en/sql-reference/functions/ext-dict-functions.md b/docs/en/sql-reference/functions/ext-dict-functions.md index 2f270d49643..e46d6d1873a 100644 --- a/docs/en/sql-reference/functions/ext-dict-functions.md +++ b/docs/en/sql-reference/functions/ext-dict-functions.md @@ -17,6 +17,7 @@ Retrieves a value from an external dictionary. ``` sql dictGet('dict_name', 'attr_name', id_expr) dictGetOrDefault('dict_name', 'attr_name', id_expr, default_value_expr) +dictGetOrNull('dict_name', 'attr_name', id_expr) ``` **Arguments** @@ -34,6 +35,7 @@ dictGetOrDefault('dict_name', 'attr_name', id_expr, default_value_expr) - `dictGet` returns the content of the `` element specified for the attribute in the dictionary configuration. - `dictGetOrDefault` returns the value passed as the `default_value_expr` parameter. + - `dictGetOrNull` returns `NULL` in case key was not found in dictionary. ClickHouse throws an exception if it cannot parse the value of the attribute or the value doesn’t match the attribute data type. @@ -100,23 +102,6 @@ LIMIT 3 - [External Dictionaries](../../sql-reference/dictionaries/external-dictionaries/external-dicts.md) -## dictGetOrNull {#dictgetornull } - -Retrieves a value from an external dictionary. It works like `dictGet`, but return `NULL` in case key was not found in dictionary. - -``` sql -dictGetOrNull('dict_name', 'attr_name', id_expr) -``` - -**Arguments** - - - -**Returned value** - - -Type: - ## dictHas {#dicthas} Checks whether a key is present in a dictionary.