Skip to content

Commit

Permalink
Update chsql docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored and carlopi committed Nov 7, 2024
1 parent 39d0543 commit a0fbbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/chsql/docs/function_descriptions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function,fun_type,description,comment,example
"arrayJoin","macro","Unroll an array into multiple rows","","SELECT arrayJoin([1, 2, 3]);"
"arrayMap","macro","Applies a function to each element of an array","","SELECT arrayMap(x -> x + 1, [1, 2, 3]);"
"bitCount","macro","Counts the number of set bits in an integer","","SELECT bitCount(15);"
"ch_scan","table_macro","Query a remote ClickHouse server using HTTP/s API","Returns the query results","SELECT * FROM ch_scan('SELECT version()','https://play.clickhouse.com');;"
"ch_scan","table_macro","Query a remote ClickHouse server using HTTP/s API","Returns the query results","SELECT * FROM ch_scan('SELECT version()','https://play.clickhouse.com', format := 'parquet');"
"domain","macro","Extracts the domain from a URL","","SELECT domain('https://clickhouse.com/docs');"
"empty","macro","Check if a string is empty","","SELECT empty('');"
"extractAllGroups","macro","Extracts all matching groups from a string using a regular expression","","SELECT extractAllGroups('(\\d+)', 'abc123');"
Expand Down Expand Up @@ -86,7 +86,7 @@ function,fun_type,description,comment,example
"tupleMultiply","macro","Performs element-wise multiplication between two tuples","","SELECT tupleMultiply((10, 20), (2, 5));"
"tupleMultiplyByNumber","macro","Multiplies each element of a tuple by a number","","SELECT tupleMultiplyByNumber((10, 20), 3);"
"tuplePlus","macro","Performs element-wise addition between two tuples","","SELECT tuplePlus((1, 2), (3, 4));"
"url","table_macro","Performs queries against remote URLs using the specified format","Supports JSON, CSV, PARQUET, TEXT, BLOB","SELECT url('https://urleng.com/test','JSON');"
"url","table_macro","Performs queries against remote URLs using the specified format","Supports JSON, CSV, PARQUET, TEXT, BLOB","SELECT * FROM url('https://urleng.com/test','JSON');"
"JSONExtract","macro","Extracts JSON data based on key from a JSON object","","SELECT JSONExtract(json_column, 'user.name');"
"JSONExtractString","macro","Extracts JSON data as a VARCHAR from a JSON object","","SELECT JSONExtractString(json_column, 'user.email');"
"JSONExtractUInt","macro","Extracts JSON data as an unsigned integer from a JSON object","","SELECT JSONExtractUInt(json_column, 'user.age');"
Expand Down

0 comments on commit a0fbbff

Please sign in to comment.