CONCAT (Lakehouse v1)
Returns the string that results from concatenating the arguments. May have one or more arguments. If all arguments are nonbinary strings, the result is a nonbinary string. If the arguments include any binary strings, the result is a binary string. A numeric argument is converted to its equivalent nonbinary string form.
Analyze Syntax
Section titled “Analyze Syntax”func.concat(<expr1>, ...)Analyze Examples
Section titled “Analyze Examples”func.concat('data', 'bend')┌─────────────────────────────┐│ func.concat('data', 'bend') │├─────────────────────────────┤│ databend │└─────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”CONCAT(<expr1>, ...)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr1> | string |
Return Type
Section titled “Return Type”A VARCHAR data type value Or NULL data type.
SQL Examples
Section titled “SQL Examples”SELECT CONCAT('data', 'bend');┌────────────────────────┐│ concat('data', 'bend') │├────────────────────────┤│ databend │└────────────────────────┘
SELECT CONCAT('data', NULL, 'bend');┌──────────────────────────────┐│ CONCAT('data', NULL, 'bend') │├──────────────────────────────┤│ NULL │└──────────────────────────────┘
SELECT CONCAT('14.3');┌────────────────┐│ concat('14.3') │├────────────────┤│ 14.3 │└────────────────┘