Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::ConcatWsFun Struct Reference

Static Public Member Functions

static ScalarFunction GetFunction ()

Static Public Attributes

static constexpr const char * Name = "concat_ws"
static constexpr const char * Parameters = "separator,string,..."
static constexpr const char * Description = "Concatenates many strings, separated by `separator`. `NULL` inputs are skipped."
static constexpr const char * Example = "concat_ws(', ', 'Banana', 'Apple', 'Melon')"
static constexpr const char * Categories = "string"

Member Function Documentation

◆ GetFunction()

ScalarFunction duckdb::ConcatWsFun::GetFunction ( )
static
232485 {
232486 // concat_ws functions similarly to the concat function, except the result is NULL if the separator is NULL
232487 // if the separator is not NULL, however, NULL values are counted as empty string
232488 // there is one separate rule: there are no separators added between NULL values,
232489 // so the NULL value and empty string are different!
232490 // e.g.:
232491 // concat_ws(',', NULL, NULL) = ""
232492 // concat_ws(',', '', '') = ","
232493
232494 ScalarFunction concat_ws = ScalarFunction("concat_ws", {LogicalType::VARCHAR, LogicalType::ANY},
232495 LogicalType::VARCHAR, ConcatWSFunction, BindConcatWSFunction);
232496 concat_ws.varargs = LogicalType::ANY;
232497 concat_ws.SetNullHandling(FunctionNullHandling::SPECIAL_HANDLING);
232498 return ScalarFunction(concat_ws);
232499}

The documentation for this struct was generated from the following file: