duckdb 0.8.2-dev4871.0 → 0.8.2-dev5080.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.
Files changed (85) hide show
  1. package/package.json +1 -1
  2. package/src/duckdb/extension/icu/icu-strptime.cpp +1 -0
  3. package/src/duckdb/extension/json/json_functions/copy_json.cpp +1 -1
  4. package/src/duckdb/src/common/enum_util.cpp +5 -0
  5. package/src/duckdb/src/common/operator/cast_operators.cpp +18 -0
  6. package/src/duckdb/src/common/row_operations/row_matcher.cpp +5 -38
  7. package/src/duckdb/src/common/types/data_chunk.cpp +47 -10
  8. package/src/duckdb/src/common/types/vector.cpp +0 -1
  9. package/src/duckdb/src/common/types.cpp +10 -1
  10. package/src/duckdb/src/core_functions/scalar/date/strftime.cpp +2 -2
  11. package/src/duckdb/src/core_functions/scalar/list/array_slice.cpp +18 -8
  12. package/src/duckdb/src/core_functions/scalar/list/list_sort.cpp +10 -1
  13. package/src/duckdb/src/core_functions/scalar/map/map_concat.cpp +0 -2
  14. package/src/duckdb/src/core_functions/scalar/struct/struct_pack.cpp +12 -6
  15. package/src/duckdb/src/execution/nested_loop_join/nested_loop_join_inner.cpp +20 -27
  16. package/src/duckdb/src/execution/nested_loop_join/nested_loop_join_mark.cpp +21 -9
  17. package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +7 -7
  18. package/src/duckdb/src/execution/operator/csv_scanner/csv_reader_options.cpp +1 -1
  19. package/src/duckdb/src/execution/operator/csv_scanner/parallel_csv_reader.cpp +0 -2
  20. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_detection.cpp +14 -2
  21. package/src/duckdb/src/execution/operator/persistent/physical_export.cpp +1 -1
  22. package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +13 -8
  23. package/src/duckdb/src/function/cast/struct_cast.cpp +8 -0
  24. package/src/duckdb/src/function/cast/time_casts.cpp +12 -0
  25. package/src/duckdb/src/function/cast/union_casts.cpp +5 -0
  26. package/src/duckdb/src/function/function_binder.cpp +11 -2
  27. package/src/duckdb/src/function/pragma/pragma_functions.cpp +5 -0
  28. package/src/duckdb/src/function/pragma/pragma_queries.cpp +3 -0
  29. package/src/duckdb/src/function/scalar/strftime_format.cpp +29 -8
  30. package/src/duckdb/src/function/table/arrow.cpp +4 -0
  31. package/src/duckdb/src/function/table/copy_csv.cpp +2 -1
  32. package/src/duckdb/src/function/table/read_csv.cpp +4 -1
  33. package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
  34. package/src/duckdb/src/include/duckdb/common/multi_file_reader.hpp +5 -0
  35. package/src/duckdb/src/include/duckdb/common/operator/cast_operators.hpp +27 -0
  36. package/src/duckdb/src/include/duckdb/common/operator/comparison_operators.hpp +38 -2
  37. package/src/duckdb/src/include/duckdb/common/types.hpp +1 -0
  38. package/src/duckdb/src/include/duckdb/core_functions/scalar/bit_functions.hpp +4 -4
  39. package/src/duckdb/src/include/duckdb/core_functions/scalar/blob_functions.hpp +4 -4
  40. package/src/duckdb/src/include/duckdb/core_functions/scalar/date_functions.hpp +5 -5
  41. package/src/duckdb/src/include/duckdb/core_functions/scalar/enum_functions.hpp +7 -7
  42. package/src/duckdb/src/include/duckdb/core_functions/scalar/generic_functions.hpp +12 -12
  43. package/src/duckdb/src/include/duckdb/core_functions/scalar/list_functions.hpp +12 -12
  44. package/src/duckdb/src/include/duckdb/core_functions/scalar/map_functions.hpp +3 -3
  45. package/src/duckdb/src/include/duckdb/core_functions/scalar/math_functions.hpp +33 -33
  46. package/src/duckdb/src/include/duckdb/core_functions/scalar/operators_functions.hpp +2 -2
  47. package/src/duckdb/src/include/duckdb/core_functions/scalar/random_functions.hpp +3 -3
  48. package/src/duckdb/src/include/duckdb/core_functions/scalar/string_functions.hpp +12 -12
  49. package/src/duckdb/src/include/duckdb/core_functions/scalar/struct_functions.hpp +2 -2
  50. package/src/duckdb/src/include/duckdb/core_functions/scalar/union_functions.hpp +2 -2
  51. package/src/duckdb/src/include/duckdb/function/scalar/strftime_format.hpp +2 -1
  52. package/src/duckdb/src/include/duckdb/main/client_config.hpp +2 -0
  53. package/src/duckdb/src/include/duckdb/main/prepared_statement_data.hpp +1 -0
  54. package/src/duckdb/src/include/duckdb/planner/bound_parameter_map.hpp +28 -1
  55. package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_data.hpp +0 -18
  56. package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_expression.hpp +1 -1
  57. package/src/duckdb/src/include/duckdb/planner/expression_binder/base_select_binder.hpp +1 -0
  58. package/src/duckdb/src/include/duckdb/planner/operator/logical_create_table.hpp +1 -2
  59. package/src/duckdb/src/include/duckdb/planner/operator/logical_delete.hpp +1 -1
  60. package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +1 -1
  61. package/src/duckdb/src/include/duckdb/planner/operator/logical_update.hpp +1 -1
  62. package/src/duckdb/src/include/duckdb/planner/planner.hpp +1 -1
  63. package/src/duckdb/src/include/duckdb/storage/data_table.hpp +1 -1
  64. package/src/duckdb/src/include/duckdb/storage/table/row_group_collection.hpp +1 -1
  65. package/src/duckdb/src/main/capi/prepared-c.cpp +9 -3
  66. package/src/duckdb/src/planner/binder/expression/bind_comparison_expression.cpp +1 -0
  67. package/src/duckdb/src/planner/binder/expression/bind_parameter_expression.cpp +9 -19
  68. package/src/duckdb/src/planner/binder/query_node/bind_select_node.cpp +28 -6
  69. package/src/duckdb/src/planner/binder/statement/bind_drop.cpp +3 -0
  70. package/src/duckdb/src/planner/bound_parameter_map.cpp +67 -0
  71. package/src/duckdb/src/planner/expression_binder/base_select_binder.cpp +14 -6
  72. package/src/duckdb/src/planner/operator/logical_create_table.cpp +3 -3
  73. package/src/duckdb/src/planner/operator/logical_delete.cpp +3 -2
  74. package/src/duckdb/src/planner/operator/logical_insert.cpp +3 -2
  75. package/src/duckdb/src/planner/operator/logical_update.cpp +3 -2
  76. package/src/duckdb/src/planner/planner.cpp +2 -2
  77. package/src/duckdb/src/storage/data_table.cpp +8 -8
  78. package/src/duckdb/src/storage/local_storage.cpp +2 -3
  79. package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +64 -80
  80. package/src/duckdb/src/storage/storage_manager.cpp +6 -2
  81. package/src/duckdb/src/storage/table/row_group.cpp +6 -0
  82. package/src/duckdb/src/storage/table/row_group_collection.cpp +4 -3
  83. package/src/duckdb/src/storage/table/struct_column_data.cpp +5 -0
  84. package/src/duckdb/src/transaction/duck_transaction.cpp +1 -0
  85. package/src/duckdb/ub_src_planner.cpp +2 -0
@@ -120,7 +120,7 @@ struct DayFun {
120
120
  struct DayNameFun {
121
121
  static constexpr const char *Name = "dayname";
122
122
  static constexpr const char *Parameters = "ts";
123
- static constexpr const char *Description = "The (English) name of the weekday.";
123
+ static constexpr const char *Description = "The (English) name of the weekday";
124
124
  static constexpr const char *Example = "dayname(TIMESTAMP '1992-03-22')";
125
125
 
126
126
  static ScalarFunctionSet GetFunctions();
@@ -357,7 +357,7 @@ struct MonthFun {
357
357
  struct MonthNameFun {
358
358
  static constexpr const char *Name = "monthname";
359
359
  static constexpr const char *Parameters = "ts";
360
- static constexpr const char *Description = "The (English) name of the month.";
360
+ static constexpr const char *Description = "The (English) name of the month";
361
361
  static constexpr const char *Example = "monthname(TIMESTAMP '1992-09-20')";
362
362
 
363
363
  static ScalarFunctionSet GetFunctions();
@@ -393,7 +393,7 @@ struct StrfTimeFun {
393
393
  struct StrpTimeFun {
394
394
  static constexpr const char *Name = "strptime";
395
395
  static constexpr const char *Parameters = "text,format";
396
- static constexpr const char *Description = "Converts string to timestamp with time zone according to the format string if %Z is specified.";
396
+ static constexpr const char *Description = "Converts string to timestamp with time zone according to the format string if %Z is specified";
397
397
  static constexpr const char *Example = "strptime('Wed, 1 January 1992 - 08:38:40 PST', '%a, %-d %B %Y - %H:%M:%S %Z')";
398
398
 
399
399
  static ScalarFunctionSet GetFunctions();
@@ -402,7 +402,7 @@ struct StrpTimeFun {
402
402
  struct TimeBucketFun {
403
403
  static constexpr const char *Name = "time_bucket";
404
404
  static constexpr const char *Parameters = "bucket_width,timestamp,origin";
405
- static constexpr const char *Description = "Truncate timestamptz by the specified interval bucket_width. Buckets are aligned relative to origin timestamptz. origin defaults to 2000-01-03 00:00:00+00 for buckets that don’t include a month or year interval, and to 2000-01-01 00:00:00+00 for month and year buckets.";
405
+ static constexpr const char *Description = "Truncate TIMESTAMPTZ by the specified interval bucket_width. Buckets are aligned relative to origin TIMESTAMPTZ. The origin defaults to 2000-01-03 00:00:00+00 for buckets that do not include a month or year interval, and to 2000-01-01 00:00:00+00 for month and year buckets";
406
406
  static constexpr const char *Example = "time_bucket(INTERVAL '2 weeks', TIMESTAMP '1992-04-20 15:26:00-07', TIMESTAMP '1992-04-01 00:00:00-07')";
407
407
 
408
408
  static ScalarFunctionSet GetFunctions();
@@ -519,7 +519,7 @@ struct ToYearsFun {
519
519
  struct TryStrpTimeFun {
520
520
  static constexpr const char *Name = "try_strptime";
521
521
  static constexpr const char *Parameters = "text,format";
522
- static constexpr const char *Description = "Converts string to timestamp using the format string (timestamp with time zone if %Z is specified). Returns NULL on failure.";
522
+ static constexpr const char *Description = "Converts string to timestamp using the format string (timestamp with time zone if %Z is specified). Returns NULL on failure";
523
523
  static constexpr const char *Example = "try_strptime('Wed, 1 January 1992 - 08:38:40 PM', '%a, %-d %B %Y - %I:%M:%S %p')";
524
524
 
525
525
  static ScalarFunctionSet GetFunctions();
@@ -18,8 +18,8 @@ namespace duckdb {
18
18
  struct EnumFirstFun {
19
19
  static constexpr const char *Name = "enum_first";
20
20
  static constexpr const char *Parameters = "enum";
21
- static constexpr const char *Description = "Returns the first value of the input enum type.";
22
- static constexpr const char *Example = "enum_first(null::mood)";
21
+ static constexpr const char *Description = "Returns the first value of the input enum type";
22
+ static constexpr const char *Example = "enum_first(NULL::mood)";
23
23
 
24
24
  static ScalarFunction GetFunction();
25
25
  };
@@ -27,8 +27,8 @@ struct EnumFirstFun {
27
27
  struct EnumLastFun {
28
28
  static constexpr const char *Name = "enum_last";
29
29
  static constexpr const char *Parameters = "enum";
30
- static constexpr const char *Description = "Returns the last value of the input enum type.";
31
- static constexpr const char *Example = "enum_last(null::mood)";
30
+ static constexpr const char *Description = "Returns the last value of the input enum type";
31
+ static constexpr const char *Example = "enum_last(NULL::mood)";
32
32
 
33
33
  static ScalarFunction GetFunction();
34
34
  };
@@ -45,8 +45,8 @@ struct EnumCodeFun {
45
45
  struct EnumRangeFun {
46
46
  static constexpr const char *Name = "enum_range";
47
47
  static constexpr const char *Parameters = "enum";
48
- static constexpr const char *Description = "Returns all values of the input enum type as an array.";
49
- static constexpr const char *Example = "enum_range(null::mood)";
48
+ static constexpr const char *Description = "Returns all values of the input enum type as an array";
49
+ static constexpr const char *Example = "enum_range(NULL::mood)";
50
50
 
51
51
  static ScalarFunction GetFunction();
52
52
  };
@@ -54,7 +54,7 @@ struct EnumRangeFun {
54
54
  struct EnumRangeBoundaryFun {
55
55
  static constexpr const char *Name = "enum_range_boundary";
56
56
  static constexpr const char *Parameters = "start,end";
57
- static constexpr const char *Description = "Returns the range between the two given enum values as an array. The values must be of the same enum type. When the first parameter is NULL, the result starts with the first value of the enum type. When the second parameter is NULL, the result ends with the last value of the enum type.";
57
+ static constexpr const char *Description = "Returns the range between the two given enum values as an array. The values must be of the same enum type. When the first parameter is NULL, the result starts with the first value of the enum type. When the second parameter is NULL, the result ends with the last value of the enum type";
58
58
  static constexpr const char *Example = "enum_range_boundary(NULL, 'happy'::mood)";
59
59
 
60
60
  static ScalarFunction GetFunction();
@@ -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 = "Return the current value of the configuration setting";
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 = "Return the name of the currently active schema. Default is main.";
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 = "Return list of schemas. Pass a parameter of True to include implicit schemas.";
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 = "Return the name of the currently active database.";
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 = "Return the currently active version of DuckDB in this format: v0.3.2 ";
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 = "Return the size of the map (or the number of entries in the map).";
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 = "Return 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.";
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 = "absolute value";
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 = "computes x to the power of y";
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 = "factorial of x. Computes the product of the current integer and all integers below it";
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 = "computes the arccosine of x";
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 = "computes the arcsine of x";
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 = "computes the arctangent of x";
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 = "computes the arctangent (y, x)";
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 = "returns the number of bits that are set";
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 = "returns the cube root of x";
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 = "rounds the number up";
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 = "computes the cos of x";
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 = "computes the cotangent of x";
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 = "converts radians to degrees";
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 = "round to next even number by rounding away from zero.";
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 = "computes e to the power of x";
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 = "rounds the number down";
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 = "interpolation of (x-1) factorial (so decimal inputs are allowed)";
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 = "computes the greatest common divisor of x and y";
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 = "computes the least common multiple of x and y";
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 = "computes the log of the gamma function.";
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 = "computes the natural logarithm of x";
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 = "computes the 2-log of x";
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 = "computes the 10-log of x";
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 = "return the next floating point value after x in the direction of y";
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 = "returns the value of pi";
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 = "converts degrees to radians";
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 = "round to s decimal places";
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 = "returns the sign of x as -1, 0 or 1";
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 = "returns whether the signbit is set or not";
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 = "computes the sin of x";
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 = "returns the square root of x";
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 = "computes the tan of x";
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 = "truncates the number";
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 = "bitwise shift left";
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 = "bitwise shift right";
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();