duckdb 0.8.2-dev4711.0 → 0.8.2-dev5002.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +0 -1
- package/binding.gyp.in +0 -1
- package/package.json +1 -1
- package/src/connection.cpp +10 -23
- package/src/data_chunk.cpp +1 -3
- package/src/database.cpp +4 -9
- package/src/duckdb/extension/icu/icu-datepart.cpp +12 -8
- package/src/duckdb/extension/json/json_functions/json_transform.cpp +8 -6
- package/src/duckdb/extension/json/json_functions.cpp +4 -6
- package/src/duckdb/src/common/enum_util.cpp +10 -5
- package/src/duckdb/src/common/operator/cast_operators.cpp +18 -0
- package/src/duckdb/src/common/radix_partitioning.cpp +1 -1
- package/src/duckdb/src/common/row_operations/row_matcher.cpp +375 -0
- package/src/duckdb/src/common/types/data_chunk.cpp +48 -11
- package/src/duckdb/src/common/types/row/tuple_data_allocator.cpp +3 -3
- package/src/duckdb/src/common/types/row/tuple_data_collection.cpp +28 -17
- package/src/duckdb/src/common/types/row/tuple_data_scatter_gather.cpp +44 -43
- package/src/duckdb/src/common/types/vector.cpp +0 -1
- package/src/duckdb/src/common/types.cpp +1 -1
- package/src/duckdb/src/common/vector_operations/vector_hash.cpp +1 -0
- package/src/duckdb/src/core_functions/function_list.cpp +1 -1
- package/src/duckdb/src/core_functions/scalar/date/date_part.cpp +86 -50
- package/src/duckdb/src/core_functions/scalar/generic/hash.cpp +3 -0
- package/src/duckdb/src/core_functions/scalar/list/array_slice.cpp +5 -1
- package/src/duckdb/src/core_functions/scalar/list/list_sort.cpp +10 -1
- package/src/duckdb/src/core_functions/scalar/map/map_concat.cpp +0 -2
- package/src/duckdb/src/core_functions/scalar/string/repeat.cpp +8 -5
- package/src/duckdb/src/execution/aggregate_hashtable.cpp +5 -4
- package/src/duckdb/src/execution/index/fixed_size_allocator.cpp +13 -0
- package/src/duckdb/src/execution/join_hashtable.cpp +71 -59
- package/src/duckdb/src/execution/nested_loop_join/nested_loop_join_inner.cpp +20 -27
- package/src/duckdb/src/execution/nested_loop_join/nested_loop_join_mark.cpp +21 -9
- package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +7 -7
- package/src/duckdb/src/execution/operator/csv_scanner/csv_reader_options.cpp +1 -1
- package/src/duckdb/src/execution/operator/join/physical_hash_join.cpp +9 -4
- package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +0 -2
- package/src/duckdb/src/execution/reservoir_sample.cpp +3 -9
- package/src/duckdb/src/function/cast/time_casts.cpp +12 -0
- package/src/duckdb/src/function/cast/vector_cast_helpers.cpp +8 -2
- package/src/duckdb/src/function/function_binder.cpp +10 -9
- package/src/duckdb/src/function/pragma/pragma_queries.cpp +3 -0
- package/src/duckdb/src/function/scalar/string/like.cpp +0 -3
- package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
- package/src/duckdb/src/include/duckdb/common/enums/date_part_specifier.hpp +11 -3
- package/src/duckdb/src/include/duckdb/common/multi_file_reader.hpp +5 -0
- package/src/duckdb/src/include/duckdb/common/operator/cast_operators.hpp +27 -0
- package/src/duckdb/src/include/duckdb/common/operator/comparison_operators.hpp +38 -2
- package/src/duckdb/src/include/duckdb/common/row_operations/row_matcher.hpp +63 -0
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_collection.hpp +6 -2
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_states.hpp +2 -2
- package/src/duckdb/src/include/duckdb/common/types/validity_mask.hpp +4 -1
- package/src/duckdb/src/include/duckdb/core_functions/scalar/bit_functions.hpp +4 -4
- package/src/duckdb/src/include/duckdb/core_functions/scalar/blob_functions.hpp +4 -4
- package/src/duckdb/src/include/duckdb/core_functions/scalar/date_functions.hpp +5 -5
- package/src/duckdb/src/include/duckdb/core_functions/scalar/enum_functions.hpp +7 -7
- package/src/duckdb/src/include/duckdb/core_functions/scalar/generic_functions.hpp +12 -12
- package/src/duckdb/src/include/duckdb/core_functions/scalar/list_functions.hpp +12 -12
- package/src/duckdb/src/include/duckdb/core_functions/scalar/map_functions.hpp +3 -3
- package/src/duckdb/src/include/duckdb/core_functions/scalar/math_functions.hpp +33 -33
- package/src/duckdb/src/include/duckdb/core_functions/scalar/operators_functions.hpp +2 -2
- package/src/duckdb/src/include/duckdb/core_functions/scalar/random_functions.hpp +3 -3
- package/src/duckdb/src/include/duckdb/core_functions/scalar/string_functions.hpp +13 -13
- package/src/duckdb/src/include/duckdb/core_functions/scalar/struct_functions.hpp +2 -2
- package/src/duckdb/src/include/duckdb/core_functions/scalar/union_functions.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/aggregate_hashtable.hpp +4 -0
- package/src/duckdb/src/include/duckdb/execution/join_hashtable.hpp +14 -8
- package/src/duckdb/src/include/duckdb/main/relation.hpp +4 -0
- package/src/duckdb/src/include/duckdb/planner/expression_binder/base_select_binder.hpp +1 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_create_table.hpp +1 -2
- package/src/duckdb/src/include/duckdb/planner/operator/logical_delete.hpp +1 -1
- package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +1 -1
- package/src/duckdb/src/include/duckdb/planner/operator/logical_update.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/data_table.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/table/row_group_collection.hpp +1 -1
- package/src/duckdb/src/main/config.cpp +1 -1
- package/src/duckdb/src/main/relation.cpp +10 -0
- package/src/duckdb/src/optimizer/rule/date_part_simplification.cpp +0 -3
- package/src/duckdb/src/planner/binder/query_node/bind_select_node.cpp +28 -6
- package/src/duckdb/src/planner/binder/statement/bind_drop.cpp +3 -0
- package/src/duckdb/src/planner/binder/tableref/plan_joinref.cpp +12 -4
- package/src/duckdb/src/planner/expression_binder/base_select_binder.cpp +14 -6
- package/src/duckdb/src/planner/operator/logical_create_table.cpp +3 -3
- package/src/duckdb/src/planner/operator/logical_delete.cpp +3 -2
- package/src/duckdb/src/planner/operator/logical_insert.cpp +3 -2
- package/src/duckdb/src/planner/operator/logical_update.cpp +3 -2
- package/src/duckdb/src/storage/compression/validity_uncompressed.cpp +2 -3
- package/src/duckdb/src/storage/data_table.cpp +18 -8
- package/src/duckdb/src/storage/local_storage.cpp +2 -3
- package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +64 -80
- package/src/duckdb/src/storage/storage_manager.cpp +6 -2
- package/src/duckdb/src/storage/table/row_group.cpp +6 -0
- package/src/duckdb/src/storage/table/row_group_collection.cpp +4 -3
- package/src/duckdb/src/storage/table/struct_column_data.cpp +2 -0
- package/src/duckdb/src/transaction/duck_transaction.cpp +1 -0
- package/src/duckdb/ub_src_common_row_operations.cpp +1 -1
- package/src/statement.cpp +2 -4
- package/test/database_fail.test.ts +6 -0
- package/src/duckdb/src/common/row_operations/row_match.cpp +0 -359
@@ -27,7 +27,7 @@ struct AliasFun {
|
|
27
27
|
struct CurrentSettingFun {
|
28
28
|
static constexpr const char *Name = "current_setting";
|
29
29
|
static constexpr const char *Parameters = "setting_name";
|
30
|
-
static constexpr const char *Description = "
|
30
|
+
static constexpr const char *Description = "Returns the current value of the configuration setting";
|
31
31
|
static constexpr const char *Example = "current_setting('access_mode')";
|
32
32
|
|
33
33
|
static ScalarFunction GetFunction();
|
@@ -45,7 +45,7 @@ struct ErrorFun {
|
|
45
45
|
struct HashFun {
|
46
46
|
static constexpr const char *Name = "hash";
|
47
47
|
static constexpr const char *Parameters = "param";
|
48
|
-
static constexpr const char *Description = "Returns an integer with the hash of the value. Note that this is not a cryptographic hash
|
48
|
+
static constexpr const char *Description = "Returns an integer with the hash of the value. Note that this is not a cryptographic hash";
|
49
49
|
static constexpr const char *Example = "hash('🦆')";
|
50
50
|
|
51
51
|
static ScalarFunction GetFunction();
|
@@ -54,7 +54,7 @@ struct HashFun {
|
|
54
54
|
struct LeastFun {
|
55
55
|
static constexpr const char *Name = "least";
|
56
56
|
static constexpr const char *Parameters = "arg1, arg2, ...";
|
57
|
-
static constexpr const char *Description = "Returns the lowest value of the set of input parameters
|
57
|
+
static constexpr const char *Description = "Returns the lowest value of the set of input parameters";
|
58
58
|
static constexpr const char *Example = "least(42, 84)";
|
59
59
|
|
60
60
|
static ScalarFunctionSet GetFunctions();
|
@@ -63,7 +63,7 @@ struct LeastFun {
|
|
63
63
|
struct GreatestFun {
|
64
64
|
static constexpr const char *Name = "greatest";
|
65
65
|
static constexpr const char *Parameters = "arg1, arg2, ...";
|
66
|
-
static constexpr const char *Description = "Returns the highest value of the set of input parameters
|
66
|
+
static constexpr const char *Description = "Returns the highest value of the set of input parameters";
|
67
67
|
static constexpr const char *Example = "greatest(42, 84)";
|
68
68
|
|
69
69
|
static ScalarFunctionSet GetFunctions();
|
@@ -72,7 +72,7 @@ struct GreatestFun {
|
|
72
72
|
struct StatsFun {
|
73
73
|
static constexpr const char *Name = "stats";
|
74
74
|
static constexpr const char *Parameters = "expression";
|
75
|
-
static constexpr const char *Description = "Returns a string with statistics about the expression. Expression can be a column, constant, or SQL expression
|
75
|
+
static constexpr const char *Description = "Returns a string with statistics about the expression. Expression can be a column, constant, or SQL expression";
|
76
76
|
static constexpr const char *Example = "stats(5)";
|
77
77
|
|
78
78
|
static ScalarFunction GetFunction();
|
@@ -81,7 +81,7 @@ struct StatsFun {
|
|
81
81
|
struct TypeOfFun {
|
82
82
|
static constexpr const char *Name = "typeof";
|
83
83
|
static constexpr const char *Parameters = "expression";
|
84
|
-
static constexpr const char *Description = "Returns the name of the data type of the result of the expression
|
84
|
+
static constexpr const char *Description = "Returns the name of the data type of the result of the expression";
|
85
85
|
static constexpr const char *Example = "typeof('abc')";
|
86
86
|
|
87
87
|
static ScalarFunction GetFunction();
|
@@ -99,7 +99,7 @@ struct CurrentQueryFun {
|
|
99
99
|
struct CurrentSchemaFun {
|
100
100
|
static constexpr const char *Name = "current_schema";
|
101
101
|
static constexpr const char *Parameters = "";
|
102
|
-
static constexpr const char *Description = "
|
102
|
+
static constexpr const char *Description = "Returns the name of the currently active schema. Default is main";
|
103
103
|
static constexpr const char *Example = "current_schema()";
|
104
104
|
|
105
105
|
static ScalarFunction GetFunction();
|
@@ -108,7 +108,7 @@ struct CurrentSchemaFun {
|
|
108
108
|
struct CurrentSchemasFun {
|
109
109
|
static constexpr const char *Name = "current_schemas";
|
110
110
|
static constexpr const char *Parameters = "include_implicit";
|
111
|
-
static constexpr const char *Description = "
|
111
|
+
static constexpr const char *Description = "Returns list of schemas. Pass a parameter of True to include implicit schemas";
|
112
112
|
static constexpr const char *Example = "current_schemas(true)";
|
113
113
|
|
114
114
|
static ScalarFunction GetFunction();
|
@@ -117,7 +117,7 @@ struct CurrentSchemasFun {
|
|
117
117
|
struct CurrentDatabaseFun {
|
118
118
|
static constexpr const char *Name = "current_database";
|
119
119
|
static constexpr const char *Parameters = "";
|
120
|
-
static constexpr const char *Description = "
|
120
|
+
static constexpr const char *Description = "Returns the name of the currently active database";
|
121
121
|
static constexpr const char *Example = "current_database()";
|
122
122
|
|
123
123
|
static ScalarFunction GetFunction();
|
@@ -126,7 +126,7 @@ struct CurrentDatabaseFun {
|
|
126
126
|
struct InSearchPathFun {
|
127
127
|
static constexpr const char *Name = "in_search_path";
|
128
128
|
static constexpr const char *Parameters = "database_name,schema_name";
|
129
|
-
static constexpr const char *Description = "Returns whether or not the database/schema are in the search path
|
129
|
+
static constexpr const char *Description = "Returns whether or not the database/schema are in the search path";
|
130
130
|
static constexpr const char *Example = "in_search_path('memory', 'main')";
|
131
131
|
|
132
132
|
static ScalarFunction GetFunction();
|
@@ -135,7 +135,7 @@ struct InSearchPathFun {
|
|
135
135
|
struct CurrentTransactionIdFun {
|
136
136
|
static constexpr const char *Name = "txid_current";
|
137
137
|
static constexpr const char *Parameters = "";
|
138
|
-
static constexpr const char *Description = "Returns the current transaction’s ID (a BIGINT). It will assign a new one if the current transaction does not have one already
|
138
|
+
static constexpr const char *Description = "Returns the current transaction’s ID (a BIGINT). It will assign a new one if the current transaction does not have one already";
|
139
139
|
static constexpr const char *Example = "txid_current()";
|
140
140
|
|
141
141
|
static ScalarFunction GetFunction();
|
@@ -144,7 +144,7 @@ struct CurrentTransactionIdFun {
|
|
144
144
|
struct VersionFun {
|
145
145
|
static constexpr const char *Name = "version";
|
146
146
|
static constexpr const char *Parameters = "";
|
147
|
-
static constexpr const char *Description = "
|
147
|
+
static constexpr const char *Description = "Returns the currently active version of DuckDB in this format: v0.3.2 ";
|
148
148
|
static constexpr const char *Example = "version()";
|
149
149
|
|
150
150
|
static ScalarFunction GetFunction();
|
@@ -27,7 +27,7 @@ struct ListFlattenFun {
|
|
27
27
|
struct ListAggregateFun {
|
28
28
|
static constexpr const char *Name = "list_aggregate";
|
29
29
|
static constexpr const char *Parameters = "list,name";
|
30
|
-
static constexpr const char *Description = "Executes the aggregate function name on the elements of list
|
30
|
+
static constexpr const char *Description = "Executes the aggregate function name on the elements of list";
|
31
31
|
static constexpr const char *Example = "list_aggregate([1, 2, NULL], 'min')";
|
32
32
|
|
33
33
|
static ScalarFunction GetFunction();
|
@@ -60,7 +60,7 @@ struct AggregateFun {
|
|
60
60
|
struct ListDistinctFun {
|
61
61
|
static constexpr const char *Name = "list_distinct";
|
62
62
|
static constexpr const char *Parameters = "list";
|
63
|
-
static constexpr const char *Description = "Removes all duplicates and NULLs from a list. Does not preserve the original order
|
63
|
+
static constexpr const char *Description = "Removes all duplicates and NULLs from a list. Does not preserve the original order";
|
64
64
|
static constexpr const char *Example = "list_distinct([1, 1, NULL, -3, 1, 5])";
|
65
65
|
|
66
66
|
static ScalarFunction GetFunction();
|
@@ -75,7 +75,7 @@ struct ArrayDistinctFun {
|
|
75
75
|
struct ListUniqueFun {
|
76
76
|
static constexpr const char *Name = "list_unique";
|
77
77
|
static constexpr const char *Parameters = "list";
|
78
|
-
static constexpr const char *Description = "Counts the unique elements of a list
|
78
|
+
static constexpr const char *Description = "Counts the unique elements of a list";
|
79
79
|
static constexpr const char *Example = "list_unique([1, 1, NULL, -3, 1, 5])";
|
80
80
|
|
81
81
|
static ScalarFunction GetFunction();
|
@@ -90,7 +90,7 @@ struct ArrayUniqueFun {
|
|
90
90
|
struct ListValueFun {
|
91
91
|
static constexpr const char *Name = "list_value";
|
92
92
|
static constexpr const char *Parameters = "any,...";
|
93
|
-
static constexpr const char *Description = "Create a LIST containing the argument values
|
93
|
+
static constexpr const char *Description = "Create a LIST containing the argument values";
|
94
94
|
static constexpr const char *Example = "list_value(4, 5, 6)";
|
95
95
|
|
96
96
|
static ScalarFunction GetFunction();
|
@@ -105,7 +105,7 @@ struct ListPackFun {
|
|
105
105
|
struct ListSliceFun {
|
106
106
|
static constexpr const char *Name = "list_slice";
|
107
107
|
static constexpr const char *Parameters = "list,begin,end[,step]";
|
108
|
-
static constexpr const char *Description = "Extract a sublist using slice conventions. Negative values are accepted
|
108
|
+
static constexpr const char *Description = "Extract a sublist using slice conventions. Negative values are accepted";
|
109
109
|
static constexpr const char *Example = "list_slice(l, 2, 4)";
|
110
110
|
|
111
111
|
static ScalarFunctionSet GetFunctions();
|
@@ -120,7 +120,7 @@ struct ArraySliceFun {
|
|
120
120
|
struct ListSortFun {
|
121
121
|
static constexpr const char *Name = "list_sort";
|
122
122
|
static constexpr const char *Parameters = "list";
|
123
|
-
static constexpr const char *Description = "Sorts the elements of the list
|
123
|
+
static constexpr const char *Description = "Sorts the elements of the list";
|
124
124
|
static constexpr const char *Example = "list_sort([3, 6, 1, 2])";
|
125
125
|
|
126
126
|
static ScalarFunctionSet GetFunctions();
|
@@ -135,7 +135,7 @@ struct ArraySortFun {
|
|
135
135
|
struct ListReverseSortFun {
|
136
136
|
static constexpr const char *Name = "list_reverse_sort";
|
137
137
|
static constexpr const char *Parameters = "list";
|
138
|
-
static constexpr const char *Description = "Sorts the elements of the list in reverse order
|
138
|
+
static constexpr const char *Description = "Sorts the elements of the list in reverse order";
|
139
139
|
static constexpr const char *Example = "list_reverse_sort([3, 6, 1, 2])";
|
140
140
|
|
141
141
|
static ScalarFunctionSet GetFunctions();
|
@@ -150,7 +150,7 @@ struct ArrayReverseSortFun {
|
|
150
150
|
struct ListTransformFun {
|
151
151
|
static constexpr const char *Name = "list_transform";
|
152
152
|
static constexpr const char *Parameters = "list,lambda";
|
153
|
-
static constexpr const char *Description = "Returns a list that is the result of applying the lambda function to each element of the input list. See the Lambda Functions section for more details
|
153
|
+
static constexpr const char *Description = "Returns a list that is the result of applying the lambda function to each element of the input list. See the Lambda Functions section for more details";
|
154
154
|
static constexpr const char *Example = "list_transform([1, 2, 3], x -> x + 1)";
|
155
155
|
|
156
156
|
static ScalarFunction GetFunction();
|
@@ -183,7 +183,7 @@ struct ApplyFun {
|
|
183
183
|
struct ListFilterFun {
|
184
184
|
static constexpr const char *Name = "list_filter";
|
185
185
|
static constexpr const char *Parameters = "list,lambda";
|
186
|
-
static constexpr const char *Description = "Constructs a list from those elements of the input list for which the lambda function returns true
|
186
|
+
static constexpr const char *Description = "Constructs a list from those elements of the input list for which the lambda function returns true";
|
187
187
|
static constexpr const char *Example = "list_filter([3, 4, 5], x -> x > 4)";
|
188
188
|
|
189
189
|
static ScalarFunction GetFunction();
|
@@ -222,7 +222,7 @@ struct ListRangeFun {
|
|
222
222
|
struct ListCosineSimilarityFun {
|
223
223
|
static constexpr const char *Name = "list_cosine_similarity";
|
224
224
|
static constexpr const char *Parameters = "list1,list2";
|
225
|
-
static constexpr const char *Description = "Compute the cosine similarity between two lists
|
225
|
+
static constexpr const char *Description = "Compute the cosine similarity between two lists";
|
226
226
|
static constexpr const char *Example = "list_cosine_similarity([1, 2, 3], [1, 2, 3])";
|
227
227
|
|
228
228
|
static ScalarFunctionSet GetFunctions();
|
@@ -237,7 +237,7 @@ struct ListCosineSimilarityFunAlias {
|
|
237
237
|
struct ListDistanceFun {
|
238
238
|
static constexpr const char *Name = "list_distance";
|
239
239
|
static constexpr const char *Parameters = "list1,list2";
|
240
|
-
static constexpr const char *Description = "Compute the distance between two lists
|
240
|
+
static constexpr const char *Description = "Compute the distance between two lists";
|
241
241
|
static constexpr const char *Example = "list_distance([1, 2, 3], [1, 2, 3])";
|
242
242
|
|
243
243
|
static ScalarFunctionSet GetFunctions();
|
@@ -252,7 +252,7 @@ struct ListDistanceFunAlias {
|
|
252
252
|
struct ListInnerProductFun {
|
253
253
|
static constexpr const char *Name = "list_inner_product";
|
254
254
|
static constexpr const char *Parameters = "list1,list2";
|
255
|
-
static constexpr const char *Description = "Compute the inner product between two lists
|
255
|
+
static constexpr const char *Description = "Compute the inner product between two lists";
|
256
256
|
static constexpr const char *Example = "list_inner_product([1, 2, 3], [1, 2, 3])";
|
257
257
|
|
258
258
|
static ScalarFunctionSet GetFunctions();
|
@@ -18,7 +18,7 @@ namespace duckdb {
|
|
18
18
|
struct CardinalityFun {
|
19
19
|
static constexpr const char *Name = "cardinality";
|
20
20
|
static constexpr const char *Parameters = "map";
|
21
|
-
static constexpr const char *Description = "
|
21
|
+
static constexpr const char *Description = "Returns the size of the map (or the number of entries in the map)";
|
22
22
|
static constexpr const char *Example = "cardinality( map([4, 2], ['a', 'b']) );";
|
23
23
|
|
24
24
|
static ScalarFunction GetFunction();
|
@@ -27,7 +27,7 @@ struct CardinalityFun {
|
|
27
27
|
struct MapFun {
|
28
28
|
static constexpr const char *Name = "map";
|
29
29
|
static constexpr const char *Parameters = "keys,values";
|
30
|
-
static constexpr const char *Description = "Creates a map from a set of keys and values
|
30
|
+
static constexpr const char *Description = "Creates a map from a set of keys and values";
|
31
31
|
static constexpr const char *Example = "map(['key1', 'key2'], ['val1', 'val2'])";
|
32
32
|
|
33
33
|
static ScalarFunction GetFunction();
|
@@ -45,7 +45,7 @@ struct MapEntriesFun {
|
|
45
45
|
struct MapExtractFun {
|
46
46
|
static constexpr const char *Name = "map_extract";
|
47
47
|
static constexpr const char *Parameters = "map,key";
|
48
|
-
static constexpr const char *Description = "
|
48
|
+
static constexpr const char *Description = "Returns a list containing the value for a given key or an empty list if the key is not contained in the map. The type of the key provided in the second parameter must match the type of the map’s keys else an error is returned";
|
49
49
|
static constexpr const char *Example = "map_extract(map(['key'], ['val']), 'key')";
|
50
50
|
|
51
51
|
static ScalarFunction GetFunction();
|
@@ -18,7 +18,7 @@ namespace duckdb {
|
|
18
18
|
struct AbsOperatorFun {
|
19
19
|
static constexpr const char *Name = "@";
|
20
20
|
static constexpr const char *Parameters = "x";
|
21
|
-
static constexpr const char *Description = "
|
21
|
+
static constexpr const char *Description = "Absolute value";
|
22
22
|
static constexpr const char *Example = "abs(-17.4)";
|
23
23
|
|
24
24
|
static ScalarFunctionSet GetFunctions();
|
@@ -33,7 +33,7 @@ struct AbsFun {
|
|
33
33
|
struct PowOperatorFun {
|
34
34
|
static constexpr const char *Name = "**";
|
35
35
|
static constexpr const char *Parameters = "x,y";
|
36
|
-
static constexpr const char *Description = "
|
36
|
+
static constexpr const char *Description = "Computes x to the power of y";
|
37
37
|
static constexpr const char *Example = "pow(2, 3)";
|
38
38
|
|
39
39
|
static ScalarFunction GetFunction();
|
@@ -60,7 +60,7 @@ struct PowOperatorFunAlias {
|
|
60
60
|
struct FactorialOperatorFun {
|
61
61
|
static constexpr const char *Name = "!__postfix";
|
62
62
|
static constexpr const char *Parameters = "x";
|
63
|
-
static constexpr const char *Description = "
|
63
|
+
static constexpr const char *Description = "Factorial of x. Computes the product of the current integer and all integers below it";
|
64
64
|
static constexpr const char *Example = "4!";
|
65
65
|
|
66
66
|
static ScalarFunction GetFunction();
|
@@ -75,7 +75,7 @@ struct FactorialFun {
|
|
75
75
|
struct AcosFun {
|
76
76
|
static constexpr const char *Name = "acos";
|
77
77
|
static constexpr const char *Parameters = "x";
|
78
|
-
static constexpr const char *Description = "
|
78
|
+
static constexpr const char *Description = "Computes the arccosine of x";
|
79
79
|
static constexpr const char *Example = "acos(0.5)";
|
80
80
|
|
81
81
|
static ScalarFunction GetFunction();
|
@@ -84,7 +84,7 @@ struct AcosFun {
|
|
84
84
|
struct AsinFun {
|
85
85
|
static constexpr const char *Name = "asin";
|
86
86
|
static constexpr const char *Parameters = "x";
|
87
|
-
static constexpr const char *Description = "
|
87
|
+
static constexpr const char *Description = "Computes the arcsine of x";
|
88
88
|
static constexpr const char *Example = "asin(0.5)";
|
89
89
|
|
90
90
|
static ScalarFunction GetFunction();
|
@@ -93,7 +93,7 @@ struct AsinFun {
|
|
93
93
|
struct AtanFun {
|
94
94
|
static constexpr const char *Name = "atan";
|
95
95
|
static constexpr const char *Parameters = "x";
|
96
|
-
static constexpr const char *Description = "
|
96
|
+
static constexpr const char *Description = "Computes the arctangent of x";
|
97
97
|
static constexpr const char *Example = "atan(0.5)";
|
98
98
|
|
99
99
|
static ScalarFunction GetFunction();
|
@@ -102,7 +102,7 @@ struct AtanFun {
|
|
102
102
|
struct Atan2Fun {
|
103
103
|
static constexpr const char *Name = "atan2";
|
104
104
|
static constexpr const char *Parameters = "y,x";
|
105
|
-
static constexpr const char *Description = "
|
105
|
+
static constexpr const char *Description = "Computes the arctangent (y, x)";
|
106
106
|
static constexpr const char *Example = "atan2(1.0, 0.0)";
|
107
107
|
|
108
108
|
static ScalarFunction GetFunction();
|
@@ -111,7 +111,7 @@ struct Atan2Fun {
|
|
111
111
|
struct BitCountFun {
|
112
112
|
static constexpr const char *Name = "bit_count";
|
113
113
|
static constexpr const char *Parameters = "x";
|
114
|
-
static constexpr const char *Description = "
|
114
|
+
static constexpr const char *Description = "Returns the number of bits that are set";
|
115
115
|
static constexpr const char *Example = "bit_count(31)";
|
116
116
|
|
117
117
|
static ScalarFunctionSet GetFunctions();
|
@@ -120,7 +120,7 @@ struct BitCountFun {
|
|
120
120
|
struct CbrtFun {
|
121
121
|
static constexpr const char *Name = "cbrt";
|
122
122
|
static constexpr const char *Parameters = "x";
|
123
|
-
static constexpr const char *Description = "
|
123
|
+
static constexpr const char *Description = "Returns the cube root of x";
|
124
124
|
static constexpr const char *Example = "cbrt(8)";
|
125
125
|
|
126
126
|
static ScalarFunction GetFunction();
|
@@ -129,7 +129,7 @@ struct CbrtFun {
|
|
129
129
|
struct CeilFun {
|
130
130
|
static constexpr const char *Name = "ceil";
|
131
131
|
static constexpr const char *Parameters = "x";
|
132
|
-
static constexpr const char *Description = "
|
132
|
+
static constexpr const char *Description = "Rounds the number up";
|
133
133
|
static constexpr const char *Example = "ceil(17.4)";
|
134
134
|
|
135
135
|
static ScalarFunctionSet GetFunctions();
|
@@ -144,7 +144,7 @@ struct CeilingFun {
|
|
144
144
|
struct CosFun {
|
145
145
|
static constexpr const char *Name = "cos";
|
146
146
|
static constexpr const char *Parameters = "x";
|
147
|
-
static constexpr const char *Description = "
|
147
|
+
static constexpr const char *Description = "Computes the cos of x";
|
148
148
|
static constexpr const char *Example = "cos(90)";
|
149
149
|
|
150
150
|
static ScalarFunction GetFunction();
|
@@ -153,7 +153,7 @@ struct CosFun {
|
|
153
153
|
struct CotFun {
|
154
154
|
static constexpr const char *Name = "cot";
|
155
155
|
static constexpr const char *Parameters = "x";
|
156
|
-
static constexpr const char *Description = "
|
156
|
+
static constexpr const char *Description = "Computes the cotangent of x";
|
157
157
|
static constexpr const char *Example = "cot(0.5)";
|
158
158
|
|
159
159
|
static ScalarFunction GetFunction();
|
@@ -162,7 +162,7 @@ struct CotFun {
|
|
162
162
|
struct DegreesFun {
|
163
163
|
static constexpr const char *Name = "degrees";
|
164
164
|
static constexpr const char *Parameters = "x";
|
165
|
-
static constexpr const char *Description = "
|
165
|
+
static constexpr const char *Description = "Converts radians to degrees";
|
166
166
|
static constexpr const char *Example = "degrees(pi())";
|
167
167
|
|
168
168
|
static ScalarFunction GetFunction();
|
@@ -171,7 +171,7 @@ struct DegreesFun {
|
|
171
171
|
struct EvenFun {
|
172
172
|
static constexpr const char *Name = "even";
|
173
173
|
static constexpr const char *Parameters = "x";
|
174
|
-
static constexpr const char *Description = "
|
174
|
+
static constexpr const char *Description = "Rounds x to next even number by rounding away from zero";
|
175
175
|
static constexpr const char *Example = "even(2.9)";
|
176
176
|
|
177
177
|
static ScalarFunction GetFunction();
|
@@ -180,7 +180,7 @@ struct EvenFun {
|
|
180
180
|
struct ExpFun {
|
181
181
|
static constexpr const char *Name = "exp";
|
182
182
|
static constexpr const char *Parameters = "x";
|
183
|
-
static constexpr const char *Description = "
|
183
|
+
static constexpr const char *Description = "Computes e to the power of x";
|
184
184
|
static constexpr const char *Example = "exp(1)";
|
185
185
|
|
186
186
|
static ScalarFunction GetFunction();
|
@@ -189,7 +189,7 @@ struct ExpFun {
|
|
189
189
|
struct FloorFun {
|
190
190
|
static constexpr const char *Name = "floor";
|
191
191
|
static constexpr const char *Parameters = "x";
|
192
|
-
static constexpr const char *Description = "
|
192
|
+
static constexpr const char *Description = "Rounds the number down";
|
193
193
|
static constexpr const char *Example = "floor(17.4)";
|
194
194
|
|
195
195
|
static ScalarFunctionSet GetFunctions();
|
@@ -225,7 +225,7 @@ struct IsNanFun {
|
|
225
225
|
struct GammaFun {
|
226
226
|
static constexpr const char *Name = "gamma";
|
227
227
|
static constexpr const char *Parameters = "x";
|
228
|
-
static constexpr const char *Description = "
|
228
|
+
static constexpr const char *Description = "Interpolation of (x-1) factorial (so decimal inputs are allowed)";
|
229
229
|
static constexpr const char *Example = "gamma(5.5)";
|
230
230
|
|
231
231
|
static ScalarFunction GetFunction();
|
@@ -234,7 +234,7 @@ struct GammaFun {
|
|
234
234
|
struct GreatestCommonDivisorFun {
|
235
235
|
static constexpr const char *Name = "greatest_common_divisor";
|
236
236
|
static constexpr const char *Parameters = "x,y";
|
237
|
-
static constexpr const char *Description = "
|
237
|
+
static constexpr const char *Description = "Computes the greatest common divisor of x and y";
|
238
238
|
static constexpr const char *Example = "greatest_common_divisor(42, 57)";
|
239
239
|
|
240
240
|
static ScalarFunctionSet GetFunctions();
|
@@ -249,7 +249,7 @@ struct GcdFun {
|
|
249
249
|
struct LeastCommonMultipleFun {
|
250
250
|
static constexpr const char *Name = "least_common_multiple";
|
251
251
|
static constexpr const char *Parameters = "x,y";
|
252
|
-
static constexpr const char *Description = "
|
252
|
+
static constexpr const char *Description = "Computes the least common multiple of x and y";
|
253
253
|
static constexpr const char *Example = "least_common_multiple(42, 57)";
|
254
254
|
|
255
255
|
static ScalarFunctionSet GetFunctions();
|
@@ -264,7 +264,7 @@ struct LcmFun {
|
|
264
264
|
struct LogGammaFun {
|
265
265
|
static constexpr const char *Name = "lgamma";
|
266
266
|
static constexpr const char *Parameters = "x";
|
267
|
-
static constexpr const char *Description = "
|
267
|
+
static constexpr const char *Description = "Computes the log of the gamma function";
|
268
268
|
static constexpr const char *Example = "lgamma(2)";
|
269
269
|
|
270
270
|
static ScalarFunction GetFunction();
|
@@ -273,7 +273,7 @@ struct LogGammaFun {
|
|
273
273
|
struct LnFun {
|
274
274
|
static constexpr const char *Name = "ln";
|
275
275
|
static constexpr const char *Parameters = "x";
|
276
|
-
static constexpr const char *Description = "
|
276
|
+
static constexpr const char *Description = "Computes the natural logarithm of x";
|
277
277
|
static constexpr const char *Example = "ln(2)";
|
278
278
|
|
279
279
|
static ScalarFunction GetFunction();
|
@@ -282,7 +282,7 @@ struct LnFun {
|
|
282
282
|
struct Log2Fun {
|
283
283
|
static constexpr const char *Name = "log2";
|
284
284
|
static constexpr const char *Parameters = "x";
|
285
|
-
static constexpr const char *Description = "
|
285
|
+
static constexpr const char *Description = "Computes the 2-log of x";
|
286
286
|
static constexpr const char *Example = "log2(8)";
|
287
287
|
|
288
288
|
static ScalarFunction GetFunction();
|
@@ -291,7 +291,7 @@ struct Log2Fun {
|
|
291
291
|
struct Log10Fun {
|
292
292
|
static constexpr const char *Name = "log10";
|
293
293
|
static constexpr const char *Parameters = "x";
|
294
|
-
static constexpr const char *Description = "
|
294
|
+
static constexpr const char *Description = "Computes the 10-log of x";
|
295
295
|
static constexpr const char *Example = "log10(1000)";
|
296
296
|
|
297
297
|
static ScalarFunction GetFunction();
|
@@ -306,7 +306,7 @@ struct LogFun {
|
|
306
306
|
struct NextAfterFun {
|
307
307
|
static constexpr const char *Name = "nextafter";
|
308
308
|
static constexpr const char *Parameters = "x, y";
|
309
|
-
static constexpr const char *Description = "
|
309
|
+
static constexpr const char *Description = "Returns the next floating point value after x in the direction of y";
|
310
310
|
static constexpr const char *Example = "nextafter(1::float, 2::float)";
|
311
311
|
|
312
312
|
static ScalarFunctionSet GetFunctions();
|
@@ -315,7 +315,7 @@ struct NextAfterFun {
|
|
315
315
|
struct PiFun {
|
316
316
|
static constexpr const char *Name = "pi";
|
317
317
|
static constexpr const char *Parameters = "";
|
318
|
-
static constexpr const char *Description = "
|
318
|
+
static constexpr const char *Description = "Returns the value of pi";
|
319
319
|
static constexpr const char *Example = "pi()";
|
320
320
|
|
321
321
|
static ScalarFunction GetFunction();
|
@@ -324,7 +324,7 @@ struct PiFun {
|
|
324
324
|
struct RadiansFun {
|
325
325
|
static constexpr const char *Name = "radians";
|
326
326
|
static constexpr const char *Parameters = "x";
|
327
|
-
static constexpr const char *Description = "
|
327
|
+
static constexpr const char *Description = "Converts degrees to radians";
|
328
328
|
static constexpr const char *Example = "radians(90)";
|
329
329
|
|
330
330
|
static ScalarFunction GetFunction();
|
@@ -333,7 +333,7 @@ struct RadiansFun {
|
|
333
333
|
struct RoundFun {
|
334
334
|
static constexpr const char *Name = "round";
|
335
335
|
static constexpr const char *Parameters = "x,precision";
|
336
|
-
static constexpr const char *Description = "
|
336
|
+
static constexpr const char *Description = "Rounds x to s decimal places";
|
337
337
|
static constexpr const char *Example = "round(42.4332, 2)";
|
338
338
|
|
339
339
|
static ScalarFunctionSet GetFunctions();
|
@@ -342,7 +342,7 @@ struct RoundFun {
|
|
342
342
|
struct SignFun {
|
343
343
|
static constexpr const char *Name = "sign";
|
344
344
|
static constexpr const char *Parameters = "x";
|
345
|
-
static constexpr const char *Description = "
|
345
|
+
static constexpr const char *Description = "Returns the sign of x as -1, 0 or 1";
|
346
346
|
static constexpr const char *Example = "sign(-349)";
|
347
347
|
|
348
348
|
static ScalarFunctionSet GetFunctions();
|
@@ -351,7 +351,7 @@ struct SignFun {
|
|
351
351
|
struct SignBitFun {
|
352
352
|
static constexpr const char *Name = "signbit";
|
353
353
|
static constexpr const char *Parameters = "x";
|
354
|
-
static constexpr const char *Description = "
|
354
|
+
static constexpr const char *Description = "Returns whether the signbit is set or not";
|
355
355
|
static constexpr const char *Example = "signbit(-0.0)";
|
356
356
|
|
357
357
|
static ScalarFunctionSet GetFunctions();
|
@@ -360,7 +360,7 @@ struct SignBitFun {
|
|
360
360
|
struct SinFun {
|
361
361
|
static constexpr const char *Name = "sin";
|
362
362
|
static constexpr const char *Parameters = "x";
|
363
|
-
static constexpr const char *Description = "
|
363
|
+
static constexpr const char *Description = "Computes the sin of x";
|
364
364
|
static constexpr const char *Example = "sin(90)";
|
365
365
|
|
366
366
|
static ScalarFunction GetFunction();
|
@@ -369,7 +369,7 @@ struct SinFun {
|
|
369
369
|
struct SqrtFun {
|
370
370
|
static constexpr const char *Name = "sqrt";
|
371
371
|
static constexpr const char *Parameters = "x";
|
372
|
-
static constexpr const char *Description = "
|
372
|
+
static constexpr const char *Description = "Returns the square root of x";
|
373
373
|
static constexpr const char *Example = "sqrt(4)";
|
374
374
|
|
375
375
|
static ScalarFunction GetFunction();
|
@@ -378,7 +378,7 @@ struct SqrtFun {
|
|
378
378
|
struct TanFun {
|
379
379
|
static constexpr const char *Name = "tan";
|
380
380
|
static constexpr const char *Parameters = "x";
|
381
|
-
static constexpr const char *Description = "
|
381
|
+
static constexpr const char *Description = "Computes the tan of x";
|
382
382
|
static constexpr const char *Example = "tan(90)";
|
383
383
|
|
384
384
|
static ScalarFunction GetFunction();
|
@@ -387,7 +387,7 @@ struct TanFun {
|
|
387
387
|
struct TruncFun {
|
388
388
|
static constexpr const char *Name = "trunc";
|
389
389
|
static constexpr const char *Parameters = "x";
|
390
|
-
static constexpr const char *Description = "
|
390
|
+
static constexpr const char *Description = "Truncates the number";
|
391
391
|
static constexpr const char *Example = "trunc(17.4)";
|
392
392
|
|
393
393
|
static ScalarFunctionSet GetFunctions();
|
@@ -45,7 +45,7 @@ struct BitwiseNotFun {
|
|
45
45
|
struct LeftShiftFun {
|
46
46
|
static constexpr const char *Name = "<<";
|
47
47
|
static constexpr const char *Parameters = "input";
|
48
|
-
static constexpr const char *Description = "
|
48
|
+
static constexpr const char *Description = "Bitwise shift left";
|
49
49
|
static constexpr const char *Example = "1 << 4";
|
50
50
|
|
51
51
|
static ScalarFunctionSet GetFunctions();
|
@@ -54,7 +54,7 @@ struct LeftShiftFun {
|
|
54
54
|
struct RightShiftFun {
|
55
55
|
static constexpr const char *Name = ">>";
|
56
56
|
static constexpr const char *Parameters = "input";
|
57
|
-
static constexpr const char *Description = "
|
57
|
+
static constexpr const char *Description = "Bitwise shift right";
|
58
58
|
static constexpr const char *Example = "8 >> 2";
|
59
59
|
|
60
60
|
static ScalarFunctionSet GetFunctions();
|
@@ -18,7 +18,7 @@ namespace duckdb {
|
|
18
18
|
struct RandomFun {
|
19
19
|
static constexpr const char *Name = "random";
|
20
20
|
static constexpr const char *Parameters = "";
|
21
|
-
static constexpr const char *Description = "
|
21
|
+
static constexpr const char *Description = "Returns a random number between 0 and 1";
|
22
22
|
static constexpr const char *Example = "random()";
|
23
23
|
|
24
24
|
static ScalarFunction GetFunction();
|
@@ -27,7 +27,7 @@ struct RandomFun {
|
|
27
27
|
struct SetseedFun {
|
28
28
|
static constexpr const char *Name = "setseed";
|
29
29
|
static constexpr const char *Parameters = "";
|
30
|
-
static constexpr const char *Description = "
|
30
|
+
static constexpr const char *Description = "Sets the seed to be used for the random function";
|
31
31
|
static constexpr const char *Example = "setseed(0.42)";
|
32
32
|
|
33
33
|
static ScalarFunction GetFunction();
|
@@ -36,7 +36,7 @@ struct SetseedFun {
|
|
36
36
|
struct UUIDFun {
|
37
37
|
static constexpr const char *Name = "uuid";
|
38
38
|
static constexpr const char *Parameters = "";
|
39
|
-
static constexpr const char *Description = "
|
39
|
+
static constexpr const char *Description = "Returns a random UUID similar to this: eeccb8c5-9943-b2bb-bb5e-222f4e14b687";
|
40
40
|
static constexpr const char *Example = "uuid()";
|
41
41
|
|
42
42
|
static ScalarFunction GetFunction();
|