mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-13 12:00:51 +00:00
abae86f7a6
* Doc fix: add spaces where missing
* Doc fixes: rm double spaces
* Doc fixes: edit spaces
* Doc fixes: rm double spaces in /fa
* Revert "Doc fixes: rm double spaces in /fa"
This reverts commit bb879a62ef
.
* Doc fix: resolve all problems with double spaces in /fa
* Doc fix: add spaces for readability
* Doc fix: add spaces
* Fix spaces
1.6 KiB
1.6 KiB
Functions for working with external dictionaries
For information on connecting and configuring external dictionaries, see "External dictionaries".
dictGetUInt8, dictGetUInt16, dictGetUInt32, dictGetUInt64
dictGetInt8, dictGetInt16, dictGetInt32, dictGetInt64
dictGetFloat32, dictGetFloat64
dictGetDate, dictGetDateTime
dictGetUUID
dictGetString
dictGetT('dict_name', 'attr_name', id)
- Get the value of the attr_name attribute from the dict_name dictionary using the 'id' key.
dict_name
andattr_name
are constant strings.id
must be UInt64. If there is noid
key in the dictionary, it returns the default value specified in the dictionary description.
dictGetTOrDefault
dictGetT('dict_name', 'attr_name', id, default)
The same as the dictGetT
functions, but the default value is taken from the function's last argument.
dictIsIn
dictIsIn ('dict_name', child_id, ancestor_id)
- For the 'dict_name' hierarchical dictionary, finds out whether the 'child_id' key is located inside 'ancestor_id' (or matches 'ancestor_id'). Returns UInt8.
dictGetHierarchy
dictGetHierarchy('dict_name', id)
- For the 'dict_name' hierarchical dictionary, returns an array of dictionary keys starting from 'id' and continuing along the chain of parent elements. Returns Array(UInt64).
dictHas
dictHas('dict_name', id)
- Check whether the dictionary has the key. Returns a UInt8 value equal to 0 if there is no key and 1 if there is a key.