[feature-array](array-function) add array constructor function array() (#14250)

* [feature-array](array-function) add array constructor function `array()`

```
mysql>  select array(qid, creationDate) from nested_c_2  limit 10;
+------------------------------+
| array(`qid`, `creationDate`) |
+------------------------------+
| [1000038, 20090616074056]    |
| [1000069, 20090616075005]    |
| [1000130, 20090616080918]    |
| [1000145, 20090616081545]    |
+------------------------------+
10 rows in set (0.01 sec)
```
This commit is contained in:
lihangyu
2022-11-19 10:49:50 +08:00
committed by GitHub
parent 02372ca2ea
commit b4aef889f2
12 changed files with 342 additions and 8 deletions

View File

@ -40,6 +40,7 @@ void register_function_array_range(SimpleFunctionFactory&);
void register_function_array_compact(SimpleFunctionFactory&);
void register_function_array_popback(SimpleFunctionFactory&);
void register_function_array_with_constant(SimpleFunctionFactory&);
void register_function_array_constructor(SimpleFunctionFactory&);
void register_function_array(SimpleFunctionFactory& factory) {
register_function_array_element(factory);
@ -60,6 +61,7 @@ void register_function_array(SimpleFunctionFactory& factory) {
register_function_array_compact(factory);
register_function_array_popback(factory);
register_function_array_with_constant(factory);
register_function_array_constructor(factory);
}
} // namespace doris::vectorized