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::ArrayExtractFun Struct Reference

Static Public Member Functions

static ScalarFunctionSet GetFunctions ()

Static Public Attributes

static constexpr const char * Name = "array_extract"
static constexpr const char * Parameters = "string::VARCHAR,index::ANY\001struct::STRUCT,entry::VARCHAR\001struct::STRUCT,index::ANY\001list::ANY[],index::ANY"
static constexpr const char * Description = "Extracts a single character from a `string` using a (1-based) `index`.\001Extracts the named `entry` from the `STRUCT`.\001Extracts the entry from an unnamed `STRUCT` (tuple) using an index (1-based).\001Extracts the `index`th (1-based) value from the `list`."
static constexpr const char * Example = "array_extract('DuckDB', 2)\001array_extract({'i': 3, 'v2': 3, 'v3': 0}, 'i')\001array_extract(row(42, 84), 1)\001array_extract([4, 5, 6], 3)"
static constexpr const char * Categories = "string\001struct\001struct\001list"

Member Function Documentation

◆ GetFunctions()

ScalarFunctionSet duckdb::ArrayExtractFun::GetFunctions ( )
static
226940 {
226941 ScalarFunctionSet array_extract_set("array_extract");
226942
226943 // the arguments and return types are actually set in the binder function
226944 ScalarFunction lfun({LogicalType::LIST(LogicalType::TEMPLATE("T")), LogicalType::BIGINT},
226945 LogicalType::TEMPLATE("T"), ListExtractFunction, ListExtractBind, nullptr, ListExtractStats);
226946
226947 ScalarFunction sfun({LogicalType::VARCHAR, LogicalType::BIGINT}, LogicalType::VARCHAR, ListExtractFunction);
226948
226949 array_extract_set.AddFunction(lfun);
226950 array_extract_set.AddFunction(sfun);
226951 array_extract_set.AddFunction(GetKeyExtractFunction());
226952 array_extract_set.AddFunction(GetIndexExtractFunction());
226953 return array_extract_set;
226954}

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