id
stringlengths
36
36
document
stringlengths
3
3k
metadata
stringlengths
23
69
embeddings
listlengths
384
384
bcee3442-d2e2-45db-97f3-bedd1cb6897a
ngramSearchCaseInsensitive {#ngramSearchCaseInsensitive} Introduced in: v20.1 Provides a case-insensitive variant of ngramSearch . Calculates the non-symmetric difference between a needle string and a haystack string, i.e. the number of n-grams from the needle minus the common number of n-grams normalized by the n...
{"source_file": "string-search-functions.md"}
[ -0.032388895750045776, -0.025072505697607994, 0.028726322576403618, 0.004368110094219446, -0.07754485309123993, -0.024964313954114914, 0.004023048561066389, 0.06142609566450119, -0.07750306278467178, -0.0029126496519893408, 0.007224611937999725, -0.040954649448394775, 0.04648781940340996, ...
c1aa02bd-c63a-4f63-bcb6-922eb611d6ba
notILike {#notILike} Introduced in: v20.6 Checks whether a string does not match a pattern, case-insensitive. The pattern can contain special characters % and _ for SQL LIKE matching. Syntax sql notILike(haystack, pattern) Arguments haystack — The input string to search in. String or FixedString ...
{"source_file": "string-search-functions.md"}
[ -0.017580213025212288, 0.00933905877172947, 0.0598612055182457, 0.034558407962322235, -0.0598350390791893, -0.0640023946762085, 0.07483924180269241, -0.012479312717914581, -0.03148876875638962, -0.0466763935983181, 0.06684104353189468, -0.06496546417474747, 0.12420055270195007, -0.07100604...
316a8311-5001-4b98-b8b2-be8c2e9662fb
With start_pos argument sql title=Query SELECT position('Hello, world!', 'o', 1), position('Hello, world!', 'o', 7) response title=Response ┌─position('Hello, world!', 'o', 1)─┬─position('Hello, world!', 'o', 7)─┐ │ 5 │ 9 │ └───────────────────────────...
{"source_file": "string-search-functions.md"}
[ -0.02283327281475067, -0.013844636268913746, 0.024571115151047707, -0.0044083427637815475, -0.11373984813690186, -0.04385211691260338, 0.06493784487247467, 0.013386853970587254, -0.017387714236974716, 0.008177784271538258, 0.027795715257525444, 0.0008810725994408131, 0.07350455224514008, -...
622b0c09-f3f9-401e-a83a-6a1afa0ac61e
Examples Case insensitive UTF-8 search sql title=Query SELECT positionCaseInsensitiveUTF8('Привет мир', 'МИР') response title=Response ┌─positionCaseInsensitiveUTF8('Привет мир', 'МИР')─┐ │ 8 │ └──────────────────────────────────────────────────┘ positionUTF8 {#pos...
{"source_file": "string-search-functions.md"}
[ -0.006609524134546518, -0.034582480788230896, -0.003401742083951831, -0.009688964113593102, -0.08945927768945694, 0.0100918123498559, 0.0871858149766922, 0.06387101113796234, -0.00013331753143575042, -0.026492057368159294, 0.06582420319318771, 0.005745091009885073, 0.1151851937174797, -0.0...
fb83ce2b-3122-4627-8a25-2bb92e8ec7ff
description: 'Documentation for Hash Functions' sidebar_label: 'Hash' slug: /sql-reference/functions/hash-functions title: 'Hash Functions' doc_type: 'reference' Hash functions Hash functions can be used for the deterministic pseudo-random shuffling of elements. Simhash is a hash function, which returns close h...
{"source_file": "hash-functions.md"}
[ 0.043515998870134354, 0.024205563589930534, -0.04681231454014778, -0.03962334245443344, -0.007591495756059885, -0.03717951104044914, 0.059119731187820435, -0.0664868950843811, -0.009637911804020405, 0.02762508951127529, 0.03648136183619499, 0.010538367554545403, 0.05939088761806488, -0.122...
65dbba4a-fcec-49b5-a92f-5b6660dbe5e4
Introduced in: v24.10 Calculates the RIPEMD-160 hash of the given string. Syntax sql RIPEMD160(s) Arguments s — The input string to hash. String Returned value Returns the RIPEMD160 hash of the given input string as a fixed-length string. FixedString(20) Examples Usage example sql title=Query...
{"source_file": "hash-functions.md"}
[ 0.053569450974464417, 0.01846068724989891, -0.01790683902800083, -0.04489484056830406, -0.07979477941989899, -0.005560760386288166, 0.026694869622588158, 0.04494870454072952, 0.00431001465767622, 0.004552649799734354, 0.02967635542154312, 0.03650497645139694, 0.09451233595609665, -0.081537...
87017687-737f-4302-b7a9-6646005ccb9a
SHA512 {#SHA512} Introduced in: v1.1 Calculates the SHA512 hash of the given string. Syntax sql SHA512(s) Arguments s — The input string to hash String Returned value Returns the SHA512 hash of the given input string as a fixed-length string. FixedString(64) Examples Usage example sql title...
{"source_file": "hash-functions.md"}
[ 0.06639539450407028, 0.030533242970705032, -0.05296821519732475, -0.03956868499517441, -0.0850159302353859, 0.011607340537011623, 0.02955964021384716, 0.0223850030452013, -0.02626911923289299, -0.022072026506066322, 0.015890415757894516, 0.02743382193148136, 0.1206124871969223, -0.11242278...
82c5eceb-8a72-4f00-89f9-b7582b719cdf
response title=Response ┌─URLHash('htt⋯house.com')─┐ │ 13614512636072854701 │ └──────────────────────────┘ Hash of url with specified level sql title=Query SELECT URLHash('https://www.clickhouse.com/docs', 0); SELECT URLHash('https://www.clickhouse.com/docs', 1); response title=Response -- hash of https://www...
{"source_file": "hash-functions.md"}
[ 0.019058046862483025, 0.05752203240990639, 0.025785451754927635, -0.02471388503909111, -0.04054120182991028, -0.10095079988241196, -0.017387617379426956, -0.08458739519119263, 0.05244608223438263, 0.013390268199145794, 0.012332496233284473, -0.03162837773561478, 0.03567422181367874, -0.058...
2c4c8d1f-54cc-4e32-99db-405a2bd8d96a
Introduced in: v20.12 Produces a 64-bit FarmHash value using the Fingerprint64 method. :::tip farmFingerprint64 is preferred for a stable and portable value over farmHash64 . ::: :::note The calculated hash values may be equal for the same input values of different argument types. This affects for example ...
{"source_file": "hash-functions.md"}
[ 0.021871019154787064, 0.05314036086201668, -0.074677973985672, -0.04131321609020233, -0.025051061064004898, -0.04028605297207832, 0.010501982644200325, -0.019473839551210403, -0.041163623332977295, 0.010402857325971127, 0.033178411424160004, 0.043840330094099045, 0.030821532011032104, -0.0...
afeccb50-5822-48fc-871d-01dabfe52740
halfMD5 {#halfMD5} Introduced in: v1.1 Interprets all the input parameters as strings and calculates the MD5 hash value for each of them. Then combines hashes, takes the first 8 bytes of the hash of the resulting string, and interprets them as UInt64 in big-endian byte order. The function is relatively slow (5 m...
{"source_file": "hash-functions.md"}
[ 0.03709688410162926, -0.007183631416410208, 0.04413118585944176, -0.07108338922262192, -0.021907219663262367, -0.12081685662269592, -0.02504371851682663, 0.016077138483524323, -0.08006413280963898, 0.055938608944416046, -0.07685846090316772, 0.03206987679004669, 0.023516211658716202, -0.05...
ff62a13b-5c41-47c9-ab16-64adc643b81e
Syntax sql intHash64(int) Arguments int — Integer to hash. (U)Int* Returned value 64-bit hash code. UInt64 Examples Usage example sql title=Query SELECT intHash64(42); response title=Response ┌────────intHash64(42)─┐ │ 11490350930367293593 │ └──────────────────────┘ javaHash {#javaHash} Int...
{"source_file": "hash-functions.md"}
[ 0.05947931110858917, 0.05646967515349388, -0.03872627392411232, -0.0361366830766201, -0.11253703385591507, -0.024679649621248245, 0.0645425021648407, 0.05956360697746277, -0.04699624702334404, 0.011707966215908527, -0.0870198979973793, -0.020268019288778305, 0.06478078663349152, -0.0498244...
9a6e8c6d-163e-4bfe-ae95-9f1e8db0216b
Returned value Returns the calculated hash value of the input arguments. UInt32 Examples Usage example sql title=Query SELECT kafkaMurmurHash('foobar') AS res1, kafkaMurmurHash(array('e','x','a'), 'mple', 10, toDateTime('2019-06-15 23:00:00')) AS res2 response title=Response ┌───────res1─┬─────res2─┐...
{"source_file": "hash-functions.md"}
[ 0.0006645437097176909, 0.053550928831100464, -0.08654162287712097, -0.03266502544283867, -0.1064816489815712, -0.007926464080810547, 0.03701530024409294, 0.0262469295412302, 0.06839824467897415, 0.0011074419599026442, -0.032769400626420975, -0.0440128892660141, 0.01468364056199789, -0.1036...
aaf3d331-764a-4fd9-9156-19b6acb959ad
murmurHash2_32 {#murmurHash2_32} Introduced in: v18.5 Computes the MurmurHash2 hash of the input value. :::note The calculated hash values may be equal for the same input values of different argument types. This affects for example integer types of different size, named and unnamed Tuple with the same data, ...
{"source_file": "hash-functions.md"}
[ 0.008429045788943768, -0.03732210397720337, 0.0062540373764932156, -0.03612574189901352, -0.11706149578094482, -0.0412805937230587, 0.03219054266810417, -0.06163341552019119, 0.048254918307065964, -0.03330809250473976, -0.038512375205755234, -0.01124432124197483, 0.03194602206349373, -0.05...
01054245-bddf-46b8-9643-2f29200a2c0b
Syntax sql murmurHash3_32(arg1[, arg2, ...]) Arguments arg1[, arg2, ...] — A variable number of input arguments for which to compute the hash. Any Returned value Returns the computed hash value of the input arguments. UInt32 Examples Usage example sql title=Query SELECT murmurHash3_32(array('e','...
{"source_file": "hash-functions.md"}
[ 0.005757139064371586, -0.027769457548856735, -0.014396026730537415, -0.03870686888694763, -0.0952632948756218, -0.030633797869086266, 0.06656457483768463, -0.06649962067604065, 0.048964083194732666, -0.019641490653157234, -0.057377882301807404, 0.0007751848897896707, 0.030696427449584007, ...
ecbd730b-293b-4186-8e34-5c64f8a0687e
ngramMinHashArg {#ngramMinHashArg} Introduced in: v21.1 Splits a ASCII string into n-grams of ngramsize symbols and returns the n-grams with minimum and maximum hashes, calculated by the ngramMinHash function with the same input. It is case sensitive. Syntax sql ngramMinHashArg(string[, ngramsize, hashnum])...
{"source_file": "hash-functions.md"}
[ -0.010884849354624748, -0.02220364287495613, -0.028111577033996582, -0.04166952520608902, -0.07390781491994858, 0.018089409917593002, 0.06489989161491394, 0.07200363278388977, -0.02076655812561512, 0.02846568636596203, -0.0061760940589010715, 0.010188660584390163, 0.02193620055913925, -0.0...
e747e6f3-762f-42c7-ae2c-f6f5b938d56a
Arguments string — String for which to compute the hash. String ngramsize — Optional. The size of an n-gram, any number from 1 to 25 . The default value is 3 . UInt8 hashnum — Optional. The number of minimum and maximum hashes used to calculate the result, any number from 1 to 25 . The default value...
{"source_file": "hash-functions.md"}
[ -0.009927118197083473, 0.011105113662779331, -0.01584126427769661, -0.031692422926425934, -0.07276605814695358, 0.02105897106230259, 0.08267360180616379, 0.04850511625409126, 0.009026548825204372, 0.008961254730820656, 0.006039637606590986, -0.017899373546242714, 0.01709633693099022, -0.05...
fc7588ce-c81a-48e3-be05-b313330a6126
Returned value Tuple with two hashes — the minimum and the maximum. Tuple ( UInt64 , UInt64 ). Tuple Examples Usage example sql title=Query SELECT ngramMinHashCaseInsensitive('ClickHouse') AS Tuple; response title=Response ┌─Tuple──────────────────────────────────────┐ │ (2106263556442004574,13203602793651...
{"source_file": "hash-functions.md"}
[ -0.01593576744198799, -0.05711788311600685, 0.004066769033670425, -0.043680693954229355, -0.0552801638841629, -0.005862010642886162, 0.06618640571832657, 0.03986075147986412, -0.03477616608142853, 0.0041299001313745975, -0.012491569854319096, 0.011358357965946198, 0.07247935235500336, -0.0...
22b9b88f-fbdc-4ae7-982c-45a2a54556d7
Returned value Returns a tuple with two hashes — the minimum and the maximum. Tuple Examples Usage example sql title=Query SELECT ngramMinHashUTF8('ClickHouse') AS Tuple; response title=Response ┌─Tuple──────────────────────────────────────┐ │ (18333312859352735453,6742163577938632877) │ └───────────────────...
{"source_file": "hash-functions.md"}
[ -0.020865805447101593, -0.05275265872478485, -0.05531108379364014, -0.01834048517048359, -0.10918757319450378, -0.019015472382307053, 0.0762176662683487, 0.03442646935582161, -0.03690400719642639, 0.00035679759457707405, -0.010263558477163315, -0.00884187500923872, 0.04986194893717766, -0....
38c53520-eea1-474a-b2a6-132dfc642cdc
Examples Usage example sql title=Query SELECT ngramSimHashCaseInsensitiveUTF8('ClickHouse') AS Hash; response title=Response ┌───────Hash─┐ │ 1636742693 │ └────────────┘ ngramSimHashUTF8 {#ngramSimHashUTF8} Introduced in: v21.1 Splits a UTF-8 encoded string into n-grams of ngramsize symbols and returns th...
{"source_file": "hash-functions.md"}
[ -0.016672007739543915, -0.04109321907162666, -0.030455458909273148, -0.036211345344781876, -0.09995459765195847, -0.01428973488509655, 0.055714480578899384, 0.034659840166568756, 0.01434634905308485, 0.004053947515785694, 0.005631391890347004, -0.0017066557193174958, 0.05262771248817444, -...
3df16b2a-3725-4929-b7be-4f2ff12b2109
Examples Usage example sql title=Query SELECT hex(sipHash128Keyed((506097522914230528, 1084818905618843912),'foo', '\x01', 3)); response title=Response ┌─hex(sipHash128Keyed((506097522914230528, 1084818905618843912), 'foo', '', 3))─┐ │ B8467F65C8B4CFD9A5F8BD733917D9BF ...
{"source_file": "hash-functions.md"}
[ 0.009566139429807663, -0.0031128190457820892, -0.03181884065270424, -0.053888678550720215, -0.10032843053340912, -0.03263801336288452, 0.09203485399484634, 0.0018382052658125758, 0.029721908271312714, 0.011326889507472515, -0.018232781440019608, 0.02904037944972515, 0.07161663472652435, -0...
d6cbb724-ce19-433a-b865-f5e726b1dbfc
Syntax sql sipHash64(arg1[, arg2, ...]) Arguments arg1[, arg2, ...] — A variable number of input arguments. Any Returned value Returns a computed hash value of the input arguments. UInt64 Examples Usage example sql title=Query SELECT sipHash64(array('e','x','a'), 'mple', 10, toDateTime('2019-06-1...
{"source_file": "hash-functions.md"}
[ 0.03891481086611748, -0.018051207065582275, -0.03691118583083153, -0.03167075291275978, -0.1020379513502121, -0.03151284530758858, 0.11365135759115219, -0.006036569830030203, 0.006351145450025797, 0.02314138412475586, 0.008905190043151379, 0.020011095330119133, 0.045113109052181244, -0.037...
8bc9f56c-0d9c-4efa-bc78-f350e5dae4a3
wordShingleMinHashArg {#wordShingleMinHashArg} Introduced in: v1.1 Splits a ASCII string into parts (shingles) of shinglesize words each and returns the shingles with minimum and maximum word hashes, calculated by the wordShingleMinHash function with the same input. It is case sensitive. Syntax sql wordShingl...
{"source_file": "hash-functions.md"}
[ -0.004290532320737839, 0.04859232157468796, -0.038667771965265274, -0.0348723903298378, -0.1160888671875, -0.04461364820599556, 0.11491762846708298, 0.055799584835767746, -0.028439361602067947, 0.00311727961525321, 0.013196941465139389, -0.01526370644569397, 0.12129293382167816, -0.0430540...
aee76ec9-3bb4-4348-b498-217a56a2bfca
wordShingleMinHashArgCaseInsensitiveUTF8 {#wordShingleMinHashArgCaseInsensitiveUTF8} Introduced in: v21.1 Splits a UTF-8 string into parts (shingles) of shinglesize words each and returns the shingles with minimum and maximum word hashes, calculated by the wordShingleMinHashCaseInsensitiveUTF8 function with the...
{"source_file": "hash-functions.md"}
[ 0.01483040302991867, 0.032852642238140106, 0.002201175084337592, -0.03679518774151802, -0.0904727578163147, -0.008245722390711308, 0.11955822259187698, 0.08186623454093933, -0.04802863672375679, -0.0025556725449860096, -0.013149434700608253, -0.019757699221372604, 0.13161160051822662, -0.0...
6acca64c-915b-451b-b797-07e204a7255d
wordShingleMinHashCaseInsensitive {#wordShingleMinHashCaseInsensitive} Introduced in: v21.1 Splits a ASCII string into parts (shingles) of shinglesize words, calculates hash values for each word shingle and returns a tuple with these hashes. Uses hashnum minimum hashes to calculate the minimum hash and hashnum...
{"source_file": "hash-functions.md"}
[ -0.003349351231008768, -0.02679954655468464, -0.02251797914505005, -0.05190994590520859, -0.10909920185804367, -0.021520735695958138, 0.1246972382068634, 0.03474389761686325, -0.06038763001561165, -0.03431689739227295, 0.0029827465768903494, 0.006614896468818188, 0.12413600087165833, -0.02...
0a9803d1-ee75-4ff9-a781-4c356d2ad425
response title=Response ┌─Tuple─────────────────────────────────────┐ │ (3065874883688416519,1634050779997673240) │ └───────────────────────────────────────────┘ wordShingleMinHashUTF8 {#wordShingleMinHashUTF8} Introduced in: v21.1 Splits a UTF-8 string into parts (shingles) of shinglesize words, calculates has...
{"source_file": "hash-functions.md"}
[ -0.01954302377998829, -0.017190800979733467, -0.02376711368560791, -0.034737180918455124, -0.1206064447760582, -0.03240601345896721, 0.10777198523283005, -0.007426528725773096, -0.031976230442523956, -0.03668065369129181, -0.009059401229023933, 0.00037135582533665, 0.1501796841621399, -0.0...
29acdd86-6e19-4c54-ac25-f882af064659
Introduced in: v21.1 Splits a ASCII string into parts (shingles) of shinglesize words and returns the word shingle simhash . It is case insensitive. Can be used for detection of semi-duplicate strings with bitHammingDistance . The smaller the Hamming distance of the calculated simhashes of two strings, the ...
{"source_file": "hash-functions.md"}
[ -0.02452579326927662, 0.03652438521385193, -0.06413816660642624, -0.03425575792789459, -0.10197033733129501, -0.06169559434056282, 0.07476983964443207, 0.06411954760551453, -0.01422417163848877, -0.03781265392899513, 0.013261848129332066, 0.025956206023693085, 0.11231213063001633, -0.05356...
aee3b29d-dfc0-4966-b1f3-332b3003b933
Usage example sql title=Query SELECT wordShingleSimHashUTF8('ClickHouse® is a column-oriented database management system (DBMS) for online analytical processing of queries (OLAP).') AS Hash; response title=Response ┌───────Hash─┐ │ 2328277067 │ └────────────┘ wyHash64 {#wyHash64} Introduced in: v22.7 Computes...
{"source_file": "hash-functions.md"}
[ 0.05007975175976753, 0.02442200854420662, -0.07448218762874603, 0.022154834121465683, -0.08575595915317535, -0.07659177482128143, 0.0495171993970871, -0.012249927967786789, 0.009624224156141281, 0.06340554356575012, -0.009687994606792927, 0.0136111443862319, 0.06474193185567856, -0.0934641...
594350f5-8dbc-44a7-a857-960c75e37425
description: 'Documentation for Functions for Working with UUIDs' sidebar_label: 'UUIDs' slug: /sql-reference/functions/uuid-functions title: 'Functions for Working with UUIDs' doc_type: 'reference' import DeprecatedBadge from '@theme/badges/DeprecatedBadge'; Functions for working with UUIDs UUIDv7 generation {...
{"source_file": "uuid-functions.md"}
[ -0.1027374193072319, 0.018760882318019867, -0.04440395534038544, 0.020030390471220016, 0.021216537803411484, -0.025373630225658417, 0.04250770062208176, -0.0177574772387743, 0.007759098429232836, -0.031745247542858124, -0.003324621357023716, -0.007801437750458717, 0.058452725410461426, -0....
b79afba1-15fc-4bda-b99e-c1fc2b2a8e56
text 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 ├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤ |0| timestamp | ├─┼ ┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼...
{"source_file": "uuid-functions.md"}
[ -0.03422149270772934, 0.08540818095207214, -0.03760753571987152, 0.038628946989774704, -0.0009136997978202999, -0.03894945606589317, 0.0487055703997612, -0.010041219182312489, -0.01154414750635624, -0.03784802183508873, 0.025362243875861168, -0.09863590449094772, 0.0703422874212265, -0.080...
6bc75d21-94a9-4cb9-b37b-d92080e67f57
dateTimeToUUIDv7 {#datetimetouuidv7} Converts a DateTime value to a UUIDv7 at the given time. See section "UUIDv7 generation" for details on UUID structure, counter management, and concurrency guarantees. :::note As of April 2024, version 7 UUIDs are in draft status and their layout may change in future. ::...
{"source_file": "uuid-functions.md"}
[ -0.042376674711704254, 0.009380094707012177, -0.008053699508309364, 0.05824838951230049, 0.0036892665084451437, -0.037743862718343735, 0.07423710078001022, -0.04940284788608551, 0.02306791953742504, -0.0019611285533756018, 0.014912388287484646, -0.1379372477531433, 0.01824674755334854, 0.0...
0d1234f6-118d-48b7-bd4c-4d0c6d6c0b60
Result: response ┌─────────────────────────────────uuid─┐ │ 61f0c404-5cb3-11e7-907b-a6006ad3dba0 │ └──────────────────────────────────────┘ toUUIDOrDefault {#touuidordefault} Arguments string — String of 36 characters or FixedString(36). String . default — UUID to be used as the default if the first argu...
{"source_file": "uuid-functions.md"}
[ 0.02236994355916977, -0.006586412433534861, -0.049218155443668365, 0.01719578541815281, -0.03931761160492897, -0.01951446197926998, 0.11586321890354156, 0.02023954875767231, -0.03644226863980293, -0.0336356945335865, -0.010156191885471344, -0.07312517613172531, -0.008328108116984367, -0.00...
21b54822-1a11-46bd-bdc4-429f548c3db5
Syntax sql UUIDStringToNum(string[, variant = 1]) Arguments string — A String of 36 characters or FixedString variant — Integer, representing a variant as specified by RFC4122 . 1 = Big-endian (default), 2 = Microsoft . Returned value FixedString(16) Usage examples sql SELECT '612f3c40-...
{"source_file": "uuid-functions.md"}
[ -0.02117176353931427, -0.002677198499441147, -0.024039017036557198, -0.00789781752973795, -0.02584991604089737, -0.05173762887716293, 0.10111157596111298, 0.05557376146316528, -0.033135946840047836, 0.0021349508315324783, -0.047267768532037735, -0.01996193826198578, 0.03436993807554245, -0...
17a39e4d-a1ff-4ee9-a08d-0dc924611a42
description: 'Documentation for Functions for Working with Time Series' sidebar_label: 'TimeSeries' slug: /sql-reference/functions/time-series-functions title: 'Functions for Working with Time Series' doc_type: 'reference' Time series functions Below functions are designed to be used with timeSeries*() aggregat...
{"source_file": "time-series-functions.md"}
[ -0.08592388033866882, -0.012507853098213673, 0.007613242603838444, 0.011811090633273125, -0.04469453915953636, 0.048928070813417435, -0.032159287482500076, 0.07997283339500427, 0.005369517952203751, -0.04891172796487808, -0.011374489404261112, -0.08931556344032288, -0.030377201735973358, -...
927bd826-89cf-44c8-ab0f-d80943c8ec45
start_timestamp - Start of the grid. end_timestamp - End of the grid. step - Step of the grid in seconds. values - Array of values [value1, value2, ..., valueN] . Returned value Returns values from the source array of values combined with timestamps on a regular time grid described by start_timestam...
{"source_file": "time-series-functions.md"}
[ -0.06109295040369034, 0.044756632298231125, -0.04015164077281952, 0.03692380711436272, 0.0340832956135273, 0.014928540214896202, -0.038283005356788635, 0.04158962517976761, 0.051283374428749084, -0.03565055876970291, -0.020237989723682404, -0.06442730128765106, -0.08788245916366577, -0.018...
5d9d2557-24dc-4ea5-8c42-3a266689e9f5
response title=Response ┌───────────print_0──────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ [[ -13.529999, -3.1799996, 16.71, -13.53, -3.1799996, 16.71, -13.53, -3.1799996, 16.71, -13.530001, -3.18, 16.710001, -13.5300...
{"source_file": "time-series-functions.md"}
[ -0.046849872916936874, 0.012982827611267567, 0.026064254343509674, -0.01166880689561367, -0.022284364327788353, -0.08691385388374329, -0.017302241176366806, 0.02362801507115364, 0.03532766178250313, -0.02366046793758869, 0.06773870438337326, -0.04745360463857651, 0.009736210107803345, -0.0...
ca6f2907-469b-436a-b05e-1e81b64c6b1a
Custom parameters outlier detection sql title=Query SELECT seriesOutliersDetectTukey([-3, 2, 15, 3, 5, 6, 4.50, 5, 12, 45, 12, 3.40, 3, 4, 5, 6], 0.2, 0.8, 1.5) AS print_0 response title=Response ┌─print_0──────────────────────────────┐ │ [0,0,0,0,0,0,0,0,0,19.5,0,0,0,0,0,0] │ └─────────────────────────────────────...
{"source_file": "time-series-functions.md"}
[ -0.03917144238948822, -0.039236538112163544, -0.029917150735855103, 0.019140809774398804, 0.009052861481904984, -0.0756896361708641, 0.03710698336362839, -0.03264098986983299, 0.01683434657752514, -0.00877968966960907, -0.002606726484373212, -0.056019533425569534, 0.0043111140839755535, -0...
1544e861-a465-4167-b3d3-cc5296fd477e
timeSeriesIdToTags {#timeSeriesIdToTags} Introduced in: v25.8 Finds tags associated with the specified identifier of a time series. Syntax sql timeSeriesIdToTags(id) Arguments id — Identifier of a time series. UInt64 or UInt128 or UUID or FixedString(16) Returned value Returns an array of pa...
{"source_file": "time-series-functions.md"}
[ 0.017101965844631195, 0.03833770751953125, -0.054242853075265884, 0.007901880890130997, -0.018176553770899773, -0.07574599981307983, 0.02754059247672558, -0.02630494348704815, 0.013773596845567226, -0.018170133233070374, -0.03269599750638008, -0.07101257890462875, -0.01611470617353916, -0....
91220b60-c7b6-4ef8-8f60-df52dd1abadd
Syntax sql timeSeriesStoreTags(id, tags_array, separate_tag_name_1, separate_tag_value_1, ...) Arguments id — Identifier of a time series. UInt64 or UInt128 or UUID or FixedString(16) tags_array — Array of pairs (tag_name, tag_value). Array(Tuple(String, String)) or NULL separate_tag_name_i — T...
{"source_file": "time-series-functions.md"}
[ -0.0064779361709952354, 0.05217543616890907, -0.07133490592241287, 0.019633658230304718, -0.034067295491695404, -0.06074031442403793, 0.0542142428457737, 0.013108554296195507, 0.0196555033326149, -0.011800614185631275, -0.030842676758766174, -0.08038610219955444, -0.03788435831665993, -0.0...
d176dab6-ed30-4559-8a38-c01572be82e4
description: 'Documentation for functions used to generate random numbers' sidebar_label: 'Random number' slug: /sql-reference/functions/random-functions title: 'Functions for generating random numbers' doc_type: 'reference' Functions for generating random numbers All functions in this section accept zero or one ...
{"source_file": "random-functions.md"}
[ -0.055971790105104446, 0.01225697435438633, -0.08786847442388535, 0.0140931261703372, -0.06998597830533981, -0.08990531414747238, 0.14248555898666382, -0.020076274871826172, -0.02543024532496929, -0.0159678366035223, 0.01555836945772171, -0.05257445201277733, 0.12624791264533997, -0.102260...
5d8cd1d7-18bd-4b1b-abd4-b470a27f47de
Syntax sql rand64([x]) Arguments x — Optional and ignored. The only purpose of the argument is to prevent common subexpression elimination when the same function call is used multiple times in a query. Any Returned value Returns a random UInt64 number with uniform distribution. UInt64 Examples Us...
{"source_file": "random-functions.md"}
[ -0.017077084630727768, 0.02367647923529148, -0.05189979448914528, 0.022750968113541603, -0.014831101521849632, -0.06928157806396484, 0.10511655360460281, -0.053178220987319946, -0.012316107749938965, -0.008683628402650356, -0.0020606317557394505, -0.03643382340669632, 0.08660802990198135, ...
b64f1ece-1a28-4be0-a9e2-4751c3cdc068
Introduced in: v22.10 Returns a random Float64 number drawn from a chi-square distribution . Syntax sql randChiSquared(degree_of_freedom[, x]) Arguments degree_of_freedom — Degrees of freedom. Float64 x — Optional and ignored. The only purpose of the argument is to prevent common subexpression elimin...
{"source_file": "random-functions.md"}
[ -0.034676700830459595, 0.03023187443614006, -0.05052546411752701, 0.05915563926100731, 0.018392644822597504, -0.028995264321565628, 0.06947033107280731, -0.04293868690729141, 0.0015468386700376868, 0.055863264948129654, 0.02105136215686798, -0.017705727368593216, 0.05756888538599014, -0.06...
4cc693aa-e42b-4678-9040-7d4949c912da
Returns a random Float64 number drawn from an F-distribution . Syntax sql randFisherF(d1, d2[, x]) Arguments d1 — d1 degree of freedom in X = (S1 / d1) / (S2 / d2) . Float64 d2 — d2 degree of freedom in X = (S1 / d1) / (S2 / d2) . Float64 x — Optional and ignored. The only purpose of the argument ...
{"source_file": "random-functions.md"}
[ -0.02588091976940632, 0.010048815049231052, -0.05482525750994682, -0.029758507385849953, 0.03394239395856857, -0.07203102856874466, 0.05582503229379654, -0.006413323804736137, 0.013940983451902866, 0.010972356423735619, -0.010281174443662167, -0.0790630653500557, 0.006685770582407713, -0.0...
a23e2fa2-eea9-4537-bedf-6e62713de35c
randNormal {#randNormal} Introduced in: v22.10 Returns a random Float64 number drawn from a normal distribution . Syntax sql randNormal(mean, stddev[, x]) Arguments mean — The mean value of distribution Float64 stddev — The standard deviation of the distribution Float64 x — Optional and ignored....
{"source_file": "random-functions.md"}
[ -0.012090214528143406, 0.0041155703365802765, -0.04267214238643646, 0.011936124414205551, -0.02235780842602253, -0.08149923384189606, 0.07531768828630447, -0.03153609856963158, 0.03487120196223259, -0.004362805280834436, 0.05833299830555916, 0.021086379885673523, 0.061094220727682114, -0.0...
02a89108-1fb4-43a7-8001-86e9958fc578
x — Optional and ignored. The only purpose of the argument is to prevent common subexpression elimination when the same function call is used multiple times in a query. Any Returned value Returns a random number drawn uniformly from the interval formed by min and max . Float64 Examples Usage example ...
{"source_file": "random-functions.md"}
[ -0.0467475987970829, 0.04902354255318642, -0.035206280648708344, 0.040907345712184906, -0.0393042266368866, -0.022103484719991684, 0.12616829574108124, 0.026995833963155746, 0.014954417943954468, -0.003524876432493329, -0.004130742512643337, -0.02859167382121086, 0.07847371697425842, -0.06...
d64f172e-377e-4390-b077-41a9794c6f00
x — Optional and ignored. The only purpose of the argument is to prevent common subexpression elimination when the same function call is used multiple times in a query. Any Returned value Returns a string filled with random bytes. String Examples Usage example sql title=Query SELECT randomString(5) AS ...
{"source_file": "random-functions.md"}
[ -0.0069833542220294476, -0.006070567294955254, -0.02837952971458435, -0.019738344475626945, -0.07784616947174072, 0.015044753439724445, 0.13120068609714508, -0.05122455209493637, 0.03217426314949989, -0.06518065929412842, 0.010104188695549965, -0.02771998941898346, 0.0792771652340889, -0.0...
b844110b-6708-4b7d-b6ed-c005b5a353e1
description: 'Documentation for Regular Functions' sidebar_label: 'Overview' sidebar_position: 1 slug: /sql-reference/functions/overview title: 'Regular Functions' doc_type: 'reference' Regular functions There are at least* two types of functions - regular functions (they are just called "functions") and aggregat...
{"source_file": "overview.md"}
[ -0.04915427044034004, -0.030578920617699623, 0.046795982867479324, 0.01815040595829487, -0.039436619728803635, 0.005928170867264271, -0.014124587178230286, 0.01766803488135338, -0.006210912484675646, 0.0072206174954771996, -0.016497498378157616, 0.03790590912103653, 0.029496772214770317, -...
87f7547e-4646-45ac-b1bb-5e3dbaaea312
NULL Processing {#null-processing} Functions have the following behaviors: If at least one of the arguments of the function is NULL , the function result is also NULL . Special behavior that is specified individually in the description of each function. In the ClickHouse source code, these functions have Use...
{"source_file": "overview.md"}
[ -0.06347350776195526, -0.030355557799339294, -0.039247605949640274, 0.013427230529487133, -0.04332411661744118, -0.08676119893789291, -0.023297274485230446, -0.03623117133975029, -0.0004318639694247395, 0.01232799980789423, 0.04190367832779884, 0.019144315272569656, 0.024093428626656532, -...
2e98ff50-462b-4fae-9e4f-9576578a9ae3
description: 'Documentation for NumericIndexedVector and Its Functions' sidebar_label: 'NumericIndexedVector' slug: /sql-reference/functions/numeric-indexed-vector-functions title: 'NumericIndexedVector Functions' doc_type: 'reference' NumericIndexedVector NumericIndexedVector is an abstract data structure that e...
{"source_file": "numeric-indexed-vector-functions.md"}
[ -0.031771935522556305, 0.02280122973024845, -0.044206153601408005, 0.04303374141454697, -0.013657432049512863, -0.05716593191027641, -0.03320984169840813, -0.014587982557713985, -0.012933510355651379, -0.054750073701143265, -0.05915705859661102, 0.041069287806749344, 0.0058492389507591724, ...
45a8a728-fc4a-447e-a066-56ad2fb544b2
There are three cases for indices: non-zero value, zero value and non-existent. In NumericIndexedVector, only non-zero value and zero value will be stored. In addition, in pointwise operations between two NumericIndexedVectors, the value of non-existent index will be treated as 0. In the division scenario, the result i...
{"source_file": "numeric-indexed-vector-functions.md"}
[ -0.035790424793958664, 0.024533012881875038, -0.025580910965800285, 0.016720514744520187, 0.020290076732635498, 0.0028832871466875076, -0.016602780669927597, -0.046658243983983994, 0.04083260893821716, -0.004245269577950239, -0.031193295493721962, -0.049071893095970154, 0.004730653949081898,...
64f88a18-c385-4d82-b73e-a2e48df97125
Example Test data: text UserID PlayTime 1 10 2 20 3 30 Query & Result: ```sql SELECT groupNumericIndexedVector(UserID, PlayTime) AS num FROM t; ┌─num─┐ │ 60 │ └─────┘ SELECT groupNumericIndexedVectorState(UserID, PlayTime) as res, toTypeName(res), numericIndexedVectorAllValueSum(res) FROM ...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.02326441928744316, -0.050978608429431915, 0.005830554757267237, -0.010965308174490929, -0.08802299946546555, 0.11088250577449799, 0.0825154110789299, 0.016739165410399437, -0.002369718858972192, -0.025384092703461647, 0.0106121264398098, -0.0867072343826294, 0.0334511399269104, -0.003281...
6ad40325-942d-4008-a876-ccaba1ec823b
Examples Usage example sql title=Query SELECT numericIndexedVectorBuild(mapFromArrays([1, 2, 3], [10, 20, 30])) AS res, toTypeName(res); response title=Response ┌─res─┬─toTypeName(res)────────────────────────────────────────────┐ │ │ AggregateFunction(groupNumericIndexedVector, UInt8, UInt8) │ └─────┴────────...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.028350528329610825, -0.05205181613564491, -0.02565411664545536, 0.039994124323129654, -0.027563516050577164, 0.02996688149869442, 0.00632457435131073, -0.004755417816340923, 0.007330408785492182, -0.024626491591334343, -0.047885261476039886, -0.06912386417388916, 0.041830115020275116, -0...
f36f5389-11a3-451d-afed-16b929c0b98c
Performs pointwise division between a numericIndexedVector and either another numericIndexedVector or a numeric constant. Syntax sql numericIndexedVectorPointwiseDivide(v1, v2) Arguments v1 — numericIndexedVector v2 — A numeric constant or numericIndexedVector object. (U)Int* or Float* or numericIn...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.07981140911579132, -0.010553778149187565, -0.057047538459300995, -0.03210537135601044, 0.03610291704535484, -0.0001234567171195522, -0.008038481697440147, -0.05495855212211609, -0.0902417004108429, -0.012466220185160637, -0.06124776601791382, -0.07636843621730804, 0.037367116659879684, -...
9e121f38-47eb-40ee-8a3c-a8883486077a
Returned value Returns a new numericIndexedVector object. numericIndexedVector Examples Usage example sql title=Query with numericIndexedVectorBuild(mapFromArrays([1, 2, 3], arrayMap(x -> toFloat64(x), [10, 20, 50]))) as vec1, numericIndexedVectorBuild(mapFromArrays([2, 3, 4], arrayMap(x -> toFloat64(x...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.04755458980798721, -0.01520338375121355, -0.01731906086206436, 0.004496867302805185, -0.007020700257271528, 0.018690746277570724, -0.029690401628613472, -0.03589719906449318, -0.046016063541173935, -0.024513470008969307, -0.0678604245185852, -0.09931480884552002, 0.02661510929465294, -0....
da2743a9-d682-4512-a933-ad63e78d400a
Returned value Returns a new numericIndexedVector object. numericIndexedVector Examples Usage example sql title=Query with numericIndexedVectorBuild(mapFromArrays([1, 2, 3], arrayMap(x -> toFloat64(x), [10, 20, 30]))) as vec1, numericIndexedVectorBuild(mapFromArrays([2, 3, 4], arrayMap(x -> toFloat64(x...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.05649055913090706, -0.017183825373649597, -0.01985965482890606, 0.011492638848721981, 0.008671115152537823, 0.020453613251447678, -0.03855707868933678, -0.035461895167827606, -0.048190049827098846, -0.020696885883808136, -0.06267017871141434, -0.10200362652540207, 0.024992341175675392, -...
b34c5c04-76c3-445f-9b4e-da8913d04f66
response title=Response ┌─res1──────────┬─res2─────────────┐ │ {2:200,3:600} │ {1:20,2:40,3:60} │ └───────────────┴──────────────────┘ numericIndexedVectorPointwiseNotEqual {#numericIndexedVectorPointwiseNotEqual} Introduced in: v25.7 Performs pointwise comparison between a numericIndexedVector and either another...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.050993017852306366, 0.015966501086950302, -0.051564715802669525, -0.010393735021352768, -0.008992196060717106, -0.015631485730409622, -0.00846389215439558, -0.02959948219358921, -0.08074721693992615, -0.02473660372197628, -0.05903773754835129, -0.09518618881702423, 0.10077735036611557, -...
881cea7f-1e96-4ff5-8062-660e27694b73
sql numericIndexedVectorShortDebugString(v) Arguments v — numericIndexedVector Returned value Returns a JSON string containing debug information. String Examples Usage example sql title=Query SELECT numericIndexedVectorShortDebugString(numericIndexedVectorBuild(mapFromArrays([1, 2, 3], [10, 20, 30...
{"source_file": "numeric-indexed-vector-functions.md"}
[ 0.029519731178879738, 0.10063294321298599, -0.018969472497701645, 0.04867735505104065, -0.024682004004716873, -0.01768559403717518, -0.006163048557937145, 0.04787370562553406, -0.02080383710563183, -0.01737026497721672, -0.06263177841901779, -0.10666719824075699, -0.02094680815935135, -0.0...
5f93830d-19db-4241-bd84-0bd3ff91b60b
description: 'Documentation for Natural Language Processing (NLP) functions' sidebar_label: 'NLP' slug: /sql-reference/functions/nlp-functions title: 'Natural Language Processing (NLP) Functions' doc_type: 'reference' keywords: ['NLP', 'Natural Language Processing'] import ExperimentalBadge from '@theme/badges/Expe...
{"source_file": "nlp-functions.md"}
[ -0.011314909905195236, -0.027935180813074112, 0.05885309725999832, 0.03795626014471054, 0.014651289209723473, 0.03878600895404816, 0.09485919028520584, -0.03394467383623123, -0.016363002359867096, 0.022092880681157112, 0.013699045404791832, -0.06187720596790314, 0.063459113240242, -0.04132...
ff9a5129-a01c-4b3c-911d-0a00dac9b192
Syntax sql detectLanguageUnknown('s') Arguments s — The text to analyze. String Returned value Returns the 2-letter ISO code of the detected language. Other possible results: un = unknown, can not detect any language, other = the detected language does not have 2 letter code. String Examples Ba...
{"source_file": "nlp-functions.md"}
[ -0.04286213219165802, -0.01956617645919323, -0.011794990859925747, 0.01807829551398754, 0.0023932834155857563, 0.005203811917454004, 0.11896936595439911, 0.005347880069166422, -0.03272587060928345, -0.06259233504533768, 0.020777763798832893, -0.09910299628973007, 0.05967504903674126, -0.04...
7df7e318-d50d-4fdc-b617-d5ec8257fc10
synonyms {#synonyms} Introduced in: v21.9 Finds synonyms of a given word. There are two types of synonym extensions: - plain - wordnet With the plain extension type you need to provide a path to a simple text file, where each line corresponds to a certain synonym set. Words in this line must be separated w...
{"source_file": "nlp-functions.md"}
[ -0.005235372111201286, -0.03522494435310364, -0.030598286539316177, 0.002656766213476658, -0.025194182991981506, -0.011854834854602814, 0.07374060899019241, 0.12470286339521408, -0.07124441117048264, 0.0405908077955246, 0.0800328329205513, 0.051655568182468414, 0.05679315701127052, 0.04565...
4d7f50a7-2e22-45de-a6b5-f8fb486b0b2a
description: 'Documentation for Conditional Functions' sidebar_label: 'Conditional' slug: /sql-reference/functions/conditional-functions title: 'Conditional Functions' doc_type: 'reference' Conditional functions Overview {#overview} Using Conditional Results Directly {#using-conditional-results-directly} Cond...
{"source_file": "conditional-functions.md"}
[ 0.03453054279088974, -0.012991080060601234, 0.055303748697042465, 0.03513219580054283, 0.005435512401163578, 0.0773727297782898, 0.006319316569715738, 0.04526320844888687, -0.0911170020699501, 0.01052776351571083, 0.057600025087594986, -0.10678569972515106, -0.0025747925974428654, -0.03242...
724860e4-9106-4997-b99f-543eed3d1507
This more compact form is optimized for constant value matching and internally uses caseWithExpression() . For example, the following is valid: ```sql SELECT number, CASE number WHEN 0 THEN 100 WHEN 1 THEN 200 ELSE 0 END AS result FROM system.numbers WHERE number < 3; -- is ...
{"source_file": "conditional-functions.md"}
[ -0.03734871745109558, 0.027497049421072006, -0.010828295722603798, -0.015389776788651943, -0.10330391675233841, 0.0108686164021492, 0.07217933982610703, 0.03080405294895172, -0.03812584653496742, -0.013607106171548367, -0.0020883374381810427, -0.01669441908597946, 0.0872175469994545, -0.01...
d8c199db-b9b0-46d0-9f66-4fab4aca00aa
3 rows in set. Elapsed: 0.011 sec. ``` Here, ClickHouse sees multiple DateTime64(3, <timezone>) return types. It infers the common type as DateTime64(3, 'Asia/Kolkata' as the first one it sees, implicitly casting other branches to this type. This can be addressed by converting to a string to preserve intended t...
{"source_file": "conditional-functions.md"}
[ 0.12762632966041565, -0.033839281648397446, -0.03504594415426254, 0.020853858441114426, -0.036593109369277954, 0.03447908163070679, 0.053083308041095734, 0.004199998918920755, -0.0003554995928425342, -0.011968354694545269, 0.012178243137896061, -0.15455548465251923, -0.012664127163589, 0.0...
3ebedfae-00bc-46e2-8ed4-2a611444a174
Syntax sql greatest(x1[, x2, ...]) Arguments x1[, x2, ...] — One or multiple values to compare. All arguments must be of comparable types. Any Returned value Returns the greatest value among the arguments, promoted to the largest compatible type. Any Examples Numeric types sql title=Query SELECT ...
{"source_file": "conditional-functions.md"}
[ 0.06726883351802826, 0.02639547362923622, -0.0008174678077921271, -0.021901734173297882, -0.08568544685840607, -0.08456350117921829, 0.029828151687979698, 0.04890423268079758, -0.05390002578496933, -0.02122151292860508, -0.0729338601231575, -0.025444258004426956, 0.014304201118648052, 0.01...
16c2c609-2382-484e-beb9-af8efc3f4f2b
For arrays, returns the lexicographically least array. For DateTime types, the result type is promoted to the largest type (e.g., DateTime64 if mixed with DateTime32). :::note Use setting least_greatest_legacy_null_behavior to change NULL behavior Version 24.12 introduced a backwards-incompatible change suc...
{"source_file": "conditional-functions.md"}
[ 0.06348534673452377, 0.023432407528162003, -0.000027156842406839132, 0.0009909120853990316, -0.035254836082458496, -0.010100061073899269, 0.02439616620540619, 0.040627025067806244, -0.06122242286801338, -0.013286181725561619, -0.0689210444688797, -0.02836986631155014, 0.004074150696396828, ...
20f23c66-8e01-45be-af3c-f5bda7c89210
Returned value Returns the result of then_N for matching cond_N , otherwise returns the else condition. Examples Example usage ```sql title=Query CREATE TABLE LEFT_RIGHT (left Nullable(UInt8), right Nullable(UInt8)) ENGINE = Memory; INSERT INTO LEFT_RIGHT VALUES (NULL, 4), (1, 3), (2, 2), (3, 1), (4, NULL)...
{"source_file": "conditional-functions.md"}
[ -0.07034844905138016, 0.02934250794351101, -0.01065723318606615, 0.015256703831255436, -0.08585214614868164, 0.0018217936158180237, 0.0011149849742650986, 0.022881081327795982, -0.0341084823012352, -0.011272480711340904, 0.025522157549858093, 0.006524659227579832, 0.002494445536285639, -0....
4e61a9d9-19b1-4500-be75-deabbd8d2385
description: 'Documentation for functions for working with nullable values' sidebar_label: 'Nullable' slug: /sql-reference/functions/functions-for-nulls title: 'Functions for working with nullable values' keywords: ['nullable', 'functions'] doc_type: 'reference' Functions for working with nullable values assu...
{"source_file": "functions-for-nulls.md"}
[ -0.03859792649745941, 0.027560735121369362, -0.06635617464780807, 0.02209010161459446, -0.04758519306778908, 0.006308153737336397, 0.04732101783156395, 0.05069887638092041, -0.09446977823972702, -0.0018956762505695224, 0.06046821549534798, -0.05944880470633507, 0.02495948225259781, -0.0717...
f74110fe-0830-4c2d-b4a7-efc5a3c8e52a
firstNonDefault {#firstNonDefault} Introduced in: v25.9 Returns the first non-default value from a set of arguments Syntax ```sql ``` Arguments arg1 — The first argument to check - arg2 — The second argument to check - ... — Additional arguments to check Returned value Result type is the sup...
{"source_file": "functions-for-nulls.md"}
[ -0.015902195125818253, -0.031097957864403725, -0.01807808317244053, 0.055587880313396454, -0.06924067437648773, -0.039024192839860916, 0.08824136108160019, -0.014892194420099258, -0.05219288542866707, -0.004480086732655764, 0.041733432561159134, -0.08550351113080978, 0.015630044043064117, ...
a1f35d22-6c39-438d-955c-83d5f3059a84
Syntax sql isNull(x) Arguments x — A value of non-compound data type. Any Returned value Returns 1 if x is NULL , otherwise 0 . UInt8 Examples Usage example ```sql title=Query CREATE TABLE t_null ( x Int32, y Nullable(Int32) ) ENGINE = MergeTree ORDER BY tuple(); INSERT INTO t_null VA...
{"source_file": "functions-for-nulls.md"}
[ 0.04932737722992897, 0.01146972831338644, -0.060962971299886703, 0.011785796843469143, -0.05702394247055054, -0.03303424268960953, 0.046201057732105255, 0.03790103271603584, -0.07172621041536331, 0.02870001830160618, 0.049432430416345596, -0.05641314014792442, 0.0025833449326455593, -0.021...
e5cdbd51-e570-4117-a445-9ea045a1d2bf
Returned value Returns the input value but of Nullable type. Nullable(Any) Examples Usage example sql title=Query SELECT toTypeName(10), toTypeName(toNullable(10)); response title=Response ┌─toTypeName(10)─┬─toTypeName(toNullable(10))─┐ │ UInt8 │ Nullable(UInt8) │ └────────────────┴────...
{"source_file": "functions-for-nulls.md"}
[ -0.02333511784672737, -0.000745575875043869, -0.04882160946726799, 0.06945830583572388, -0.11139173805713654, 0.030831117182970047, 0.03369729965925217, 0.05905386433005333, -0.07293006777763367, -0.06152813509106636, 0.028250308707356453, -0.046025313436985016, 0.02407110296189785, -0.006...
7ddcbcbd-904d-446d-acf9-87453e4835bb
description: 'Documentation for Bit Functions' sidebar_label: 'Bit' slug: /sql-reference/functions/bit-functions title: 'Bit Functions' doc_type: 'reference' Bit functions Bit functions work for any pair of types from UInt8 , UInt16 , UInt32 , UInt64 , Int8 , Int16 , Int32 , Int64 , Float32 , or Float64...
{"source_file": "bit-functions.md"}
[ 0.03221527487039566, 0.02911103144288063, -0.08677846193313599, 0.0030082790181040764, -0.08929069340229034, -0.06282173097133636, 0.07957008481025696, 0.035601627081632614, -0.07297898828983307, -0.03307230770587921, -0.034367069602012634, -0.040369413793087006, 0.04205317795276642, -0.05...
2dcaee4b-fb3a-48b4-aaa8-89da95f385a6
Performs the bitwise NOT operation. Syntax sql bitNot(a) Arguments a — Value for which to apply bitwise NOT operation. (U)Int* or Float* or String Returned value Returns the result of ~a i.e a with bits flipped. Examples Usage example sql title=Query SELECT CAST('5', 'UInt8') AS orig...
{"source_file": "bit-functions.md"}
[ 0.04242540895938873, 0.019181538373231888, -0.08053770661354065, 0.03687891736626625, -0.09534520655870438, -0.12132560461759567, 0.06587280333042145, -0.031245222315192223, -0.017743993550539017, 0.006144004873931408, -0.019984912127256393, -0.05087393894791603, 0.05871713533997536, -0.04...
0abe682c-ad4f-4d44-affd-0bcad8365776
Introduced in: v1.1 Shifts the binary representation of a value to the left by a specified number of bit positions. A FixedString or a String is treated as a single multibyte value. Bits of a FixedString value are lost as they are shifted out. On the contrary, a String value is extended with additional by...
{"source_file": "bit-functions.md"}
[ 0.011500322259962559, -0.012458245269954205, -0.04593680053949356, 0.04163215309381485, -0.07400137931108475, -0.0029737562872469425, 0.04874948412179947, -0.00046044826740399003, 0.007759269792586565, 0.0014426879351958632, -0.043940722942352295, -0.03989245370030403, 0.03381888568401337, ...
e4c0f130-04f9-4f58-9cb0-b834726c795b
Usage example with hexadecimal encoding sql title=Query SELECT 'abc' AS a, hex(a), bitShiftLeft(a, 4) AS a_shifted, hex(a_shifted); response title=Response ┌─a───┬─hex('abc')─┬─a_shifted─┬─hex(bitShiftRight('abc', 12))─┐ │ abc │ 616263 │ │ 0616 │ └─────┴────────────┴──────────...
{"source_file": "bit-functions.md"}
[ 0.03335357457399368, 0.017039237543940544, -0.03923393785953522, 0.008756106719374657, -0.10125237703323364, 0.02743753418326378, 0.028213227167725563, 0.020950257778167725, -0.020082684233784676, -0.014093591831624508, 0.0024540452286601067, -0.029805295169353485, 0.058426059782505035, -0...
5f317dba-a3e6-4fff-a3ba-7e36d1ba019a
response title=Response ┌─bin('Hello')─────────────────────────────┬─bin(bitSlice('Hello', 1, 8))─┐ │ 0100100001100101011011000110110001101111 │ 01001000 │ └──────────────────────────────────────────┴──────────────────────────────┘ ┌─bin('Hello')─────────────────────────────┬─bin(bitSlice('Hello', 1...
{"source_file": "bit-functions.md"}
[ 0.02059859223663807, 0.036838073283433914, -0.024190708994865417, 0.05762835964560509, -0.0665772333741188, -0.07061325013637543, 0.06060433015227318, -0.021839763969182968, -0.07058783620595932, 0.007363581098616123, 0.005563643295317888, -0.05866186320781708, 0.05493917688727379, -0.0232...
6707edac-36f5-4a86-8e45-b7c94886d198
Syntax sql bitTestAny(a, index1[, index2, ... , indexN]) Arguments a — An integer value. (U)Int8/16/32/64 index1, ... — One or multiple positions of bits. (U)Int8/16/32/64 Returned value Returns the result of the logical disjunction UInt8 Examples Usage example 1 sql title=Query SELECT bitTes...
{"source_file": "bit-functions.md"}
[ 0.02238363027572632, 0.049372557550668716, -0.042026832699775696, 0.03655083104968071, -0.06107255071401596, -0.07306032627820969, 0.058692075312137604, -0.04557294026017189, -0.0450938381254673, -0.025484653189778328, -0.014583345502614975, -0.10014823824167252, 0.06097930669784546, -0.00...
97c875d9-6d16-4da0-993c-a4cec0f76667
description: 'Documentation for time window functions' sidebar_label: 'Time window' slug: /sql-reference/functions/time-window-functions title: 'Time window functions' doc_type: 'reference' keywords: ['time window'] import ExperimentalBadge from '@theme/badges/ExperimentalBadge'; import CloudNotSupportedBadge from ...
{"source_file": "time-window-functions.md"}
[ -0.02408846653997898, 0.022820258513092995, -0.02720414102077484, -0.02353777177631855, -0.04825888201594353, 0.0203782357275486, 0.07255370169878006, -0.02147797867655754, 0.016989706084132195, -0.03367217630147934, -0.018564527854323387, -0.02226264774799347, 0.004570879507809877, -0.023...
40cd307d-3a25-4251-b1ec-08aa01e85389
Arguments time_attr — Date and time. DateTime hop_interval — Positive Hop interval. Interval window_interval — Positive Window interval. Interval timezone — Optional. Timezone name. String Returned value Returns the inclusive lower bound of the corresponding hopping window. DateTime Examples ...
{"source_file": "time-window-functions.md"}
[ -0.025868024677038193, 0.024273419752717018, -0.00735407555475831, 0.026711182668805122, -0.046115532517433167, -0.08023350685834885, 0.035733312368392944, 0.016077574342489243, -0.024315310642123222, -0.039448969066143036, -0.03779367730021477, -0.01754264533519745, -0.026915637776255608, ...
0628fa5b-6138-4b07-ae29-2d002ef2b276
description: 'Documentation for functions used for working with IPv4 and IPv6 addresses.' sidebar_label: 'IP Addresses' slug: /sql-reference/functions/ip-address-functions title: 'Functions for working with IPv4 and IPv6 addresses' doc_type: 'reference' Functions for working with IPv4 and IPv6 addresses IPv4C...
{"source_file": "ip-address-functions.md"}
[ 0.06518709659576416, -0.05416669324040413, -0.020007725805044174, -0.022224610671401024, -0.04236815497279167, 0.018178796395659447, 0.0005871611065231264, -0.01781851053237915, -0.058887824416160583, -0.06543493270874023, 0.011379730887711048, -0.017989138141274452, 0.003308770013973117, ...
d95cecf0-0dc5-449e-bf2a-2113580b76e3
Syntax sql IPv4StringToNum(string) Aliases : INET_ATON Arguments string — IPv4 address string. String Returned value Returns theIPv4 address. UInt32 Examples Usage example sql title=Query IPv4StringToNum('192.168.0.1') response title=Response 3232235521 IPv4StringToNumOrDefault {#IPv4Strin...
{"source_file": "ip-address-functions.md"}
[ 0.040924396365880966, -0.012498083524405956, -0.041058748960494995, -0.024787455797195435, -0.09373150020837784, -0.020039400085806847, 0.06124262511730194, 0.009920158423483372, 0.028341712430119514, -0.039541829377412796, -0.04181792959570885, -0.046262476593256, -0.011992107145488262, 0...
c5923e12-cfed-4cb2-a1ea-750e6c752a0b
Examples Usage example sql title=Query SELECT IPv6CIDRToRange(toIPv6('2001:0db8:0000:85a3:0000:0000:ac1f:8001'), 32); response title=Response ┌─IPv6CIDRToRange(toIPv6('2001:0db8:0000:85a3:0000:0000:ac1f:8001'), 32)─┐ │ ('2001:db8::','2001:db8:ffff:ffff:ffff:ffff:ffff:ffff') │ └─────────────────────...
{"source_file": "ip-address-functions.md"}
[ -0.008644076064229012, 0.004705508705228567, -0.011934097856283188, -0.003339693183079362, -0.04030301421880722, 0.021490277722477913, 0.02911178395152092, -0.013198391534388065, 0.03863319009542465, -0.04206918925046921, -0.02141861990094185, -0.032241031527519226, -0.006478064693510532, ...
08ad3cf2-a71c-4ffa-84fb-79c91c62c4d0
If the input string contains a valid IPv4 address, returns its IPv6 equivalent. HEX can be uppercase or lowercase. Syntax sql IPv6StringToNum(string) Aliases : INET6_ATON Arguments string — IPv6 address string. String Returned value Returns theIPv6 address in binary format. FixedString(16) Examp...
{"source_file": "ip-address-functions.md"}
[ 0.03896128758788109, 0.00408557103946805, -0.01762966997921467, -0.026688819751143456, -0.06762994080781937, 0.006265461910516024, 0.02711007371544838, -0.04890298470854759, -0.006455389782786369, -0.05499137192964554, -0.014665430411696434, -0.023895204067230225, -0.028918571770191193, -0...
34d64239-3614-418c-a359-07bb809be991
bytesToCutForIPv6 — Number of bytes to cut for IPv6. UInt8 bytesToCutForIPv4 — Number of bytes to cut for IPv4. UInt8 Returned value Returns a string containing the IPv6 address in text format with specified bytes removed. String Examples Usage example sql title=Query WITH IPv6StringToNum('2001:0...
{"source_file": "ip-address-functions.md"}
[ 0.04993906989693642, 0.01001122035086155, 0.0180901437997818, 0.009877682663500309, -0.02535552717745304, 0.027257846668362617, 0.041541147977113724, -0.08755557984113693, 0.03397322818636894, -0.037954241037368774, -0.0015736425993964076, -0.03742910921573639, -0.039907973259687424, -0.09...
53416d63-1953-4771-8b99-fd9fc9fb7ea7
Examples Usage example sql title=Query SELECT addr, isIPv6String(addr) FROM(SELECT ['::', '1111::ffff', '::ffff:127.0.0.1', '127.0.0.1'] AS addr) ARRAY JOIN addr; response title=Response ┌─addr─────────────┬─isIPv6String(addr)─┐ │ :: │ 1 │ │ 1111::ffff │ 1 │ │...
{"source_file": "ip-address-functions.md"}
[ 0.027284855023026466, -0.03637802228331566, -0.027606327086687088, -0.0014199318829923868, -0.05373340845108032, -0.002046903595328331, 0.062090788036584854, -0.009458707645535469, 0.033807314932346344, -0.05620378628373146, -0.03180753067135811, -0.03966959938406944, -0.023012489080429077, ...
a6d09a2b-8ad7-4ea4-9d81-22df0d47fb79
Converts an input value to a value of type IPv4 but returns NULL in case of an error. Like toIPv4 but returns NULL instead of throwing an exception on conversion errors. Supported arguments: - String representations of IPv4 addresses in dotted decimal notation. - Integer representations of IPv4 addresses. U...
{"source_file": "ip-address-functions.md"}
[ 0.08832766115665436, -0.00805997010320425, -0.014574713073670864, -0.009532575495541096, -0.05085316300392151, 0.022084413096308708, 0.023292241618037224, -0.055854685604572296, -0.004238664638251066, -0.03547348082065582, -0.04493296518921852, -0.03987331688404083, 0.027720525860786438, -...
3b02c98f-bbe1-42f3-a56a-c5b4ce3382f5
IPv4-to-IPv6 mapping sql title=Query SELECT toIPv6('127.0.0.1'); response title=Response ┌─toIPv6('127.0.0.1')─┐ │ ::ffff:127.0.0.1 │ └─────────────────────┘ toIPv6OrDefault {#toIPv6OrDefault} Introduced in: v22.3 Converts a string or a UInt128 form of IPv6 address to IPv6 type. If the IPv6 address has a...
{"source_file": "ip-address-functions.md"}
[ 0.059634264558553696, -0.04478530213236809, -0.020148128271102905, 0.010898610576987267, -0.09660623222589493, 0.015655500814318657, 0.024427086114883423, -0.04979044571518898, -0.0007271180511452258, -0.040633343160152435, -0.040416330099105835, -0.025086527690291405, -0.03743738681077957, ...
5c40efbc-36b9-4dee-8d1e-4fc1c8a16496
Supported arguments: - String representations of IPv6 addresses in standard notation. - String representations of IPv4 addresses (converted to IPv4-mapped IPv6). - Binary representations of IPv6 addresses. Unsupported arguments (return zero IPv6): - Invalid IP address formats. - Malformed IPv6 addresses. - Out-of-ran...
{"source_file": "ip-address-functions.md"}
[ 0.024205777794122696, -0.0287619661539793, -0.05207686498761177, -0.009984627366065979, -0.07171177119016647, 0.026874030008912086, 0.009569560177624226, -0.08243559300899506, -0.005577229429036379, -0.03577571362257004, -0.026363614946603775, -0.015987414866685867, -0.030549317598342896, ...
2bc3c28f-3eb4-4cf2-9b07-342f8cec4a26
description: 'Documentation for functions for splitting strings' sidebar_label: 'String splitting' slug: /sql-reference/functions/splitting-merging-functions title: 'Functions for splitting strings' doc_type: 'reference' import DeprecatedBadge from '@theme/badges/DeprecatedBadge'; Functions for splitting strings ...
{"source_file": "splitting-merging-functions.md"}
[ 0.004587567411363125, -0.027568170800805092, -0.04035002738237381, -0.022352037951350212, -0.06341269612312317, 0.05662168934941292, 0.08172648400068283, 0.09666115790605545, -0.056273479014635086, -0.0005522911087609828, -0.015575099736452103, 0.020989665761590004, 0.02727680280804634, -0...
f969ad92-9ae2-4b4c-b7c7-285416194a95
response title=Response [['Server','nginx'],['Date','Tue, 22 Jan 2019 00:26:14 GMT'],['Content-Type','text/html; charset=UTF-8'],['Connection','keep-alive']] ngrams {#ngrams} Introduced in: v21.11 Splits a UTF-8 string into n-grams of ngramsize symbols. Syntax sql ngrams(s, ngram_size) Arguments s — ...
{"source_file": "splitting-merging-functions.md"}
[ -0.04723342880606651, -0.020209701731801033, -0.008840339258313179, -0.02501547895371914, -0.10100853443145752, 0.01839253306388855, 0.09682875871658325, 0.0624266192317009, -0.013584543950855732, -0.03348985314369202, -0.009497071616351604, 0.008790821768343449, -0.008125643245875835, -0....
22dba1ce-a101-4949-9a50-ba25a146b154
Examples Usage example sql title=Query SELECT splitByNonAlpha('user@domain.com'); response title=Response ['user','domain','com'] splitByRegexp {#splitByRegexp} Introduced in: v21.6 Splits a string which is separated by the provided regular expression into an array of substrings. If the provided regular exp...
{"source_file": "splitting-merging-functions.md"}
[ -0.048046428710222244, 0.010355452075600624, 0.07222433388233185, -0.024629341438412666, -0.029293272644281387, -0.007122161332517862, 0.026911254972219467, 0.05745730176568031, -0.013757715933024883, 0.0036735099274665117, -0.025745708495378494, -0.04524650797247887, 0.032977618277072906, ...
a4c56be4-1b4b-4b1c-be8e-22baa6eda430
Returned value Returns an array of selected substrings of s Array(String) Examples Usage example sql title=Query SELECT splitByString(', ', '1, 2 3, 4,5, abcde'); response title=Response ┌─splitByStrin⋯4,5, abcde')─┐ │ ['1','2 3','4,5','abcde'] │ └───────────────────────────┘ Empty separator sql title=...
{"source_file": "splitting-merging-functions.md"}
[ -0.02335251308977604, -0.03448287770152092, 0.07761386036872864, 0.017260145395994186, -0.04187873378396034, -0.009733609855175018, 0.050272826105356216, 0.03082689270377159, -0.024561243131756783, 0.004040325526148081, -0.05269867554306984, -0.022157985717058182, 0.031215835362672806, -0....
1beba959-0a2b-4f1f-9368-73f793d7baa7
response title=Response ['test1','test2','test3','test4'] Ngram tokenizer sql title=Query SELECT tokens('abc def', 'ngram', 3) AS tokens; response title=Response ['abc','bc ','c d',' de','def']
{"source_file": "splitting-merging-functions.md"}
[ 0.0002021507389144972, -0.037819813936948776, 0.009161391295492649, 0.022069521248340607, -0.10648027807474136, 0.016112560406327248, 0.06283805519342422, 0.08258001506328583, -0.040736790746450424, 0.002045341767370701, 0.00019499989866744727, -0.0745118260383606, 0.01129218004643917, -0....
c2998254-fa0b-4b49-be6b-71d6eec0a86a
description: 'Documentation for Functions for Working with Embedded Dictionaries' sidebar_label: 'Embedded dictionary' slug: /sql-reference/functions/ym-dict-functions title: 'Functions for Working with Embedded Dictionaries' doc_type: 'reference' Functions for Working with Embedded Dictionaries :::note In order ...
{"source_file": "embedded-dict-functions.md"}
[ 0.02732991985976696, -0.0507601834833622, -0.007104202639311552, -0.01788846030831337, 0.0029617417603731155, -0.10039128363132477, -0.009512203745543957, -0.044285137206315994, -0.09630346298217773, -0.03986223787069321, 0.06417009234428406, -0.018963247537612915, 0.03876186162233353, -0....
23ca85e4-e309-400c-ae8f-f4fe908acda9
Otherwise, an empty string. Example Query: sql SELECT regionToName(number::UInt32,'en') FROM numbers(0,5); Result: text ┌─regionToName(CAST(number, 'UInt32'), 'en')─┐ │ │ │ World │ │ USA │...
{"source_file": "embedded-dict-functions.md"}
[ 0.12449022382497787, 0.01078520342707634, 0.018520228564739227, 0.005695592146366835, -0.06018764525651932, 0.000262167101027444, 0.048956092447042465, -0.03777341917157173, -0.0358143225312233, -0.08061010390520096, -0.023907987400889397, -0.13006824254989624, 0.04060365632176399, -0.0467...
7f3b819e-3f18-4ae6-b5a3-e060a242c0b0
Converts a region to an area (type 5 in the geobase). In every other way, this function is the same as 'regionToCity' . Syntax sql regionToArea(id [, geobase]) Parameters id — Region ID from the geobase. UInt32 . geobase — Dictionary key. See Multiple Geobases . String . Optional. Returned value ...
{"source_file": "embedded-dict-functions.md"}
[ 0.13892489671707153, -0.01248875167220831, -0.0010260649723932147, -0.022833464667201042, -0.07413333654403687, 0.005959743168205023, -0.0006205282406881452, -0.013287573121488094, -0.025578979402780533, -0.022005055099725723, -0.05394621193408966, -0.06879179179668427, 0.043557509779930115,...
2675cfee-cf22-4c09-8368-e6c5dd328dd8
0, if there is none. Example Query: sql SELECT DISTINCT regionToName(regionToDistrict(toUInt32(number), 'ua')) FROM system.numbers LIMIT 15 Result: text ┌─regionToName(regionToDistrict(toUInt32(number), \'ua\'))─┐ │ │ │ Central federal district ...
{"source_file": "embedded-dict-functions.md"}
[ 0.11397186666727066, -0.0432983860373497, -0.030688680708408356, -0.01720002293586731, -0.052557338029146194, -0.016590533778071404, 0.02617545612156391, -0.0433976873755455, 0.009835871867835522, -0.03710557892918587, 0.01073999423533678, -0.11317450553178787, 0.06592358648777008, -0.0473...
c4c582d8-c1d4-4110-a9f6-f8aab0e3b31e
0, if there is none. Example Query: sql SELECT regionToName(number::UInt32, 'en'), regionToCountry(number::UInt32) AS id, regionToName(id, 'en') FROM numbers(13); Result: text ┌─regionToName(CAST(number, 'UInt32'), 'en')─┬─id─┬─regionToName(regionToCountry(CAST(number, 'UInt32')), 'en')─┐ │ ...
{"source_file": "embedded-dict-functions.md"}
[ 0.09300639480352402, -0.011357534676790237, -0.04556243121623993, -0.009851915761828423, -0.045321013778448105, -0.008527671918272972, 0.10015344619750977, -0.08337653428316116, -0.04119959846138954, -0.022094644606113434, 0.0098270233720541, -0.1304531842470169, 0.061053719371557236, -0.0...
b56e831c-ed2d-4c16-8083-603b5306e58d
0, if there is none. Example Query: sql SELECT regionToName(number::UInt32, 'en'), regionToContinent(number::UInt32) AS id, regionToName(id, 'en') FROM numbers(13); Result: text ┌─regionToName(CAST(number, 'UInt32'), 'en')─┬─id─┬─regionToName(regionToContinent(CAST(number, 'UInt32')), 'en')─┐ │ ...
{"source_file": "embedded-dict-functions.md"}
[ 0.09134049713611603, -0.025708315894007683, -0.052478592842817307, -0.058435358107089996, -0.04260426387190819, -0.032378606498241425, 0.08435944467782974, -0.05498707666993141, -0.07825727015733719, 0.013199214823544025, -0.02244216576218605, -0.08611132204532623, 0.057769499719142914, -0...
c8d29782-1e3f-4556-a9e2-54c5de44e100
0, if there is none. Example Query: sql SELECT regionToName(number::UInt32, 'en'), regionToTopContinent(number::UInt32) AS id, regionToName(id, 'en') FROM numbers(13); Result: text ┌─regionToName(CAST(number, 'UInt32'), 'en')─┬─id─┬─regionToName(regionToTopContinent(CAST(number, 'UInt32')), 'en')─┐ │ ...
{"source_file": "embedded-dict-functions.md"}
[ 0.09114677459001541, -0.04255818948149681, -0.039053045213222504, -0.0037391213700175285, -0.03744244948029518, -0.010221586562693119, 0.04838672652840614, -0.0967947393655777, -0.051212530583143234, -0.012356004677712917, 0.06036677584052086, -0.1391068696975708, 0.052259575575590134, -0....
f068ec03-e3cb-4c5e-8844-e105f8d4f86d
0, if there is none. Example Query: sql SELECT regionToName(number::UInt32, 'en'), regionToPopulation(number::UInt32) AS id, regionToName(id, 'en') FROM numbers(13); Result: text ┌─regionToName(CAST(number, 'UInt32'), 'en')─┬─population─┐ │ │ 0 │ │ World ...
{"source_file": "embedded-dict-functions.md"}
[ 0.071965791285038, 0.018938187509775162, 0.010236436501145363, -0.023689858615398407, -0.010646517388522625, -0.052981045097112656, 0.08013852685689926, -0.08667750656604767, -0.053710635751485825, -0.04308246448636055, -0.0066381581127643585, -0.10214225202798843, 0.03863157331943512, -0....
f11a22e0-097b-4c53-ac30-4bd7e5448669
Example Query: sql SELECT regionHierarchy(number::UInt32) AS arr, arrayMap(id -> regionToName(id, 'en'), arr) FROM numbers(5); Result: text ┌─arr────────────┬─arrayMap(lambda(tuple(id), regionToName(id, 'en')), regionHierarchy(CAST(number, 'UInt32')))─┐ │ [] │ [] ...
{"source_file": "embedded-dict-functions.md"}
[ 0.1406991183757782, 0.006173544097691774, 0.03245912119746208, -0.06134621053934097, -0.02843322791159153, -0.03477925807237625, 0.06052624061703682, -0.11332207173109055, -0.08161492645740509, 0.005970323923975229, -0.0004969077417626977, -0.05011807382106781, 0.04631241410970688, -0.0257...