duckdb 0.7.2-dev2740.0 → 0.7.2-dev2867.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 (286) hide show
  1. package/binding.gyp +21 -13
  2. package/package.json +1 -1
  3. package/src/duckdb/extension/icu/icu-datepart.cpp +51 -1
  4. package/src/duckdb/extension/icu/icu-strptime.cpp +1 -1
  5. package/src/duckdb/extension/json/include/json_functions.hpp +35 -37
  6. package/src/duckdb/extension/json/include/json_scan.hpp +1 -1
  7. package/src/duckdb/extension/json/include/json_transform.hpp +1 -1
  8. package/src/duckdb/extension/json/json-extension.cpp +10 -20
  9. package/src/duckdb/extension/json/json_functions/copy_json.cpp +2 -2
  10. package/src/duckdb/extension/json/json_functions/json_array_length.cpp +2 -3
  11. package/src/duckdb/extension/json/json_functions/json_contains.cpp +2 -2
  12. package/src/duckdb/extension/json/json_functions/json_create.cpp +20 -20
  13. package/src/duckdb/extension/json/json_functions/json_extract.cpp +4 -6
  14. package/src/duckdb/extension/json/json_functions/json_keys.cpp +2 -3
  15. package/src/duckdb/extension/json/json_functions/json_merge_patch.cpp +2 -2
  16. package/src/duckdb/extension/json/json_functions/json_serialize_sql.cpp +8 -8
  17. package/src/duckdb/extension/json/json_functions/json_structure.cpp +2 -2
  18. package/src/duckdb/extension/json/json_functions/json_transform.cpp +4 -4
  19. package/src/duckdb/extension/json/json_functions/json_type.cpp +2 -3
  20. package/src/duckdb/extension/json/json_functions/json_valid.cpp +2 -2
  21. package/src/duckdb/extension/json/json_functions/read_json.cpp +6 -6
  22. package/src/duckdb/extension/json/json_functions/read_json_objects.cpp +4 -4
  23. package/src/duckdb/extension/json/json_functions.cpp +6 -6
  24. package/src/duckdb/extension/parquet/parquet-extension.cpp +16 -28
  25. package/src/duckdb/src/catalog/catalog_entry/pragma_function_catalog_entry.cpp +1 -2
  26. package/src/duckdb/src/catalog/catalog_entry/scalar_function_catalog_entry.cpp +1 -1
  27. package/src/duckdb/src/catalog/catalog_entry/scalar_macro_catalog_entry.cpp +2 -2
  28. package/src/duckdb/src/catalog/catalog_entry/table_function_catalog_entry.cpp +1 -2
  29. package/src/duckdb/src/catalog/catalog_transaction.cpp +4 -0
  30. package/src/duckdb/src/catalog/duck_catalog.cpp +8 -1
  31. package/src/duckdb/src/common/enums/date_part_specifier.cpp +82 -0
  32. package/src/duckdb/src/common/local_file_system.cpp +1 -3
  33. package/src/duckdb/src/common/multi_file_reader.cpp +11 -8
  34. package/src/duckdb/src/common/types/vector.cpp +136 -3
  35. package/src/duckdb/src/{function → core_functions}/aggregate/algebraic/avg.cpp +9 -12
  36. package/src/duckdb/src/core_functions/aggregate/algebraic/corr.cpp +13 -0
  37. package/src/duckdb/src/core_functions/aggregate/algebraic/covar.cpp +21 -0
  38. package/src/duckdb/src/core_functions/aggregate/algebraic/stddev.cpp +34 -0
  39. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/approx_count.cpp +3 -3
  40. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/arg_min_max.cpp +7 -23
  41. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/bitagg.cpp +10 -10
  42. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/bitstring_agg.cpp +4 -4
  43. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/bool.cpp +1 -17
  44. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/entropy.cpp +5 -4
  45. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/kurtosis.cpp +5 -6
  46. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/minmax.cpp +5 -5
  47. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/product.cpp +2 -11
  48. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/skew.cpp +5 -6
  49. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/string_agg.cpp +4 -6
  50. package/src/duckdb/src/{function → core_functions}/aggregate/distributive/sum.cpp +38 -46
  51. package/src/duckdb/src/{function → core_functions}/aggregate/holistic/approximate_quantile.cpp +4 -5
  52. package/src/duckdb/src/{function → core_functions}/aggregate/holistic/mode.cpp +4 -5
  53. package/src/duckdb/src/{function → core_functions}/aggregate/holistic/quantile.cpp +31 -23
  54. package/src/duckdb/src/{function → core_functions}/aggregate/holistic/reservoir_quantile.cpp +4 -5
  55. package/src/duckdb/src/{function → core_functions}/aggregate/nested/histogram.cpp +4 -4
  56. package/src/duckdb/src/{function → core_functions}/aggregate/nested/list.cpp +6 -10
  57. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_avg.cpp +7 -11
  58. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_count.cpp +4 -4
  59. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_intercept.cpp +5 -8
  60. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_r2.cpp +5 -7
  61. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_slope.cpp +5 -7
  62. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_sxx_syy.cpp +8 -12
  63. package/src/duckdb/src/{function → core_functions}/aggregate/regression/regr_sxy.cpp +6 -8
  64. package/src/duckdb/src/core_functions/core_functions.cpp +50 -0
  65. package/src/duckdb/src/core_functions/function_list.cpp +352 -0
  66. package/src/duckdb/src/{function → core_functions}/scalar/bit/bitstring.cpp +12 -15
  67. package/src/duckdb/src/{function → core_functions}/scalar/blob/base64.cpp +6 -6
  68. package/src/duckdb/src/{function → core_functions}/scalar/blob/encode.cpp +7 -6
  69. package/src/duckdb/src/{function → core_functions}/scalar/date/age.cpp +3 -3
  70. package/src/duckdb/src/{function → core_functions}/scalar/date/current.cpp +8 -8
  71. package/src/duckdb/src/{function → core_functions}/scalar/date/date_diff.cpp +3 -6
  72. package/src/duckdb/src/{function → core_functions}/scalar/date/date_part.cpp +144 -148
  73. package/src/duckdb/src/{function → core_functions}/scalar/date/date_sub.cpp +3 -6
  74. package/src/duckdb/src/{function → core_functions}/scalar/date/date_trunc.cpp +3 -6
  75. package/src/duckdb/src/{function → core_functions}/scalar/date/epoch.cpp +7 -8
  76. package/src/duckdb/src/{function → core_functions}/scalar/date/make_date.cpp +14 -14
  77. package/src/duckdb/src/core_functions/scalar/date/strftime.cpp +251 -0
  78. package/src/duckdb/src/{function → core_functions}/scalar/date/time_bucket.cpp +4 -5
  79. package/src/duckdb/src/{function → core_functions}/scalar/date/to_interval.cpp +39 -19
  80. package/src/duckdb/src/{function/scalar/enum/enum_functions_implementation.cpp → core_functions/scalar/enum/enum_functions.cpp} +18 -22
  81. package/src/duckdb/src/{function → core_functions}/scalar/generic/alias.cpp +4 -4
  82. package/src/duckdb/src/{function → core_functions}/scalar/generic/current_setting.cpp +4 -5
  83. package/src/duckdb/src/{function → core_functions}/scalar/generic/error.cpp +4 -4
  84. package/src/duckdb/src/{function → core_functions}/scalar/generic/hash.cpp +4 -4
  85. package/src/duckdb/src/{function → core_functions}/scalar/generic/least.cpp +8 -9
  86. package/src/duckdb/src/{function → core_functions}/scalar/generic/stats.cpp +4 -4
  87. package/src/duckdb/src/{function/scalar/system → core_functions/scalar/generic}/system_functions.cpp +24 -13
  88. package/src/duckdb/src/{function → core_functions}/scalar/generic/typeof.cpp +4 -4
  89. package/src/duckdb/src/{function → core_functions}/scalar/list/array_slice.cpp +3 -13
  90. package/src/duckdb/src/{function → core_functions}/scalar/list/flatten.cpp +5 -5
  91. package/src/duckdb/src/{function → core_functions}/scalar/list/list_aggregates.cpp +2 -13
  92. package/src/duckdb/src/{function → core_functions}/scalar/list/list_lambdas.cpp +9 -24
  93. package/src/duckdb/src/{function → core_functions}/scalar/list/list_sort.cpp +8 -22
  94. package/src/duckdb/src/{function → core_functions}/scalar/list/list_value.cpp +4 -5
  95. package/src/duckdb/src/{function → core_functions}/scalar/list/range.cpp +8 -6
  96. package/src/duckdb/src/{function → core_functions}/scalar/map/cardinality.cpp +5 -4
  97. package/src/duckdb/src/{function → core_functions}/scalar/map/map.cpp +6 -63
  98. package/src/duckdb/src/{function → core_functions}/scalar/map/map_entries.cpp +5 -4
  99. package/src/duckdb/src/{function → core_functions}/scalar/map/map_extract.cpp +22 -7
  100. package/src/duckdb/src/{function → core_functions}/scalar/map/map_from_entries.cpp +6 -5
  101. package/src/duckdb/src/{function → core_functions}/scalar/map/map_keys_values.cpp +8 -7
  102. package/src/duckdb/src/{function → core_functions}/scalar/math/numeric.cpp +110 -138
  103. package/src/duckdb/src/{function → core_functions}/scalar/operators/bitwise.cpp +19 -20
  104. package/src/duckdb/src/{function/scalar/math → core_functions/scalar/random}/random.cpp +5 -6
  105. package/src/duckdb/src/{function/scalar/math → core_functions/scalar/random}/setseed.cpp +3 -3
  106. package/src/duckdb/src/{function → core_functions}/scalar/string/ascii.cpp +4 -5
  107. package/src/duckdb/src/{function → core_functions}/scalar/string/bar.cpp +4 -4
  108. package/src/duckdb/src/{function → core_functions}/scalar/string/chr.cpp +5 -6
  109. package/src/duckdb/src/{function → core_functions}/scalar/string/damerau_levenshtein.cpp +4 -6
  110. package/src/duckdb/src/{function/scalar/string/mismatches.cpp → core_functions/scalar/string/hamming.cpp} +3 -12
  111. package/src/duckdb/src/{function → core_functions}/scalar/string/hex.cpp +15 -25
  112. package/src/duckdb/src/{function → core_functions}/scalar/string/instr.cpp +6 -13
  113. package/src/duckdb/src/{function → core_functions}/scalar/string/jaccard.cpp +3 -6
  114. package/src/duckdb/src/{function → core_functions}/scalar/string/jaro_winkler.cpp +7 -6
  115. package/src/duckdb/src/{function → core_functions}/scalar/string/left_right.cpp +18 -11
  116. package/src/duckdb/src/{function → core_functions}/scalar/string/levenshtein.cpp +3 -12
  117. package/src/duckdb/src/{function → core_functions}/scalar/string/md5.cpp +15 -21
  118. package/src/duckdb/src/{function → core_functions}/scalar/string/pad.cpp +7 -13
  119. package/src/duckdb/src/{function → core_functions}/scalar/string/printf.cpp +10 -10
  120. package/src/duckdb/src/{function → core_functions}/scalar/string/repeat.cpp +3 -6
  121. package/src/duckdb/src/{function → core_functions}/scalar/string/replace.cpp +4 -7
  122. package/src/duckdb/src/{function → core_functions}/scalar/string/reverse.cpp +3 -3
  123. package/src/duckdb/src/{function → core_functions}/scalar/string/starts_with.cpp +4 -8
  124. package/src/duckdb/src/{function → core_functions}/scalar/string/string_split.cpp +11 -11
  125. package/src/duckdb/src/{function → core_functions}/scalar/string/translate.cpp +4 -7
  126. package/src/duckdb/src/{function → core_functions}/scalar/string/trim.cpp +19 -14
  127. package/src/duckdb/src/core_functions/scalar/string/unicode.cpp +28 -0
  128. package/src/duckdb/src/{function → core_functions}/scalar/struct/struct_insert.cpp +4 -4
  129. package/src/duckdb/src/{function → core_functions}/scalar/struct/struct_pack.cpp +3 -4
  130. package/src/duckdb/src/{function → core_functions}/scalar/union/union_extract.cpp +4 -8
  131. package/src/duckdb/src/{function → core_functions}/scalar/union/union_tag.cpp +4 -8
  132. package/src/duckdb/src/{function → core_functions}/scalar/union/union_value.cpp +4 -59
  133. package/src/duckdb/src/execution/operator/persistent/base_csv_reader.cpp +1 -1
  134. package/src/duckdb/src/execution/operator/persistent/buffered_csv_reader.cpp +1 -1
  135. package/src/duckdb/src/execution/operator/persistent/parallel_csv_reader.cpp +1 -1
  136. package/src/duckdb/src/execution/operator/schema/physical_create_type.cpp +11 -2
  137. package/src/duckdb/src/function/aggregate/distributive_functions.cpp +0 -17
  138. package/src/duckdb/src/function/cast/string_cast.cpp +1 -1
  139. package/src/duckdb/src/function/function.cpp +0 -8
  140. package/src/duckdb/src/function/function_set.cpp +25 -0
  141. package/src/duckdb/src/function/scalar/generic_functions.cpp +1 -9
  142. package/src/duckdb/src/function/scalar/nested_functions.cpp +0 -22
  143. package/src/duckdb/src/function/scalar/operators.cpp +0 -6
  144. package/src/duckdb/src/function/scalar/{date/strftime.cpp → strftime_format.cpp} +1 -249
  145. package/src/duckdb/src/function/scalar/string/length.cpp +0 -19
  146. package/src/duckdb/src/function/scalar/string_functions.cpp +0 -40
  147. package/src/duckdb/src/function/scalar/system/aggregate_export.cpp +5 -0
  148. package/src/duckdb/src/function/table/arrow_conversion.cpp +1 -1
  149. package/src/duckdb/src/function/table/read_csv.cpp +7 -4
  150. package/src/duckdb/src/function/table/system/duckdb_functions.cpp +27 -40
  151. package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
  152. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/aggregate_function_catalog_entry.hpp +3 -3
  153. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/function_entry.hpp +33 -0
  154. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/macro_catalog_entry.hpp +2 -2
  155. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/pragma_function_catalog_entry.hpp +2 -2
  156. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/scalar_function_catalog_entry.hpp +2 -2
  157. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/table_function_catalog_entry.hpp +2 -2
  158. package/src/duckdb/src/include/duckdb/catalog/catalog_transaction.hpp +2 -0
  159. package/src/duckdb/src/include/duckdb/common/algorithm.hpp +1 -0
  160. package/src/duckdb/src/include/duckdb/common/multi_file_reader.hpp +5 -4
  161. package/src/duckdb/src/include/duckdb/common/types/vector.hpp +11 -1
  162. package/src/duckdb/src/include/duckdb/{function → core_functions}/aggregate/algebraic/corr.hpp +3 -4
  163. package/src/duckdb/src/include/duckdb/{function → core_functions}/aggregate/algebraic/covar.hpp +1 -1
  164. package/src/duckdb/src/include/duckdb/{function → core_functions}/aggregate/algebraic/stddev.hpp +1 -1
  165. package/src/duckdb/src/include/duckdb/core_functions/aggregate/algebraic_functions.hpp +124 -0
  166. package/src/duckdb/src/include/duckdb/core_functions/aggregate/distributive_functions.hpp +229 -0
  167. package/src/duckdb/src/include/duckdb/core_functions/aggregate/holistic_functions.hpp +85 -0
  168. package/src/duckdb/src/include/duckdb/core_functions/aggregate/nested_functions.hpp +41 -0
  169. package/src/duckdb/src/include/duckdb/{function → core_functions}/aggregate/regression/regr_count.hpp +3 -4
  170. package/src/duckdb/src/include/duckdb/{function → core_functions}/aggregate/regression/regr_slope.hpp +2 -2
  171. package/src/duckdb/src/include/duckdb/core_functions/aggregate/regression_functions.hpp +97 -0
  172. package/src/duckdb/src/include/duckdb/{function → core_functions}/aggregate/sum_helpers.hpp +1 -1
  173. package/src/duckdb/src/include/duckdb/{function/scalar/uuid_functions.hpp → core_functions/core_functions.hpp} +7 -5
  174. package/src/duckdb/src/include/duckdb/core_functions/function_list.hpp +33 -0
  175. package/src/duckdb/src/include/duckdb/core_functions/scalar/bit_functions.hpp +52 -0
  176. package/src/duckdb/src/include/duckdb/core_functions/scalar/blob_functions.hpp +58 -0
  177. package/src/duckdb/src/include/duckdb/core_functions/scalar/date_functions.hpp +544 -0
  178. package/src/duckdb/src/include/duckdb/core_functions/scalar/enum_functions.hpp +61 -0
  179. package/src/duckdb/src/include/duckdb/core_functions/scalar/generic_functions.hpp +142 -0
  180. package/src/duckdb/src/include/duckdb/core_functions/scalar/list_functions.hpp +220 -0
  181. package/src/duckdb/src/include/duckdb/core_functions/scalar/map_functions.hpp +85 -0
  182. package/src/duckdb/src/include/duckdb/core_functions/scalar/math_functions.hpp +394 -0
  183. package/src/duckdb/src/include/duckdb/core_functions/scalar/operators_functions.hpp +70 -0
  184. package/src/duckdb/src/include/duckdb/core_functions/scalar/random_functions.hpp +49 -0
  185. package/src/duckdb/src/include/duckdb/core_functions/scalar/string_functions.hpp +439 -0
  186. package/src/duckdb/src/include/duckdb/core_functions/scalar/struct_functions.hpp +40 -0
  187. package/src/duckdb/src/include/duckdb/core_functions/scalar/union_functions.hpp +43 -0
  188. package/src/duckdb/src/include/duckdb/execution/operator/persistent/base_csv_reader.hpp +1 -1
  189. package/src/duckdb/src/include/duckdb/execution/operator/persistent/csv_reader_options.hpp +1 -1
  190. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_type.hpp +4 -0
  191. package/src/duckdb/src/include/duckdb/function/aggregate/distributive_functions.hpp +0 -85
  192. package/src/duckdb/src/include/duckdb/function/built_in_functions.hpp +0 -8
  193. package/src/duckdb/src/include/duckdb/function/function_set.hpp +7 -2
  194. package/src/duckdb/src/include/duckdb/function/scalar/generic_functions.hpp +1 -36
  195. package/src/duckdb/src/include/duckdb/function/scalar/nested_functions.hpp +0 -120
  196. package/src/duckdb/src/include/duckdb/function/scalar/operators.hpp +0 -24
  197. package/src/duckdb/src/include/duckdb/function/scalar/string_functions.hpp +1 -97
  198. package/src/duckdb/src/include/duckdb/function/table/read_csv.hpp +1 -1
  199. package/src/duckdb/src/include/duckdb/main/database.hpp +1 -0
  200. package/src/duckdb/src/include/duckdb/main/database_manager.hpp +3 -0
  201. package/src/duckdb/src/include/duckdb/main/extension_helper.hpp +0 -2
  202. package/src/duckdb/src/include/duckdb/main/extension_util.hpp +48 -0
  203. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_function_info.hpp +6 -0
  204. package/src/duckdb/src/include/duckdb/parser/tableref/pivotref.hpp +3 -0
  205. package/src/duckdb/src/include/duckdb/parser/transformer.hpp +5 -1
  206. package/src/duckdb/src/main/attached_database.cpp +5 -3
  207. package/src/duckdb/src/main/database.cpp +34 -37
  208. package/src/duckdb/src/main/extension/extension_helper.cpp +1 -0
  209. package/src/duckdb/src/main/extension/extension_load.cpp +61 -38
  210. package/src/duckdb/src/main/extension/extension_util.cpp +90 -0
  211. package/src/duckdb/src/parser/transform/statement/transform_create_function.cpp +1 -4
  212. package/src/duckdb/src/parser/transform/statement/transform_create_view.cpp +2 -4
  213. package/src/duckdb/src/parser/transform/statement/transform_pivot_stmt.cpp +43 -24
  214. package/src/duckdb/src/parser/transform/tableref/transform_pivot.cpp +3 -0
  215. package/src/duckdb/src/planner/binder/statement/bind_create.cpp +17 -28
  216. package/src/duckdb/src/planner/binder/statement/bind_create_table.cpp +6 -7
  217. package/src/duckdb/third_party/fmt/format.cc +0 -5
  218. package/src/duckdb/third_party/fmt/include/fmt/core.h +10 -12
  219. package/src/duckdb/third_party/fmt/include/fmt/format-inl.h +2 -33
  220. package/src/duckdb/third_party/fmt/include/fmt/format.h +61 -24
  221. package/src/duckdb/third_party/fmt/include/fmt/printf.h +15 -1
  222. package/src/duckdb/third_party/libpg_query/include/nodes/parsenodes.hpp +1 -0
  223. package/src/duckdb/third_party/libpg_query/src_backend_parser_gram.cpp +10735 -10674
  224. package/src/duckdb/ub_src_common_enums.cpp +2 -0
  225. package/src/duckdb/ub_src_core_functions.cpp +4 -0
  226. package/src/duckdb/ub_src_core_functions_aggregate_algebraic.cpp +8 -0
  227. package/src/duckdb/ub_src_core_functions_aggregate_distributive.cpp +24 -0
  228. package/src/duckdb/ub_src_core_functions_aggregate_holistic.cpp +8 -0
  229. package/src/duckdb/ub_src_core_functions_aggregate_nested.cpp +4 -0
  230. package/src/duckdb/ub_src_core_functions_aggregate_regression.cpp +14 -0
  231. package/src/duckdb/ub_src_core_functions_scalar_bit.cpp +2 -0
  232. package/src/duckdb/ub_src_core_functions_scalar_blob.cpp +4 -0
  233. package/src/duckdb/ub_src_core_functions_scalar_date.cpp +22 -0
  234. package/src/duckdb/ub_src_core_functions_scalar_enum.cpp +2 -0
  235. package/src/duckdb/ub_src_core_functions_scalar_generic.cpp +16 -0
  236. package/src/duckdb/ub_src_core_functions_scalar_list.cpp +14 -0
  237. package/src/duckdb/ub_src_core_functions_scalar_map.cpp +12 -0
  238. package/src/duckdb/ub_src_core_functions_scalar_math.cpp +2 -0
  239. package/src/duckdb/ub_src_core_functions_scalar_operators.cpp +2 -0
  240. package/src/duckdb/ub_src_core_functions_scalar_random.cpp +4 -0
  241. package/src/duckdb/ub_src_core_functions_scalar_string.cpp +44 -0
  242. package/src/duckdb/ub_src_core_functions_scalar_struct.cpp +4 -0
  243. package/src/duckdb/ub_src_core_functions_scalar_union.cpp +6 -0
  244. package/src/duckdb/ub_src_function_aggregate.cpp +0 -8
  245. package/src/duckdb/ub_src_function_aggregate_distributive.cpp +0 -24
  246. package/src/duckdb/ub_src_function_scalar.cpp +2 -8
  247. package/src/duckdb/ub_src_function_scalar_generic.cpp +0 -14
  248. package/src/duckdb/ub_src_function_scalar_list.cpp +0 -14
  249. package/src/duckdb/ub_src_function_scalar_operators.cpp +0 -2
  250. package/src/duckdb/ub_src_function_scalar_string.cpp +0 -42
  251. package/src/duckdb/ub_src_function_scalar_struct.cpp +0 -4
  252. package/src/duckdb/ub_src_function_scalar_system.cpp +0 -2
  253. package/src/duckdb/ub_src_main_extension.cpp +2 -0
  254. package/src/duckdb/src/function/aggregate/algebraic/corr.cpp +0 -14
  255. package/src/duckdb/src/function/aggregate/algebraic/covar.cpp +0 -25
  256. package/src/duckdb/src/function/aggregate/algebraic/stddev.cpp +0 -54
  257. package/src/duckdb/src/function/aggregate/algebraic_functions.cpp +0 -21
  258. package/src/duckdb/src/function/aggregate/holistic_functions.cpp +0 -12
  259. package/src/duckdb/src/function/aggregate/nested_functions.cpp +0 -10
  260. package/src/duckdb/src/function/aggregate/regression_functions.cpp +0 -21
  261. package/src/duckdb/src/function/scalar/date_functions.cpp +0 -22
  262. package/src/duckdb/src/function/scalar/enum_functions.cpp +0 -13
  263. package/src/duckdb/src/function/scalar/math_functions.cpp +0 -50
  264. package/src/duckdb/src/function/scalar/trigonometrics_functions.cpp +0 -18
  265. package/src/duckdb/src/include/duckdb/function/aggregate/algebraic_functions.hpp +0 -56
  266. package/src/duckdb/src/include/duckdb/function/aggregate/holistic_functions.hpp +0 -33
  267. package/src/duckdb/src/include/duckdb/function/aggregate/nested_functions.hpp +0 -26
  268. package/src/duckdb/src/include/duckdb/function/aggregate/regression_functions.hpp +0 -53
  269. package/src/duckdb/src/include/duckdb/function/scalar/bit_functions.hpp +0 -32
  270. package/src/duckdb/src/include/duckdb/function/scalar/blob_functions.hpp +0 -24
  271. package/src/duckdb/src/include/duckdb/function/scalar/date_functions.hpp +0 -73
  272. package/src/duckdb/src/include/duckdb/function/scalar/enum_functions.hpp +0 -37
  273. package/src/duckdb/src/include/duckdb/function/scalar/math_functions.hpp +0 -137
  274. package/src/duckdb/src/include/duckdb/function/scalar/trigonometric_functions.hpp +0 -49
  275. package/src/duckdb/ub_src_function_aggregate_algebraic.cpp +0 -8
  276. package/src/duckdb/ub_src_function_aggregate_holistic.cpp +0 -8
  277. package/src/duckdb/ub_src_function_aggregate_nested.cpp +0 -4
  278. package/src/duckdb/ub_src_function_aggregate_regression.cpp +0 -14
  279. package/src/duckdb/ub_src_function_scalar_bit.cpp +0 -2
  280. package/src/duckdb/ub_src_function_scalar_blob.cpp +0 -4
  281. package/src/duckdb/ub_src_function_scalar_date.cpp +0 -22
  282. package/src/duckdb/ub_src_function_scalar_enum.cpp +0 -2
  283. package/src/duckdb/ub_src_function_scalar_map.cpp +0 -12
  284. package/src/duckdb/ub_src_function_scalar_math.cpp +0 -6
  285. package/src/duckdb/ub_src_function_scalar_union.cpp +0 -6
  286. /package/src/duckdb/src/include/duckdb/function/scalar/{strftime.hpp → strftime_format.hpp} +0 -0
@@ -2,6 +2,8 @@
2
2
 
3
3
  #include "src/common/enums/compression_type.cpp"
4
4
 
5
+ #include "src/common/enums/date_part_specifier.cpp"
6
+
5
7
  #include "src/common/enums/expression_type.cpp"
6
8
 
7
9
  #include "src/common/enums/file_compression_type.cpp"
@@ -0,0 +1,4 @@
1
+ #include "src/core_functions/core_functions.cpp"
2
+
3
+ #include "src/core_functions/function_list.cpp"
4
+
@@ -0,0 +1,8 @@
1
+ #include "src/core_functions/aggregate/algebraic/avg.cpp"
2
+
3
+ #include "src/core_functions/aggregate/algebraic/covar.cpp"
4
+
5
+ #include "src/core_functions/aggregate/algebraic/stddev.cpp"
6
+
7
+ #include "src/core_functions/aggregate/algebraic/corr.cpp"
8
+
@@ -0,0 +1,24 @@
1
+ #include "src/core_functions/aggregate/distributive/approx_count.cpp"
2
+
3
+ #include "src/core_functions/aggregate/distributive/arg_min_max.cpp"
4
+
5
+ #include "src/core_functions/aggregate/distributive/bitagg.cpp"
6
+
7
+ #include "src/core_functions/aggregate/distributive/bitstring_agg.cpp"
8
+
9
+ #include "src/core_functions/aggregate/distributive/bool.cpp"
10
+
11
+ #include "src/core_functions/aggregate/distributive/entropy.cpp"
12
+
13
+ #include "src/core_functions/aggregate/distributive/kurtosis.cpp"
14
+
15
+ #include "src/core_functions/aggregate/distributive/minmax.cpp"
16
+
17
+ #include "src/core_functions/aggregate/distributive/product.cpp"
18
+
19
+ #include "src/core_functions/aggregate/distributive/skew.cpp"
20
+
21
+ #include "src/core_functions/aggregate/distributive/string_agg.cpp"
22
+
23
+ #include "src/core_functions/aggregate/distributive/sum.cpp"
24
+
@@ -0,0 +1,8 @@
1
+ #include "src/core_functions/aggregate/holistic/quantile.cpp"
2
+
3
+ #include "src/core_functions/aggregate/holistic/mode.cpp"
4
+
5
+ #include "src/core_functions/aggregate/holistic/approximate_quantile.cpp"
6
+
7
+ #include "src/core_functions/aggregate/holistic/reservoir_quantile.cpp"
8
+
@@ -0,0 +1,4 @@
1
+ #include "src/core_functions/aggregate/nested/list.cpp"
2
+
3
+ #include "src/core_functions/aggregate/nested/histogram.cpp"
4
+
@@ -0,0 +1,14 @@
1
+ #include "src/core_functions/aggregate/regression/regr_avg.cpp"
2
+
3
+ #include "src/core_functions/aggregate/regression/regr_count.cpp"
4
+
5
+ #include "src/core_functions/aggregate/regression/regr_slope.cpp"
6
+
7
+ #include "src/core_functions/aggregate/regression/regr_r2.cpp"
8
+
9
+ #include "src/core_functions/aggregate/regression/regr_sxx_syy.cpp"
10
+
11
+ #include "src/core_functions/aggregate/regression/regr_sxy.cpp"
12
+
13
+ #include "src/core_functions/aggregate/regression/regr_intercept.cpp"
14
+
@@ -0,0 +1,2 @@
1
+ #include "src/core_functions/scalar/bit/bitstring.cpp"
2
+
@@ -0,0 +1,4 @@
1
+ #include "src/core_functions/scalar/blob/base64.cpp"
2
+
3
+ #include "src/core_functions/scalar/blob/encode.cpp"
4
+
@@ -0,0 +1,22 @@
1
+ #include "src/core_functions/scalar/date/age.cpp"
2
+
3
+ #include "src/core_functions/scalar/date/current.cpp"
4
+
5
+ #include "src/core_functions/scalar/date/epoch.cpp"
6
+
7
+ #include "src/core_functions/scalar/date/date_diff.cpp"
8
+
9
+ #include "src/core_functions/scalar/date/date_part.cpp"
10
+
11
+ #include "src/core_functions/scalar/date/date_sub.cpp"
12
+
13
+ #include "src/core_functions/scalar/date/date_trunc.cpp"
14
+
15
+ #include "src/core_functions/scalar/date/make_date.cpp"
16
+
17
+ #include "src/core_functions/scalar/date/strftime.cpp"
18
+
19
+ #include "src/core_functions/scalar/date/time_bucket.cpp"
20
+
21
+ #include "src/core_functions/scalar/date/to_interval.cpp"
22
+
@@ -0,0 +1,2 @@
1
+ #include "src/core_functions/scalar/enum/enum_functions.cpp"
2
+
@@ -0,0 +1,16 @@
1
+ #include "src/core_functions/scalar/generic/alias.cpp"
2
+
3
+ #include "src/core_functions/scalar/generic/current_setting.cpp"
4
+
5
+ #include "src/core_functions/scalar/generic/error.cpp"
6
+
7
+ #include "src/core_functions/scalar/generic/hash.cpp"
8
+
9
+ #include "src/core_functions/scalar/generic/least.cpp"
10
+
11
+ #include "src/core_functions/scalar/generic/stats.cpp"
12
+
13
+ #include "src/core_functions/scalar/generic/typeof.cpp"
14
+
15
+ #include "src/core_functions/scalar/generic/system_functions.cpp"
16
+
@@ -0,0 +1,14 @@
1
+ #include "src/core_functions/scalar/list/array_slice.cpp"
2
+
3
+ #include "src/core_functions/scalar/list/flatten.cpp"
4
+
5
+ #include "src/core_functions/scalar/list/list_aggregates.cpp"
6
+
7
+ #include "src/core_functions/scalar/list/list_lambdas.cpp"
8
+
9
+ #include "src/core_functions/scalar/list/list_value.cpp"
10
+
11
+ #include "src/core_functions/scalar/list/list_sort.cpp"
12
+
13
+ #include "src/core_functions/scalar/list/range.cpp"
14
+
@@ -0,0 +1,12 @@
1
+ #include "src/core_functions/scalar/map/map.cpp"
2
+
3
+ #include "src/core_functions/scalar/map/map_extract.cpp"
4
+
5
+ #include "src/core_functions/scalar/map/map_from_entries.cpp"
6
+
7
+ #include "src/core_functions/scalar/map/map_entries.cpp"
8
+
9
+ #include "src/core_functions/scalar/map/map_keys_values.cpp"
10
+
11
+ #include "src/core_functions/scalar/map/cardinality.cpp"
12
+
@@ -0,0 +1,2 @@
1
+ #include "src/core_functions/scalar/math/numeric.cpp"
2
+
@@ -0,0 +1,2 @@
1
+ #include "src/core_functions/scalar/operators/bitwise.cpp"
2
+
@@ -0,0 +1,4 @@
1
+ #include "src/core_functions/scalar/random/random.cpp"
2
+
3
+ #include "src/core_functions/scalar/random/setseed.cpp"
4
+
@@ -0,0 +1,44 @@
1
+ #include "src/core_functions/scalar/string/ascii.cpp"
2
+
3
+ #include "src/core_functions/scalar/string/bar.cpp"
4
+
5
+ #include "src/core_functions/scalar/string/chr.cpp"
6
+
7
+ #include "src/core_functions/scalar/string/damerau_levenshtein.cpp"
8
+
9
+ #include "src/core_functions/scalar/string/hamming.cpp"
10
+
11
+ #include "src/core_functions/scalar/string/hex.cpp"
12
+
13
+ #include "src/core_functions/scalar/string/instr.cpp"
14
+
15
+ #include "src/core_functions/scalar/string/jaccard.cpp"
16
+
17
+ #include "src/core_functions/scalar/string/jaro_winkler.cpp"
18
+
19
+ #include "src/core_functions/scalar/string/left_right.cpp"
20
+
21
+ #include "src/core_functions/scalar/string/levenshtein.cpp"
22
+
23
+ #include "src/core_functions/scalar/string/md5.cpp"
24
+
25
+ #include "src/core_functions/scalar/string/pad.cpp"
26
+
27
+ #include "src/core_functions/scalar/string/printf.cpp"
28
+
29
+ #include "src/core_functions/scalar/string/repeat.cpp"
30
+
31
+ #include "src/core_functions/scalar/string/replace.cpp"
32
+
33
+ #include "src/core_functions/scalar/string/reverse.cpp"
34
+
35
+ #include "src/core_functions/scalar/string/starts_with.cpp"
36
+
37
+ #include "src/core_functions/scalar/string/string_split.cpp"
38
+
39
+ #include "src/core_functions/scalar/string/translate.cpp"
40
+
41
+ #include "src/core_functions/scalar/string/trim.cpp"
42
+
43
+ #include "src/core_functions/scalar/string/unicode.cpp"
44
+
@@ -0,0 +1,4 @@
1
+ #include "src/core_functions/scalar/struct/struct_pack.cpp"
2
+
3
+ #include "src/core_functions/scalar/struct/struct_insert.cpp"
4
+
@@ -0,0 +1,6 @@
1
+ #include "src/core_functions/scalar/union/union_extract.cpp"
2
+
3
+ #include "src/core_functions/scalar/union/union_tag.cpp"
4
+
5
+ #include "src/core_functions/scalar/union/union_value.cpp"
6
+
@@ -1,12 +1,4 @@
1
- #include "src/function/aggregate/algebraic_functions.cpp"
2
-
3
1
  #include "src/function/aggregate/distributive_functions.cpp"
4
2
 
5
- #include "src/function/aggregate/holistic_functions.cpp"
6
-
7
- #include "src/function/aggregate/nested_functions.cpp"
8
-
9
- #include "src/function/aggregate/regression_functions.cpp"
10
-
11
3
  #include "src/function/aggregate/sorted_aggregate_function.cpp"
12
4
 
@@ -1,28 +1,4 @@
1
- #include "src/function/aggregate/distributive/approx_count.cpp"
2
-
3
- #include "src/function/aggregate/distributive/bitagg.cpp"
4
-
5
- #include "src/function/aggregate/distributive/bitstring_agg.cpp"
6
-
7
1
  #include "src/function/aggregate/distributive/count.cpp"
8
2
 
9
3
  #include "src/function/aggregate/distributive/first.cpp"
10
4
 
11
- #include "src/function/aggregate/distributive/minmax.cpp"
12
-
13
- #include "src/function/aggregate/distributive/string_agg.cpp"
14
-
15
- #include "src/function/aggregate/distributive/sum.cpp"
16
-
17
- #include "src/function/aggregate/distributive/product.cpp"
18
-
19
- #include "src/function/aggregate/distributive/bool.cpp"
20
-
21
- #include "src/function/aggregate/distributive/arg_min_max.cpp"
22
-
23
- #include "src/function/aggregate/distributive/skew.cpp"
24
-
25
- #include "src/function/aggregate/distributive/kurtosis.cpp"
26
-
27
- #include "src/function/aggregate/distributive/entropy.cpp"
28
-
@@ -1,12 +1,10 @@
1
- #include "src/function/scalar/date_functions.cpp"
2
-
3
1
  #include "src/function/scalar/generic_functions.cpp"
4
2
 
5
3
  #include "src/function/scalar/string_functions.cpp"
6
4
 
7
- #include "src/function/scalar/nested_functions.cpp"
5
+ #include "src/function/scalar/strftime_format.cpp"
8
6
 
9
- #include "src/function/scalar/math_functions.cpp"
7
+ #include "src/function/scalar/nested_functions.cpp"
10
8
 
11
9
  #include "src/function/scalar/operators.cpp"
12
10
 
@@ -14,7 +12,3 @@
14
12
 
15
13
  #include "src/function/scalar/sequence_functions.cpp"
16
14
 
17
- #include "src/function/scalar/trigonometrics_functions.cpp"
18
-
19
- #include "src/function/scalar/enum_functions.cpp"
20
-
@@ -1,16 +1,2 @@
1
- #include "src/function/scalar/generic/alias.cpp"
2
-
3
1
  #include "src/function/scalar/generic/constant_or_null.cpp"
4
2
 
5
- #include "src/function/scalar/generic/current_setting.cpp"
6
-
7
- #include "src/function/scalar/generic/hash.cpp"
8
-
9
- #include "src/function/scalar/generic/error.cpp"
10
-
11
- #include "src/function/scalar/generic/least.cpp"
12
-
13
- #include "src/function/scalar/generic/stats.cpp"
14
-
15
- #include "src/function/scalar/generic/typeof.cpp"
16
-
@@ -1,20 +1,6 @@
1
- #include "src/function/scalar/list/list_lambdas.cpp"
2
-
3
1
  #include "src/function/scalar/list/list_concat.cpp"
4
2
 
5
3
  #include "src/function/scalar/list/contains_or_position.cpp"
6
4
 
7
- #include "src/function/scalar/list/list_aggregates.cpp"
8
-
9
- #include "src/function/scalar/list/array_slice.cpp"
10
-
11
5
  #include "src/function/scalar/list/list_extract.cpp"
12
6
 
13
- #include "src/function/scalar/list/list_sort.cpp"
14
-
15
- #include "src/function/scalar/list/list_value.cpp"
16
-
17
- #include "src/function/scalar/list/range.cpp"
18
-
19
- #include "src/function/scalar/list/flatten.cpp"
20
-
@@ -2,8 +2,6 @@
2
2
 
3
3
  #include "src/function/scalar/operators/arithmetic.cpp"
4
4
 
5
- #include "src/function/scalar/operators/bitwise.cpp"
6
-
7
5
  #include "src/function/scalar/operators/multiply.cpp"
8
6
 
9
7
  #include "src/function/scalar/operators/subtract.cpp"
@@ -1,11 +1,3 @@
1
- #include "src/function/scalar/string/ascii.cpp"
2
-
3
- #include "src/function/scalar/string/bar.cpp"
4
-
5
- #include "src/function/scalar/string/chr.cpp"
6
-
7
- #include "src/function/scalar/string/reverse.cpp"
8
-
9
1
  #include "src/function/scalar/string/caseconvert.cpp"
10
2
 
11
3
  #include "src/function/scalar/string/concat.cpp"
@@ -14,51 +6,17 @@
14
6
 
15
7
  #include "src/function/scalar/string/like.cpp"
16
8
 
17
- #include "src/function/scalar/string/md5.cpp"
18
-
19
9
  #include "src/function/scalar/string/nfc_normalize.cpp"
20
10
 
21
- #include "src/function/scalar/string/printf.cpp"
22
-
23
11
  #include "src/function/scalar/string/regexp.cpp"
24
12
 
25
13
  #include "src/function/scalar/string/substring.cpp"
26
14
 
27
- #include "src/function/scalar/string/instr.cpp"
28
-
29
- #include "src/function/scalar/string/pad.cpp"
30
-
31
15
  #include "src/function/scalar/string/prefix.cpp"
32
16
 
33
- #include "src/function/scalar/string/repeat.cpp"
34
-
35
- #include "src/function/scalar/string/replace.cpp"
36
-
37
17
  #include "src/function/scalar/string/strip_accents.cpp"
38
18
 
39
19
  #include "src/function/scalar/string/suffix.cpp"
40
20
 
41
- #include "src/function/scalar/string/translate.cpp"
42
-
43
- #include "src/function/scalar/string/trim.cpp"
44
-
45
- #include "src/function/scalar/string/left_right.cpp"
46
-
47
21
  #include "src/function/scalar/string/contains.cpp"
48
22
 
49
- #include "src/function/scalar/string/starts_with.cpp"
50
-
51
- #include "src/function/scalar/string/string_split.cpp"
52
-
53
- #include "src/function/scalar/string/mismatches.cpp"
54
-
55
- #include "src/function/scalar/string/levenshtein.cpp"
56
-
57
- #include "src/function/scalar/string/damerau_levenshtein.cpp"
58
-
59
- #include "src/function/scalar/string/jaccard.cpp"
60
-
61
- #include "src/function/scalar/string/jaro_winkler.cpp"
62
-
63
- #include "src/function/scalar/string/hex.cpp"
64
-
@@ -1,6 +1,2 @@
1
1
  #include "src/function/scalar/struct/struct_extract.cpp"
2
2
 
3
- #include "src/function/scalar/struct/struct_pack.cpp"
4
-
5
- #include "src/function/scalar/struct/struct_insert.cpp"
6
-
@@ -1,4 +1,2 @@
1
1
  #include "src/function/scalar/system/aggregate_export.cpp"
2
2
 
3
- #include "src/function/scalar/system/system_functions.cpp"
4
-
@@ -6,3 +6,5 @@
6
6
 
7
7
  #include "src/main/extension/extension_load.cpp"
8
8
 
9
+ #include "src/main/extension/extension_util.cpp"
10
+
@@ -1,14 +0,0 @@
1
- #include "duckdb/function/aggregate/algebraic_functions.hpp"
2
- #include "duckdb/function/aggregate/algebraic/covar.hpp"
3
- #include "duckdb/function/aggregate/algebraic/stddev.hpp"
4
- #include "duckdb/function/aggregate/algebraic/corr.hpp"
5
- #include "duckdb/function/function_set.hpp"
6
-
7
- namespace duckdb {
8
- void Corr::RegisterFunction(BuiltinFunctions &set) {
9
- AggregateFunctionSet corr("corr");
10
- corr.AddFunction(AggregateFunction::BinaryAggregate<CorrState, double, double, double, CorrOperation>(
11
- LogicalType::DOUBLE, LogicalType::DOUBLE, LogicalType::DOUBLE));
12
- set.AddFunction(corr);
13
- }
14
- } // namespace duckdb
@@ -1,25 +0,0 @@
1
- #include "duckdb/function/aggregate/algebraic_functions.hpp"
2
- #include "duckdb/common/exception.hpp"
3
- #include "duckdb/common/types/null_value.hpp"
4
- #include "duckdb/common/vector_operations/vector_operations.hpp"
5
- #include "duckdb/function/function_set.hpp"
6
- #include "duckdb/function/aggregate/algebraic/covar.hpp"
7
- #include <cmath>
8
-
9
- namespace duckdb {
10
-
11
- void CovarPopFun::RegisterFunction(BuiltinFunctions &set) {
12
- AggregateFunctionSet covar_pop("covar_pop");
13
- covar_pop.AddFunction(AggregateFunction::BinaryAggregate<CovarState, double, double, double, CovarPopOperation>(
14
- LogicalType::DOUBLE, LogicalType::DOUBLE, LogicalType::DOUBLE));
15
- set.AddFunction(covar_pop);
16
- }
17
-
18
- void CovarSampFun::RegisterFunction(BuiltinFunctions &set) {
19
- AggregateFunctionSet covar_samp("covar_samp");
20
- covar_samp.AddFunction(AggregateFunction::BinaryAggregate<CovarState, double, double, double, CovarSampOperation>(
21
- LogicalType::DOUBLE, LogicalType::DOUBLE, LogicalType::DOUBLE));
22
- set.AddFunction(covar_samp);
23
- }
24
-
25
- } // namespace duckdb
@@ -1,54 +0,0 @@
1
- #include "duckdb/function/aggregate/algebraic_functions.hpp"
2
- #include "duckdb/common/vector_operations/vector_operations.hpp"
3
- #include "duckdb/function/function_set.hpp"
4
- #include "duckdb/function/aggregate/algebraic/stddev.hpp"
5
- #include <cmath>
6
-
7
- namespace duckdb {
8
-
9
- void StdDevSampFun::RegisterFunction(BuiltinFunctions &set) {
10
- AggregateFunctionSet stddev_samp("stddev_samp");
11
- stddev_samp.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, STDDevSampOperation>(
12
- LogicalType::DOUBLE, LogicalType::DOUBLE));
13
- set.AddFunction(stddev_samp);
14
- AggregateFunctionSet stddev("stddev");
15
- stddev.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, STDDevSampOperation>(
16
- LogicalType::DOUBLE, LogicalType::DOUBLE));
17
- set.AddFunction(stddev);
18
- }
19
-
20
- void StdDevPopFun::RegisterFunction(BuiltinFunctions &set) {
21
- AggregateFunctionSet stddev_pop("stddev_pop");
22
- stddev_pop.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, STDDevPopOperation>(
23
- LogicalType::DOUBLE, LogicalType::DOUBLE));
24
- set.AddFunction(stddev_pop);
25
- }
26
-
27
- void VarPopFun::RegisterFunction(BuiltinFunctions &set) {
28
- AggregateFunctionSet var_pop("var_pop");
29
- var_pop.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, VarPopOperation>(
30
- LogicalType::DOUBLE, LogicalType::DOUBLE));
31
- set.AddFunction(var_pop);
32
- }
33
-
34
- void VarSampFun::RegisterFunction(BuiltinFunctions &set) {
35
- AggregateFunctionSet var_samp("var_samp");
36
- var_samp.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, VarSampOperation>(
37
- LogicalType::DOUBLE, LogicalType::DOUBLE));
38
- set.AddFunction(var_samp);
39
- }
40
- void VarianceFun::RegisterFunction(BuiltinFunctions &set) {
41
- AggregateFunctionSet var_samp("variance");
42
- var_samp.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, VarSampOperation>(
43
- LogicalType::DOUBLE, LogicalType::DOUBLE));
44
- set.AddFunction(var_samp);
45
- }
46
-
47
- void StandardErrorOfTheMeanFun::RegisterFunction(BuiltinFunctions &set) {
48
- AggregateFunctionSet sem("sem");
49
- sem.AddFunction(AggregateFunction::UnaryAggregate<StddevState, double, double, StandardErrorOfTheMeanOperation>(
50
- LogicalType::DOUBLE, LogicalType::DOUBLE));
51
- set.AddFunction(sem);
52
- }
53
-
54
- } // namespace duckdb
@@ -1,21 +0,0 @@
1
- #include "duckdb/function/aggregate/algebraic_functions.hpp"
2
- #include "duckdb/function/aggregate_function.hpp"
3
-
4
- namespace duckdb {
5
-
6
- void BuiltinFunctions::RegisterAlgebraicAggregates() {
7
- Register<AvgFun>();
8
-
9
- Register<CovarSampFun>();
10
- Register<CovarPopFun>();
11
-
12
- Register<StdDevSampFun>();
13
- Register<StdDevPopFun>();
14
- Register<VarPopFun>();
15
- Register<VarSampFun>();
16
- Register<VarianceFun>();
17
- Register<StandardErrorOfTheMeanFun>();
18
- Register<Corr>();
19
- }
20
-
21
- } // namespace duckdb
@@ -1,12 +0,0 @@
1
- #include "duckdb/function/aggregate/holistic_functions.hpp"
2
-
3
- namespace duckdb {
4
-
5
- void BuiltinFunctions::RegisterHolisticAggregates() {
6
- Register<QuantileFun>();
7
- Register<ModeFun>();
8
- Register<ApproximateQuantileFun>();
9
- Register<ReservoirQuantileFun>();
10
- }
11
-
12
- } // namespace duckdb
@@ -1,10 +0,0 @@
1
- #include "duckdb/function/aggregate/nested_functions.hpp"
2
-
3
- namespace duckdb {
4
-
5
- void BuiltinFunctions::RegisterNestedAggregates() {
6
- Register<ListFun>();
7
- Register<HistogramFun>();
8
- }
9
-
10
- } // namespace duckdb
@@ -1,21 +0,0 @@
1
- #include "duckdb/function/aggregate/distributive_functions.hpp"
2
- #include "duckdb/common/exception.hpp"
3
- #include "duckdb/common/types/null_value.hpp"
4
- #include "duckdb/common/vector_operations/vector_operations.hpp"
5
- #include "duckdb/function/aggregate/regression_functions.hpp"
6
-
7
- namespace duckdb {
8
-
9
- void BuiltinFunctions::RegisterRegressiveAggregates() {
10
- Register<RegrAvgxFun>();
11
- Register<RegrAvgyFun>();
12
- Register<RegrCountFun>();
13
- Register<RegrSlopeFun>();
14
- Register<RegrR2Fun>();
15
- Register<RegrSYYFun>();
16
- Register<RegrSXXFun>();
17
- Register<RegrSXYFun>();
18
- Register<RegrInterceptFun>();
19
- }
20
-
21
- } // namespace duckdb
@@ -1,22 +0,0 @@
1
- #include "duckdb/function/scalar/date_functions.hpp"
2
-
3
- namespace duckdb {
4
-
5
- void BuiltinFunctions::RegisterDateFunctions() {
6
- Register<AgeFun>();
7
- Register<DateDiffFun>();
8
- Register<DatePartFun>();
9
- Register<DateSubFun>();
10
- Register<DateTruncFun>();
11
- Register<CurrentTimeFun>();
12
- Register<CurrentDateFun>();
13
- Register<CurrentTimestampFun>();
14
- Register<EpochFun>();
15
- Register<MakeDateFun>();
16
- Register<StrfTimeFun>();
17
- Register<StrpTimeFun>();
18
- Register<TimeBucketFun>();
19
- Register<ToIntervalFun>();
20
- }
21
-
22
- } // namespace duckdb
@@ -1,13 +0,0 @@
1
- #include "duckdb/function/scalar/enum_functions.hpp"
2
-
3
- namespace duckdb {
4
-
5
- void BuiltinFunctions::RegisterEnumFunctions() {
6
- Register<EnumFirst>();
7
- Register<EnumLast>();
8
- Register<EnumCode>();
9
- Register<EnumRange>();
10
- Register<EnumRangeBoundary>();
11
- }
12
-
13
- } // namespace duckdb