duckdb 0.8.2-dev1862.0 → 0.8.2-dev2044.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 (283) hide show
  1. package/binding.gyp +9 -9
  2. package/package.json +1 -1
  3. package/src/duckdb/src/catalog/catalog.cpp +1 -1
  4. package/src/duckdb/src/catalog/catalog_entry/index_catalog_entry.cpp +17 -41
  5. package/src/duckdb/src/catalog/catalog_entry/macro_catalog_entry.cpp +2 -10
  6. package/src/duckdb/src/catalog/catalog_entry/schema_catalog_entry.cpp +4 -14
  7. package/src/duckdb/src/catalog/catalog_entry/sequence_catalog_entry.cpp +11 -28
  8. package/src/duckdb/src/catalog/catalog_entry/table_catalog_entry.cpp +11 -38
  9. package/src/duckdb/src/catalog/catalog_entry/view_catalog_entry.cpp +11 -27
  10. package/src/duckdb/src/catalog/catalog_entry.cpp +25 -1
  11. package/src/duckdb/src/common/enum_util.cpp +187 -0
  12. package/src/duckdb/src/common/extra_type_info.cpp +1 -2
  13. package/src/duckdb/src/common/serializer/binary_deserializer.cpp +3 -0
  14. package/src/duckdb/src/common/serializer/binary_serializer.cpp +4 -4
  15. package/src/duckdb/src/common/types/column/column_data_collection.cpp +43 -0
  16. package/src/duckdb/src/common/types/hugeint.cpp +40 -0
  17. package/src/duckdb/src/common/types/vector.cpp +1 -1
  18. package/src/duckdb/src/common/types.cpp +0 -12
  19. package/src/duckdb/src/core_functions/function_list.cpp +1 -0
  20. package/src/duckdb/src/core_functions/scalar/string/to_base.cpp +66 -0
  21. package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +14 -11
  22. package/src/duckdb/src/execution/operator/aggregate/physical_perfecthash_aggregate.cpp +6 -4
  23. package/src/duckdb/src/execution/operator/aggregate/physical_ungrouped_aggregate.cpp +14 -12
  24. package/src/duckdb/src/execution/operator/aggregate/physical_window.cpp +6 -4
  25. package/src/duckdb/src/execution/operator/helper/physical_batch_collector.cpp +8 -6
  26. package/src/duckdb/src/execution/operator/helper/physical_explain_analyze.cpp +2 -2
  27. package/src/duckdb/src/execution/operator/helper/physical_limit.cpp +5 -3
  28. package/src/duckdb/src/execution/operator/helper/physical_materialized_collector.cpp +7 -5
  29. package/src/duckdb/src/execution/operator/helper/physical_vacuum.cpp +7 -5
  30. package/src/duckdb/src/execution/operator/join/physical_asof_join.cpp +5 -4
  31. package/src/duckdb/src/execution/operator/join/physical_blockwise_nl_join.cpp +2 -2
  32. package/src/duckdb/src/execution/operator/join/physical_delim_join.cpp +13 -6
  33. package/src/duckdb/src/execution/operator/join/physical_hash_join.cpp +7 -5
  34. package/src/duckdb/src/execution/operator/join/physical_iejoin.cpp +7 -5
  35. package/src/duckdb/src/execution/operator/join/physical_nested_loop_join.cpp +7 -4
  36. package/src/duckdb/src/execution/operator/join/physical_piecewise_merge_join.cpp +8 -6
  37. package/src/duckdb/src/execution/operator/order/physical_order.cpp +7 -5
  38. package/src/duckdb/src/execution/operator/order/physical_top_n.cpp +7 -5
  39. package/src/duckdb/src/execution/operator/persistent/physical_batch_copy_to_file.cpp +8 -6
  40. package/src/duckdb/src/execution/operator/persistent/physical_batch_insert.cpp +8 -7
  41. package/src/duckdb/src/execution/operator/persistent/physical_copy_to_file.cpp +8 -6
  42. package/src/duckdb/src/execution/operator/persistent/physical_fixed_batch_copy.cpp +11 -9
  43. package/src/duckdb/src/execution/operator/persistent/physical_insert.cpp +10 -10
  44. package/src/duckdb/src/execution/operator/persistent/physical_update.cpp +4 -2
  45. package/src/duckdb/src/execution/operator/schema/physical_create_index.cpp +7 -6
  46. package/src/duckdb/src/execution/physical_operator.cpp +3 -2
  47. package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +1 -1
  48. package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
  49. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/index_catalog_entry.hpp +1 -2
  50. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/macro_catalog_entry.hpp +1 -4
  51. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/schema_catalog_entry.hpp +2 -5
  52. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/sequence_catalog_entry.hpp +1 -6
  53. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/table_catalog_entry.hpp +2 -11
  54. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/view_catalog_entry.hpp +2 -5
  55. package/src/duckdb/src/include/duckdb/catalog/catalog_entry.hpp +14 -0
  56. package/src/duckdb/src/include/duckdb/common/bitpacking.hpp +70 -55
  57. package/src/duckdb/src/include/duckdb/common/constants.hpp +2 -0
  58. package/src/duckdb/src/include/duckdb/common/enum_util.hpp +40 -0
  59. package/src/duckdb/src/include/duckdb/common/enums/index_type.hpp +1 -1
  60. package/src/duckdb/src/include/duckdb/common/enums/operator_result_type.hpp +5 -1
  61. package/src/duckdb/src/include/duckdb/common/hugeint.hpp +15 -0
  62. package/src/duckdb/src/include/duckdb/common/index_vector.hpp +12 -0
  63. package/src/duckdb/src/include/duckdb/common/limits.hpp +52 -149
  64. package/src/duckdb/src/include/duckdb/common/numeric_utils.hpp +48 -0
  65. package/src/duckdb/src/include/duckdb/common/serializer/binary_deserializer.hpp +28 -4
  66. package/src/duckdb/src/include/duckdb/common/serializer/binary_serializer.hpp +12 -5
  67. package/src/duckdb/src/include/duckdb/common/serializer/deserialization_data.hpp +110 -0
  68. package/src/duckdb/src/include/duckdb/common/serializer/format_deserializer.hpp +46 -1
  69. package/src/duckdb/src/include/duckdb/common/serializer/format_serializer.hpp +23 -21
  70. package/src/duckdb/src/include/duckdb/common/serializer/serialization_traits.hpp +12 -4
  71. package/src/duckdb/src/include/duckdb/common/types/column/column_data_collection.hpp +3 -0
  72. package/src/duckdb/src/include/duckdb/core_functions/aggregate/distributive_functions.hpp +1 -1
  73. package/src/duckdb/src/include/duckdb/core_functions/scalar/operators_functions.hpp +1 -1
  74. package/src/duckdb/src/include/duckdb/core_functions/scalar/string_functions.hpp +9 -0
  75. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_hash_aggregate.hpp +3 -3
  76. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_perfecthash_aggregate.hpp +1 -1
  77. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_ungrouped_aggregate.hpp +3 -3
  78. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_window.hpp +2 -2
  79. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_batch_collector.hpp +2 -2
  80. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_explain_analyze.hpp +1 -1
  81. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit.hpp +1 -1
  82. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_materialized_collector.hpp +1 -1
  83. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_vacuum.hpp +2 -2
  84. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_asof_join.hpp +2 -2
  85. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_blockwise_nl_join.hpp +1 -1
  86. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_delim_join.hpp +2 -2
  87. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_hash_join.hpp +2 -2
  88. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_iejoin.hpp +2 -2
  89. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_nested_loop_join.hpp +2 -2
  90. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_piecewise_merge_join.hpp +2 -2
  91. package/src/duckdb/src/include/duckdb/execution/operator/order/physical_order.hpp +2 -2
  92. package/src/duckdb/src/include/duckdb/execution/operator/order/physical_top_n.hpp +2 -2
  93. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_copy_to_file.hpp +2 -2
  94. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_insert.hpp +2 -2
  95. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_copy_to_file.hpp +2 -2
  96. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_fixed_batch_copy.hpp +2 -2
  97. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_insert.hpp +2 -2
  98. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_update.hpp +1 -1
  99. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_index.hpp +2 -2
  100. package/src/duckdb/src/include/duckdb/execution/physical_operator.hpp +3 -3
  101. package/src/duckdb/src/include/duckdb/execution/physical_operator_states.hpp +11 -0
  102. package/src/duckdb/src/include/duckdb/function/macro_function.hpp +3 -0
  103. package/src/duckdb/src/include/duckdb/function/scalar_macro_function.hpp +3 -0
  104. package/src/duckdb/src/include/duckdb/function/table_macro_function.hpp +3 -0
  105. package/src/duckdb/src/include/duckdb/main/extension_entries.hpp +3 -0
  106. package/src/duckdb/src/include/duckdb/parallel/pipeline.hpp +0 -3
  107. package/src/duckdb/src/include/duckdb/parallel/pipeline_executor.hpp +3 -2
  108. package/src/duckdb/src/include/duckdb/parser/column_definition.hpp +6 -5
  109. package/src/duckdb/src/include/duckdb/parser/column_list.hpp +4 -0
  110. package/src/duckdb/src/include/duckdb/parser/constraint.hpp +5 -0
  111. package/src/duckdb/src/include/duckdb/parser/constraints/check_constraint.hpp +3 -0
  112. package/src/duckdb/src/include/duckdb/parser/constraints/foreign_key_constraint.hpp +6 -0
  113. package/src/duckdb/src/include/duckdb/parser/constraints/not_null_constraint.hpp +3 -0
  114. package/src/duckdb/src/include/duckdb/parser/constraints/unique_constraint.hpp +6 -0
  115. package/src/duckdb/src/include/duckdb/parser/expression/between_expression.hpp +1 -1
  116. package/src/duckdb/src/include/duckdb/parser/expression/case_expression.hpp +1 -1
  117. package/src/duckdb/src/include/duckdb/parser/expression/cast_expression.hpp +1 -1
  118. package/src/duckdb/src/include/duckdb/parser/expression/collate_expression.hpp +1 -1
  119. package/src/duckdb/src/include/duckdb/parser/expression/columnref_expression.hpp +1 -1
  120. package/src/duckdb/src/include/duckdb/parser/expression/comparison_expression.hpp +1 -1
  121. package/src/duckdb/src/include/duckdb/parser/expression/conjunction_expression.hpp +1 -1
  122. package/src/duckdb/src/include/duckdb/parser/expression/constant_expression.hpp +1 -1
  123. package/src/duckdb/src/include/duckdb/parser/expression/default_expression.hpp +1 -1
  124. package/src/duckdb/src/include/duckdb/parser/expression/function_expression.hpp +1 -1
  125. package/src/duckdb/src/include/duckdb/parser/expression/lambda_expression.hpp +1 -1
  126. package/src/duckdb/src/include/duckdb/parser/expression/operator_expression.hpp +1 -1
  127. package/src/duckdb/src/include/duckdb/parser/expression/parameter_expression.hpp +1 -1
  128. package/src/duckdb/src/include/duckdb/parser/expression/positional_reference_expression.hpp +1 -1
  129. package/src/duckdb/src/include/duckdb/parser/expression/star_expression.hpp +1 -1
  130. package/src/duckdb/src/include/duckdb/parser/expression/subquery_expression.hpp +1 -1
  131. package/src/duckdb/src/include/duckdb/parser/expression/window_expression.hpp +1 -1
  132. package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_info.hpp +12 -1
  133. package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_table_info.hpp +66 -2
  134. package/src/duckdb/src/include/duckdb/parser/parsed_data/attach_info.hpp +8 -1
  135. package/src/duckdb/src/include/duckdb/parser/parsed_data/copy_info.hpp +8 -1
  136. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_index_info.hpp +4 -1
  137. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_info.hpp +9 -2
  138. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_macro_info.hpp +3 -0
  139. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_schema_info.hpp +3 -0
  140. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_sequence_info.hpp +3 -0
  141. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_table_info.hpp +3 -0
  142. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_type_info.hpp +3 -0
  143. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_view_info.hpp +3 -0
  144. package/src/duckdb/src/include/duckdb/parser/parsed_data/detach_info.hpp +7 -0
  145. package/src/duckdb/src/include/duckdb/parser/parsed_data/drop_info.hpp +7 -0
  146. package/src/duckdb/src/include/duckdb/parser/parsed_data/exported_table_data.hpp +7 -0
  147. package/src/duckdb/src/include/duckdb/parser/parsed_data/load_info.hpp +13 -3
  148. package/src/duckdb/src/include/duckdb/parser/parsed_data/parse_info.hpp +22 -0
  149. package/src/duckdb/src/include/duckdb/parser/parsed_data/pragma_info.hpp +10 -0
  150. package/src/duckdb/src/include/duckdb/parser/parsed_data/show_select_info.hpp +7 -0
  151. package/src/duckdb/src/include/duckdb/parser/parsed_data/transaction_info.hpp +10 -0
  152. package/src/duckdb/src/include/duckdb/parser/parsed_data/vacuum_info.hpp +10 -0
  153. package/src/duckdb/src/include/duckdb/planner/bound_constraint.hpp +0 -8
  154. package/src/duckdb/src/include/duckdb/planner/bound_result_modifier.hpp +6 -0
  155. package/src/duckdb/src/include/duckdb/planner/column_binding.hpp +5 -0
  156. package/src/duckdb/src/include/duckdb/planner/expression/bound_between_expression.hpp +6 -0
  157. package/src/duckdb/src/include/duckdb/planner/expression/bound_case_expression.hpp +6 -0
  158. package/src/duckdb/src/include/duckdb/planner/expression/bound_cast_expression.hpp +6 -0
  159. package/src/duckdb/src/include/duckdb/planner/expression/bound_columnref_expression.hpp +3 -0
  160. package/src/duckdb/src/include/duckdb/planner/expression/bound_comparison_expression.hpp +3 -0
  161. package/src/duckdb/src/include/duckdb/planner/expression/bound_conjunction_expression.hpp +3 -0
  162. package/src/duckdb/src/include/duckdb/planner/expression/bound_constant_expression.hpp +3 -0
  163. package/src/duckdb/src/include/duckdb/planner/expression/bound_default_expression.hpp +3 -0
  164. package/src/duckdb/src/include/duckdb/planner/expression/bound_lambda_expression.hpp +3 -1
  165. package/src/duckdb/src/include/duckdb/planner/expression/bound_lambdaref_expression.hpp +3 -0
  166. package/src/duckdb/src/include/duckdb/planner/expression/bound_operator_expression.hpp +3 -0
  167. package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_data.hpp +5 -2
  168. package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_expression.hpp +7 -0
  169. package/src/duckdb/src/include/duckdb/planner/expression/bound_reference_expression.hpp +3 -0
  170. package/src/duckdb/src/include/duckdb/planner/expression/bound_unnest_expression.hpp +3 -0
  171. package/src/duckdb/src/include/duckdb/planner/expression/list.hpp +1 -0
  172. package/src/duckdb/src/include/duckdb/planner/expression.hpp +3 -0
  173. package/src/duckdb/src/include/duckdb/planner/joinside.hpp +3 -0
  174. package/src/duckdb/src/include/duckdb/planner/logical_operator.hpp +3 -0
  175. package/src/duckdb/src/include/duckdb/planner/operator/logical_aggregate.hpp +3 -0
  176. package/src/duckdb/src/include/duckdb/planner/operator/logical_any_join.hpp +3 -0
  177. package/src/duckdb/src/include/duckdb/planner/operator/logical_column_data_get.hpp +4 -0
  178. package/src/duckdb/src/include/duckdb/planner/operator/logical_comparison_join.hpp +9 -2
  179. package/src/duckdb/src/include/duckdb/planner/operator/logical_create.hpp +9 -6
  180. package/src/duckdb/src/include/duckdb/planner/operator/logical_create_index.hpp +2 -16
  181. package/src/duckdb/src/include/duckdb/planner/operator/logical_create_table.hpp +10 -6
  182. package/src/duckdb/src/include/duckdb/planner/operator/logical_cross_product.hpp +3 -0
  183. package/src/duckdb/src/include/duckdb/planner/operator/logical_cteref.hpp +2 -0
  184. package/src/duckdb/src/include/duckdb/planner/operator/logical_delete.hpp +7 -0
  185. package/src/duckdb/src/include/duckdb/planner/operator/logical_delim_get.hpp +3 -0
  186. package/src/duckdb/src/include/duckdb/planner/operator/logical_distinct.hpp +6 -10
  187. package/src/duckdb/src/include/duckdb/planner/operator/logical_dummy_scan.hpp +2 -0
  188. package/src/duckdb/src/include/duckdb/planner/operator/logical_empty_result.hpp +2 -0
  189. package/src/duckdb/src/include/duckdb/planner/operator/logical_explain.hpp +4 -0
  190. package/src/duckdb/src/include/duckdb/planner/operator/logical_expression_get.hpp +3 -0
  191. package/src/duckdb/src/include/duckdb/planner/operator/logical_filter.hpp +3 -0
  192. package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +6 -0
  193. package/src/duckdb/src/include/duckdb/planner/operator/logical_limit.hpp +3 -0
  194. package/src/duckdb/src/include/duckdb/planner/operator/logical_limit_percent.hpp +3 -0
  195. package/src/duckdb/src/include/duckdb/planner/operator/logical_materialized_cte.hpp +5 -2
  196. package/src/duckdb/src/include/duckdb/planner/operator/logical_order.hpp +7 -35
  197. package/src/duckdb/src/include/duckdb/planner/operator/logical_pivot.hpp +6 -0
  198. package/src/duckdb/src/include/duckdb/planner/operator/logical_positional_join.hpp +3 -0
  199. package/src/duckdb/src/include/duckdb/planner/operator/logical_projection.hpp +3 -0
  200. package/src/duckdb/src/include/duckdb/planner/operator/logical_recursive_cte.hpp +5 -3
  201. package/src/duckdb/src/include/duckdb/planner/operator/logical_reset.hpp +4 -0
  202. package/src/duckdb/src/include/duckdb/planner/operator/logical_sample.hpp +6 -0
  203. package/src/duckdb/src/include/duckdb/planner/operator/logical_set.hpp +4 -0
  204. package/src/duckdb/src/include/duckdb/planner/operator/logical_set_operation.hpp +4 -0
  205. package/src/duckdb/src/include/duckdb/planner/operator/logical_show.hpp +3 -0
  206. package/src/duckdb/src/include/duckdb/planner/operator/logical_simple.hpp +3 -0
  207. package/src/duckdb/src/include/duckdb/planner/operator/logical_top_n.hpp +4 -0
  208. package/src/duckdb/src/include/duckdb/planner/operator/logical_unnest.hpp +2 -0
  209. package/src/duckdb/src/include/duckdb/planner/operator/logical_update.hpp +6 -0
  210. package/src/duckdb/src/include/duckdb/planner/operator/logical_window.hpp +3 -0
  211. package/src/duckdb/src/include/duckdb/planner/tableref/bound_pivotref.hpp +3 -0
  212. package/src/duckdb/src/main/relation/join_relation.cpp +1 -1
  213. package/src/duckdb/src/optimizer/deliminator.cpp +5 -3
  214. package/src/duckdb/src/parallel/pipeline.cpp +0 -17
  215. package/src/duckdb/src/parallel/pipeline_executor.cpp +26 -7
  216. package/src/duckdb/src/parallel/pipeline_finish_event.cpp +55 -1
  217. package/src/duckdb/src/parser/column_definition.cpp +20 -32
  218. package/src/duckdb/src/parser/column_list.cpp +8 -0
  219. package/src/duckdb/src/parser/constraints/foreign_key_constraint.cpp +3 -0
  220. package/src/duckdb/src/parser/constraints/unique_constraint.cpp +3 -0
  221. package/src/duckdb/src/parser/expression/case_expression.cpp +0 -12
  222. package/src/duckdb/src/parser/parsed_data/alter_info.cpp +5 -2
  223. package/src/duckdb/src/parser/parsed_data/alter_table_info.cpp +38 -0
  224. package/src/duckdb/src/parser/parsed_data/create_index_info.cpp +3 -1
  225. package/src/duckdb/src/parser/parsed_data/create_sequence_info.cpp +2 -0
  226. package/src/duckdb/src/parser/parsed_data/detach_info.cpp +1 -1
  227. package/src/duckdb/src/parser/parsed_data/drop_info.cpp +1 -1
  228. package/src/duckdb/src/parser/parsed_data/sample_options.cpp +0 -18
  229. package/src/duckdb/src/parser/parsed_data/transaction_info.cpp +4 -1
  230. package/src/duckdb/src/parser/parsed_data/vacuum_info.cpp +1 -1
  231. package/src/duckdb/src/parser/query_node.cpp +0 -10
  232. package/src/duckdb/src/parser/result_modifier.cpp +0 -13
  233. package/src/duckdb/src/parser/statement/select_statement.cpp +0 -10
  234. package/src/duckdb/src/parser/tableref/pivotref.cpp +0 -16
  235. package/src/duckdb/src/parser/transform/statement/transform_create_index.cpp +5 -4
  236. package/src/duckdb/src/planner/binder/query_node/plan_subquery.cpp +1 -1
  237. package/src/duckdb/src/planner/binder/statement/bind_create.cpp +6 -1
  238. package/src/duckdb/src/planner/binder/tableref/bind_basetableref.cpp +13 -3
  239. package/src/duckdb/src/planner/expression/bound_between_expression.cpp +4 -0
  240. package/src/duckdb/src/planner/expression/bound_cast_expression.cpp +13 -6
  241. package/src/duckdb/src/planner/expression/bound_parameter_expression.cpp +20 -12
  242. package/src/duckdb/src/planner/logical_operator.cpp +13 -1
  243. package/src/duckdb/src/planner/operator/logical_comparison_join.cpp +16 -2
  244. package/src/duckdb/src/planner/operator/logical_create.cpp +14 -0
  245. package/src/duckdb/src/planner/operator/logical_create_index.cpp +20 -0
  246. package/src/duckdb/src/planner/operator/logical_create_table.cpp +16 -0
  247. package/src/duckdb/src/planner/operator/logical_delete.cpp +9 -2
  248. package/src/duckdb/src/planner/operator/logical_delim_join.cpp +2 -4
  249. package/src/duckdb/src/planner/operator/logical_distinct.cpp +13 -0
  250. package/src/duckdb/src/planner/operator/logical_explain.cpp +1 -1
  251. package/src/duckdb/src/planner/operator/logical_insert.cpp +8 -2
  252. package/src/duckdb/src/planner/operator/logical_materialized_cte.cpp +3 -2
  253. package/src/duckdb/src/planner/operator/logical_order.cpp +39 -0
  254. package/src/duckdb/src/planner/operator/logical_pivot.cpp +3 -0
  255. package/src/duckdb/src/planner/operator/logical_recursive_cte.cpp +5 -5
  256. package/src/duckdb/src/planner/operator/logical_sample.cpp +3 -0
  257. package/src/duckdb/src/planner/operator/logical_update.cpp +8 -2
  258. package/src/duckdb/src/planner/parsed_data/bound_create_table_info.cpp +4 -2
  259. package/src/duckdb/src/planner/planner.cpp +11 -0
  260. package/src/duckdb/src/storage/checkpoint_manager.cpp +23 -23
  261. package/src/duckdb/src/storage/compression/bitpacking.cpp +87 -63
  262. package/src/duckdb/src/storage/compression/bitpacking_hugeint.cpp +295 -0
  263. package/src/duckdb/src/storage/serialization/serialize_constraint.cpp +98 -0
  264. package/src/duckdb/src/storage/serialization/serialize_create_info.cpp +188 -0
  265. package/src/duckdb/src/storage/serialization/serialize_expression.cpp +274 -0
  266. package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +729 -0
  267. package/src/duckdb/src/storage/serialization/serialize_macro_function.cpp +62 -0
  268. package/src/duckdb/src/storage/serialization/serialize_nodes.cpp +242 -0
  269. package/src/duckdb/src/storage/serialization/serialize_parse_info.cpp +419 -0
  270. package/src/duckdb/src/storage/serialization/serialize_parsed_expression.cpp +40 -38
  271. package/src/duckdb/src/storage/serialization/serialize_query_node.cpp +36 -36
  272. package/src/duckdb/src/storage/serialization/serialize_result_modifier.cpp +25 -14
  273. package/src/duckdb/src/storage/serialization/serialize_statement.cpp +22 -0
  274. package/src/duckdb/src/storage/serialization/serialize_tableref.cpp +47 -47
  275. package/src/duckdb/src/storage/serialization/serialize_types.cpp +25 -25
  276. package/src/duckdb/src/storage/storage_info.cpp +3 -2
  277. package/src/duckdb/src/storage/wal_replay.cpp +20 -19
  278. package/src/duckdb/ub_extension_icu_third_party_icu_i18n.cpp +6 -6
  279. package/src/duckdb/ub_src_core_functions_scalar_string.cpp +2 -0
  280. package/src/duckdb/ub_src_parser.cpp +0 -2
  281. package/src/duckdb/ub_src_storage_compression.cpp +2 -0
  282. package/src/duckdb/ub_src_storage_serialization.cpp +16 -0
  283. package/src/duckdb/src/parser/common_table_expression_info.cpp +0 -21
@@ -41,6 +41,42 @@ unique_ptr<QueryNode> QueryNode::FormatDeserialize(FormatDeserializer &deseriali
41
41
  return result;
42
42
  }
43
43
 
44
+ void CTENode::FormatSerialize(FormatSerializer &serializer) const {
45
+ QueryNode::FormatSerialize(serializer);
46
+ serializer.WriteProperty("cte_name", ctename);
47
+ serializer.WriteProperty("query", *query);
48
+ serializer.WriteProperty("child", *child);
49
+ serializer.WriteProperty("aliases", aliases);
50
+ }
51
+
52
+ unique_ptr<QueryNode> CTENode::FormatDeserialize(FormatDeserializer &deserializer) {
53
+ auto result = duckdb::unique_ptr<CTENode>(new CTENode());
54
+ deserializer.ReadProperty("cte_name", result->ctename);
55
+ deserializer.ReadProperty("query", result->query);
56
+ deserializer.ReadProperty("child", result->child);
57
+ deserializer.ReadProperty("aliases", result->aliases);
58
+ return std::move(result);
59
+ }
60
+
61
+ void RecursiveCTENode::FormatSerialize(FormatSerializer &serializer) const {
62
+ QueryNode::FormatSerialize(serializer);
63
+ serializer.WriteProperty("cte_name", ctename);
64
+ serializer.WriteProperty("union_all", union_all);
65
+ serializer.WriteProperty("left", *left);
66
+ serializer.WriteProperty("right", *right);
67
+ serializer.WriteProperty("aliases", aliases);
68
+ }
69
+
70
+ unique_ptr<QueryNode> RecursiveCTENode::FormatDeserialize(FormatDeserializer &deserializer) {
71
+ auto result = duckdb::unique_ptr<RecursiveCTENode>(new RecursiveCTENode());
72
+ deserializer.ReadProperty("cte_name", result->ctename);
73
+ deserializer.ReadProperty("union_all", result->union_all);
74
+ deserializer.ReadProperty("left", result->left);
75
+ deserializer.ReadProperty("right", result->right);
76
+ deserializer.ReadProperty("aliases", result->aliases);
77
+ return std::move(result);
78
+ }
79
+
44
80
  void SelectNode::FormatSerialize(FormatSerializer &serializer) const {
45
81
  QueryNode::FormatSerialize(serializer);
46
82
  serializer.WriteProperty("select_list", select_list);
@@ -83,40 +119,4 @@ unique_ptr<QueryNode> SetOperationNode::FormatDeserialize(FormatDeserializer &de
83
119
  return std::move(result);
84
120
  }
85
121
 
86
- void RecursiveCTENode::FormatSerialize(FormatSerializer &serializer) const {
87
- QueryNode::FormatSerialize(serializer);
88
- serializer.WriteProperty("cte_name", ctename);
89
- serializer.WriteProperty("union_all", union_all);
90
- serializer.WriteProperty("left", *left);
91
- serializer.WriteProperty("right", *right);
92
- serializer.WriteProperty("aliases", aliases);
93
- }
94
-
95
- unique_ptr<QueryNode> RecursiveCTENode::FormatDeserialize(FormatDeserializer &deserializer) {
96
- auto result = duckdb::unique_ptr<RecursiveCTENode>(new RecursiveCTENode());
97
- deserializer.ReadProperty("cte_name", result->ctename);
98
- deserializer.ReadProperty("union_all", result->union_all);
99
- deserializer.ReadProperty("left", result->left);
100
- deserializer.ReadProperty("right", result->right);
101
- deserializer.ReadProperty("aliases", result->aliases);
102
- return std::move(result);
103
- }
104
-
105
- void CTENode::FormatSerialize(FormatSerializer &serializer) const {
106
- QueryNode::FormatSerialize(serializer);
107
- serializer.WriteProperty("cte_name", ctename);
108
- serializer.WriteProperty("query", *query);
109
- serializer.WriteProperty("child", *child);
110
- serializer.WriteProperty("aliases", aliases);
111
- }
112
-
113
- unique_ptr<QueryNode> CTENode::FormatDeserialize(FormatDeserializer &deserializer) {
114
- auto result = duckdb::unique_ptr<CTENode>(new CTENode());
115
- deserializer.ReadProperty("cte_name", result->ctename);
116
- deserializer.ReadProperty("query", result->query);
117
- deserializer.ReadProperty("child", result->child);
118
- deserializer.ReadProperty("aliases", result->aliases);
119
- return std::move(result);
120
- }
121
-
122
122
  } // namespace duckdb
@@ -6,6 +6,7 @@
6
6
  #include "duckdb/common/serializer/format_serializer.hpp"
7
7
  #include "duckdb/common/serializer/format_deserializer.hpp"
8
8
  #include "duckdb/parser/result_modifier.hpp"
9
+ #include "duckdb/planner/bound_result_modifier.hpp"
9
10
 
10
11
  namespace duckdb {
11
12
 
@@ -35,17 +36,14 @@ unique_ptr<ResultModifier> ResultModifier::FormatDeserialize(FormatDeserializer
35
36
  return result;
36
37
  }
37
38
 
38
- void LimitModifier::FormatSerialize(FormatSerializer &serializer) const {
39
- ResultModifier::FormatSerialize(serializer);
40
- serializer.WriteOptionalProperty("limit", limit);
41
- serializer.WriteOptionalProperty("offset", offset);
39
+ void BoundOrderModifier::FormatSerialize(FormatSerializer &serializer) const {
40
+ serializer.WriteProperty("orders", orders);
42
41
  }
43
42
 
44
- unique_ptr<ResultModifier> LimitModifier::FormatDeserialize(FormatDeserializer &deserializer) {
45
- auto result = duckdb::unique_ptr<LimitModifier>(new LimitModifier());
46
- deserializer.ReadOptionalProperty("limit", result->limit);
47
- deserializer.ReadOptionalProperty("offset", result->offset);
48
- return std::move(result);
43
+ unique_ptr<BoundOrderModifier> BoundOrderModifier::FormatDeserialize(FormatDeserializer &deserializer) {
44
+ auto result = duckdb::unique_ptr<BoundOrderModifier>(new BoundOrderModifier());
45
+ deserializer.ReadProperty("orders", result->orders);
46
+ return result;
49
47
  }
50
48
 
51
49
  void DistinctModifier::FormatSerialize(FormatSerializer &serializer) const {
@@ -59,14 +57,16 @@ unique_ptr<ResultModifier> DistinctModifier::FormatDeserialize(FormatDeserialize
59
57
  return std::move(result);
60
58
  }
61
59
 
62
- void OrderModifier::FormatSerialize(FormatSerializer &serializer) const {
60
+ void LimitModifier::FormatSerialize(FormatSerializer &serializer) const {
63
61
  ResultModifier::FormatSerialize(serializer);
64
- serializer.WriteProperty("orders", orders);
62
+ serializer.WriteOptionalProperty("limit", limit);
63
+ serializer.WriteOptionalProperty("offset", offset);
65
64
  }
66
65
 
67
- unique_ptr<ResultModifier> OrderModifier::FormatDeserialize(FormatDeserializer &deserializer) {
68
- auto result = duckdb::unique_ptr<OrderModifier>(new OrderModifier());
69
- deserializer.ReadProperty("orders", result->orders);
66
+ unique_ptr<ResultModifier> LimitModifier::FormatDeserialize(FormatDeserializer &deserializer) {
67
+ auto result = duckdb::unique_ptr<LimitModifier>(new LimitModifier());
68
+ deserializer.ReadOptionalProperty("limit", result->limit);
69
+ deserializer.ReadOptionalProperty("offset", result->offset);
70
70
  return std::move(result);
71
71
  }
72
72
 
@@ -83,4 +83,15 @@ unique_ptr<ResultModifier> LimitPercentModifier::FormatDeserialize(FormatDeseria
83
83
  return std::move(result);
84
84
  }
85
85
 
86
+ void OrderModifier::FormatSerialize(FormatSerializer &serializer) const {
87
+ ResultModifier::FormatSerialize(serializer);
88
+ serializer.WriteProperty("orders", orders);
89
+ }
90
+
91
+ unique_ptr<ResultModifier> OrderModifier::FormatDeserialize(FormatDeserializer &deserializer) {
92
+ auto result = duckdb::unique_ptr<OrderModifier>(new OrderModifier());
93
+ deserializer.ReadProperty("orders", result->orders);
94
+ return std::move(result);
95
+ }
96
+
86
97
  } // namespace duckdb
@@ -0,0 +1,22 @@
1
+ //===----------------------------------------------------------------------===//
2
+ // This file is automatically generated by scripts/generate_serialization.py
3
+ // Do not edit this file manually, your changes will be overwritten
4
+ //===----------------------------------------------------------------------===//
5
+
6
+ #include "duckdb/common/serializer/format_serializer.hpp"
7
+ #include "duckdb/common/serializer/format_deserializer.hpp"
8
+ #include "duckdb/parser/statement/select_statement.hpp"
9
+
10
+ namespace duckdb {
11
+
12
+ void SelectStatement::FormatSerialize(FormatSerializer &serializer) const {
13
+ serializer.WriteProperty("node", *node);
14
+ }
15
+
16
+ unique_ptr<SelectStatement> SelectStatement::FormatDeserialize(FormatDeserializer &deserializer) {
17
+ auto result = duckdb::unique_ptr<SelectStatement>(new SelectStatement());
18
+ deserializer.ReadProperty("node", result->node);
19
+ return result;
20
+ }
21
+
22
+ } // namespace duckdb
@@ -67,6 +67,30 @@ unique_ptr<TableRef> BaseTableRef::FormatDeserialize(FormatDeserializer &deseria
67
67
  return std::move(result);
68
68
  }
69
69
 
70
+ void EmptyTableRef::FormatSerialize(FormatSerializer &serializer) const {
71
+ TableRef::FormatSerialize(serializer);
72
+ }
73
+
74
+ unique_ptr<TableRef> EmptyTableRef::FormatDeserialize(FormatDeserializer &deserializer) {
75
+ auto result = duckdb::unique_ptr<EmptyTableRef>(new EmptyTableRef());
76
+ return std::move(result);
77
+ }
78
+
79
+ void ExpressionListRef::FormatSerialize(FormatSerializer &serializer) const {
80
+ TableRef::FormatSerialize(serializer);
81
+ serializer.WriteProperty("expected_names", expected_names);
82
+ serializer.WriteProperty("expected_types", expected_types);
83
+ serializer.WriteProperty("values", values);
84
+ }
85
+
86
+ unique_ptr<TableRef> ExpressionListRef::FormatDeserialize(FormatDeserializer &deserializer) {
87
+ auto result = duckdb::unique_ptr<ExpressionListRef>(new ExpressionListRef());
88
+ deserializer.ReadProperty("expected_names", result->expected_names);
89
+ deserializer.ReadProperty("expected_types", result->expected_types);
90
+ deserializer.ReadProperty("values", result->values);
91
+ return std::move(result);
92
+ }
93
+
70
94
  void JoinRef::FormatSerialize(FormatSerializer &serializer) const {
71
95
  TableRef::FormatSerialize(serializer);
72
96
  serializer.WriteProperty("left", *left);
@@ -88,6 +112,29 @@ unique_ptr<TableRef> JoinRef::FormatDeserialize(FormatDeserializer &deserializer
88
112
  return std::move(result);
89
113
  }
90
114
 
115
+ void PivotRef::FormatSerialize(FormatSerializer &serializer) const {
116
+ TableRef::FormatSerialize(serializer);
117
+ serializer.WriteProperty("source", *source);
118
+ serializer.WriteProperty("aggregates", aggregates);
119
+ serializer.WriteProperty("unpivot_names", unpivot_names);
120
+ serializer.WriteProperty("pivots", pivots);
121
+ serializer.WriteProperty("groups", groups);
122
+ serializer.WriteProperty("column_name_alias", column_name_alias);
123
+ serializer.WriteProperty("include_nulls", include_nulls);
124
+ }
125
+
126
+ unique_ptr<TableRef> PivotRef::FormatDeserialize(FormatDeserializer &deserializer) {
127
+ auto result = duckdb::unique_ptr<PivotRef>(new PivotRef());
128
+ deserializer.ReadProperty("source", result->source);
129
+ deserializer.ReadProperty("aggregates", result->aggregates);
130
+ deserializer.ReadProperty("unpivot_names", result->unpivot_names);
131
+ deserializer.ReadProperty("pivots", result->pivots);
132
+ deserializer.ReadProperty("groups", result->groups);
133
+ deserializer.ReadProperty("column_name_alias", result->column_name_alias);
134
+ deserializer.ReadProperty("include_nulls", result->include_nulls);
135
+ return std::move(result);
136
+ }
137
+
91
138
  void SubqueryRef::FormatSerialize(FormatSerializer &serializer) const {
92
139
  TableRef::FormatSerialize(serializer);
93
140
  serializer.WriteProperty("subquery", *subquery);
@@ -116,51 +163,4 @@ unique_ptr<TableRef> TableFunctionRef::FormatDeserialize(FormatDeserializer &des
116
163
  return std::move(result);
117
164
  }
118
165
 
119
- void EmptyTableRef::FormatSerialize(FormatSerializer &serializer) const {
120
- TableRef::FormatSerialize(serializer);
121
- }
122
-
123
- unique_ptr<TableRef> EmptyTableRef::FormatDeserialize(FormatDeserializer &deserializer) {
124
- auto result = duckdb::unique_ptr<EmptyTableRef>(new EmptyTableRef());
125
- return std::move(result);
126
- }
127
-
128
- void ExpressionListRef::FormatSerialize(FormatSerializer &serializer) const {
129
- TableRef::FormatSerialize(serializer);
130
- serializer.WriteProperty("expected_names", expected_names);
131
- serializer.WriteProperty("expected_types", expected_types);
132
- serializer.WriteProperty("values", values);
133
- }
134
-
135
- unique_ptr<TableRef> ExpressionListRef::FormatDeserialize(FormatDeserializer &deserializer) {
136
- auto result = duckdb::unique_ptr<ExpressionListRef>(new ExpressionListRef());
137
- deserializer.ReadProperty("expected_names", result->expected_names);
138
- deserializer.ReadProperty("expected_types", result->expected_types);
139
- deserializer.ReadProperty("values", result->values);
140
- return std::move(result);
141
- }
142
-
143
- void PivotRef::FormatSerialize(FormatSerializer &serializer) const {
144
- TableRef::FormatSerialize(serializer);
145
- serializer.WriteProperty("source", *source);
146
- serializer.WriteProperty("aggregates", aggregates);
147
- serializer.WriteProperty("unpivot_names", unpivot_names);
148
- serializer.WriteProperty("pivots", pivots);
149
- serializer.WriteProperty("groups", groups);
150
- serializer.WriteProperty("column_name_alias", column_name_alias);
151
- serializer.WriteProperty("include_nulls", include_nulls);
152
- }
153
-
154
- unique_ptr<TableRef> PivotRef::FormatDeserialize(FormatDeserializer &deserializer) {
155
- auto result = duckdb::unique_ptr<PivotRef>(new PivotRef());
156
- deserializer.ReadProperty("source", result->source);
157
- deserializer.ReadProperty("aggregates", result->aggregates);
158
- deserializer.ReadProperty("unpivot_names", result->unpivot_names);
159
- deserializer.ReadProperty("pivots", result->pivots);
160
- deserializer.ReadProperty("groups", result->groups);
161
- deserializer.ReadProperty("column_name_alias", result->column_name_alias);
162
- deserializer.ReadProperty("include_nulls", result->include_nulls);
163
- return std::move(result);
164
- }
165
-
166
166
  } // namespace duckdb
@@ -52,6 +52,21 @@ shared_ptr<ExtraTypeInfo> ExtraTypeInfo::FormatDeserialize(FormatDeserializer &d
52
52
  return result;
53
53
  }
54
54
 
55
+ void AggregateStateTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
56
+ ExtraTypeInfo::FormatSerialize(serializer);
57
+ serializer.WriteProperty("function_name", state_type.function_name);
58
+ serializer.WriteProperty("return_type", state_type.return_type);
59
+ serializer.WriteProperty("bound_argument_types", state_type.bound_argument_types);
60
+ }
61
+
62
+ shared_ptr<ExtraTypeInfo> AggregateStateTypeInfo::FormatDeserialize(FormatDeserializer &deserializer) {
63
+ auto result = duckdb::shared_ptr<AggregateStateTypeInfo>(new AggregateStateTypeInfo());
64
+ deserializer.ReadProperty("function_name", result->state_type.function_name);
65
+ deserializer.ReadProperty("return_type", result->state_type.return_type);
66
+ deserializer.ReadProperty("bound_argument_types", result->state_type.bound_argument_types);
67
+ return std::move(result);
68
+ }
69
+
55
70
  void DecimalTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
56
71
  ExtraTypeInfo::FormatSerialize(serializer);
57
72
  serializer.WriteProperty("width", width);
@@ -65,17 +80,6 @@ shared_ptr<ExtraTypeInfo> DecimalTypeInfo::FormatDeserialize(FormatDeserializer
65
80
  return std::move(result);
66
81
  }
67
82
 
68
- void StringTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
69
- ExtraTypeInfo::FormatSerialize(serializer);
70
- serializer.WriteProperty("collation", collation);
71
- }
72
-
73
- shared_ptr<ExtraTypeInfo> StringTypeInfo::FormatDeserialize(FormatDeserializer &deserializer) {
74
- auto result = duckdb::shared_ptr<StringTypeInfo>(new StringTypeInfo());
75
- deserializer.ReadProperty("collation", result->collation);
76
- return std::move(result);
77
- }
78
-
79
83
  void ListTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
80
84
  ExtraTypeInfo::FormatSerialize(serializer);
81
85
  serializer.WriteProperty("child_type", child_type);
@@ -87,29 +91,25 @@ shared_ptr<ExtraTypeInfo> ListTypeInfo::FormatDeserialize(FormatDeserializer &de
87
91
  return std::move(result);
88
92
  }
89
93
 
90
- void StructTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
94
+ void StringTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
91
95
  ExtraTypeInfo::FormatSerialize(serializer);
92
- serializer.WriteProperty("child_types", child_types);
96
+ serializer.WriteProperty("collation", collation);
93
97
  }
94
98
 
95
- shared_ptr<ExtraTypeInfo> StructTypeInfo::FormatDeserialize(FormatDeserializer &deserializer) {
96
- auto result = duckdb::shared_ptr<StructTypeInfo>(new StructTypeInfo());
97
- deserializer.ReadProperty("child_types", result->child_types);
99
+ shared_ptr<ExtraTypeInfo> StringTypeInfo::FormatDeserialize(FormatDeserializer &deserializer) {
100
+ auto result = duckdb::shared_ptr<StringTypeInfo>(new StringTypeInfo());
101
+ deserializer.ReadProperty("collation", result->collation);
98
102
  return std::move(result);
99
103
  }
100
104
 
101
- void AggregateStateTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
105
+ void StructTypeInfo::FormatSerialize(FormatSerializer &serializer) const {
102
106
  ExtraTypeInfo::FormatSerialize(serializer);
103
- serializer.WriteProperty("function_name", state_type.function_name);
104
- serializer.WriteProperty("return_type", state_type.return_type);
105
- serializer.WriteProperty("bound_argument_types", state_type.bound_argument_types);
107
+ serializer.WriteProperty("child_types", child_types);
106
108
  }
107
109
 
108
- shared_ptr<ExtraTypeInfo> AggregateStateTypeInfo::FormatDeserialize(FormatDeserializer &deserializer) {
109
- auto result = duckdb::shared_ptr<AggregateStateTypeInfo>(new AggregateStateTypeInfo());
110
- deserializer.ReadProperty("function_name", result->state_type.function_name);
111
- deserializer.ReadProperty("return_type", result->state_type.return_type);
112
- deserializer.ReadProperty("bound_argument_types", result->state_type.bound_argument_types);
110
+ shared_ptr<ExtraTypeInfo> StructTypeInfo::FormatDeserialize(FormatDeserializer &deserializer) {
111
+ auto result = duckdb::shared_ptr<StructTypeInfo>(new StructTypeInfo());
112
+ deserializer.ReadProperty("child_types", result->child_types);
113
113
  return std::move(result);
114
114
  }
115
115
 
@@ -2,14 +2,15 @@
2
2
 
3
3
  namespace duckdb {
4
4
 
5
- const uint64_t VERSION_NUMBER = 52;
5
+ const uint64_t VERSION_NUMBER = 53;
6
6
 
7
7
  struct StorageVersionInfo {
8
8
  const char *version_name;
9
9
  idx_t storage_version;
10
10
  };
11
11
 
12
- static StorageVersionInfo storage_version_info[] = {{"v0.7.0 or v0.7.1", 43},
12
+ static StorageVersionInfo storage_version_info[] = {{"v0.8.0 or v0.8.1", 51},
13
+ {"v0.7.0 or v0.7.1", 43},
13
14
  {"v0.6.0 or v0.6.1", 39},
14
15
  {"v0.5.0 or v0.5.1", 38},
15
16
  {"v0.3.3, v0.3.4 or v0.4.0", 33},
@@ -195,7 +195,7 @@ void ReplayState::ReplayEntry(WALType entry_type) {
195
195
  // Replay Table
196
196
  //===--------------------------------------------------------------------===//
197
197
  void ReplayState::ReplayCreateTable() {
198
- auto info = TableCatalogEntry::Deserialize(source, context);
198
+ auto info = TableCatalogEntry::Deserialize(source);
199
199
  if (deserialize_only) {
200
200
  return;
201
201
  }
@@ -234,12 +234,12 @@ void ReplayState::ReplayAlter() {
234
234
  // Replay View
235
235
  //===--------------------------------------------------------------------===//
236
236
  void ReplayState::ReplayCreateView() {
237
- auto entry = ViewCatalogEntry::Deserialize(source, context);
237
+ auto entry = CatalogEntry::Deserialize(source);
238
238
  if (deserialize_only) {
239
239
  return;
240
240
  }
241
241
 
242
- catalog.CreateView(context, *entry);
242
+ catalog.CreateView(context, entry->Cast<CreateViewInfo>());
243
243
  }
244
244
 
245
245
  void ReplayState::ReplayDropView() {
@@ -309,7 +309,7 @@ void ReplayState::ReplayCreateSequence() {
309
309
  return;
310
310
  }
311
311
 
312
- catalog.CreateSequence(context, *entry);
312
+ catalog.CreateSequence(context, entry->Cast<CreateSequenceInfo>());
313
313
  }
314
314
 
315
315
  void ReplayState::ReplayDropSequence() {
@@ -345,12 +345,12 @@ void ReplayState::ReplaySequenceValue() {
345
345
  // Replay Macro
346
346
  //===--------------------------------------------------------------------===//
347
347
  void ReplayState::ReplayCreateMacro() {
348
- auto entry = ScalarMacroCatalogEntry::Deserialize(source, context);
348
+ auto entry = ScalarMacroCatalogEntry::Deserialize(source);
349
349
  if (deserialize_only) {
350
350
  return;
351
351
  }
352
352
 
353
- catalog.CreateFunction(context, *entry);
353
+ catalog.CreateFunction(context, entry->Cast<CreateMacroInfo>());
354
354
  }
355
355
 
356
356
  void ReplayState::ReplayDropMacro() {
@@ -369,12 +369,12 @@ void ReplayState::ReplayDropMacro() {
369
369
  // Replay Table Macro
370
370
  //===--------------------------------------------------------------------===//
371
371
  void ReplayState::ReplayCreateTableMacro() {
372
- auto entry = TableMacroCatalogEntry::Deserialize(source, context);
372
+ auto entry = TableMacroCatalogEntry::Deserialize(source);
373
373
  if (deserialize_only) {
374
374
  return;
375
375
  }
376
376
 
377
- catalog.CreateFunction(context, *entry);
377
+ catalog.CreateFunction(context, entry->Cast<CreateMacroInfo>());
378
378
  }
379
379
 
380
380
  void ReplayState::ReplayDropTableMacro() {
@@ -393,30 +393,31 @@ void ReplayState::ReplayDropTableMacro() {
393
393
  // Replay Index
394
394
  //===--------------------------------------------------------------------===//
395
395
  void ReplayState::ReplayCreateIndex() {
396
- auto info = IndexCatalogEntry::Deserialize(source, context);
396
+ auto info = IndexCatalogEntry::Deserialize(source);
397
397
  if (deserialize_only) {
398
398
  return;
399
399
  }
400
+ auto &index_info = info->Cast<CreateIndexInfo>();
400
401
 
401
402
  // get the physical table to which we'll add the index
402
- auto &table = catalog.GetEntry<TableCatalogEntry>(context, info->schema, info->table->table_name);
403
+ auto &table = catalog.GetEntry<TableCatalogEntry>(context, info->schema, index_info.table);
403
404
  auto &data_table = table.GetStorage();
404
405
 
405
406
  // bind the parsed expressions
406
- if (info->expressions.empty()) {
407
- for (auto &parsed_expr : info->parsed_expressions) {
408
- info->expressions.push_back(parsed_expr->Copy());
407
+ if (index_info.expressions.empty()) {
408
+ for (auto &parsed_expr : index_info.parsed_expressions) {
409
+ index_info.expressions.push_back(parsed_expr->Copy());
409
410
  }
410
411
  }
411
412
  auto binder = Binder::CreateBinder(context);
412
- auto expressions = binder->BindCreateIndexExpressions(table, *info);
413
+ auto expressions = binder->BindCreateIndexExpressions(table, index_info);
413
414
 
414
415
  // create the empty index
415
416
  unique_ptr<Index> index;
416
- switch (info->index_type) {
417
+ switch (index_info.index_type) {
417
418
  case IndexType::ART: {
418
- index = make_uniq<ART>(info->column_ids, TableIOManager::Get(data_table), expressions, info->constraint_type,
419
- data_table.db);
419
+ index = make_uniq<ART>(index_info.column_ids, TableIOManager::Get(data_table), expressions,
420
+ index_info.constraint_type, data_table.db);
420
421
  break;
421
422
  }
422
423
  default:
@@ -424,10 +425,10 @@ void ReplayState::ReplayCreateIndex() {
424
425
  }
425
426
 
426
427
  // add the index to the catalog
427
- auto &index_entry = catalog.CreateIndex(context, *info)->Cast<DuckIndexEntry>();
428
+ auto &index_entry = catalog.CreateIndex(context, index_info)->Cast<DuckIndexEntry>();
428
429
  index_entry.index = index.get();
429
430
  index_entry.info = data_table.info;
430
- for (auto &parsed_expr : info->parsed_expressions) {
431
+ for (auto &parsed_expr : index_info.parsed_expressions) {
431
432
  index_entry.parsed_expressions.push_back(parsed_expr->Copy());
432
433
  }
433
434
 
@@ -348,17 +348,17 @@
348
348
 
349
349
  #include "extension/icu/third_party/icu/i18n/wintzimpl.cpp"
350
350
 
351
- #include "extension/icu/third_party/icu/i18n/double-conversion-strtod.cpp"
352
-
353
- #include "extension/icu/third_party/icu/i18n/double-conversion-fast-dtoa.cpp"
351
+ #include "extension/icu/third_party/icu/i18n/double-conversion-bignum.cpp"
354
352
 
355
- #include "extension/icu/third_party/icu/i18n/double-conversion-string-to-double.cpp"
353
+ #include "extension/icu/third_party/icu/i18n/double-conversion-cached-powers.cpp"
356
354
 
357
- #include "extension/icu/third_party/icu/i18n/double-conversion-bignum.cpp"
355
+ #include "extension/icu/third_party/icu/i18n/double-conversion-strtod.cpp"
358
356
 
359
357
  #include "extension/icu/third_party/icu/i18n/double-conversion-double-to-string.cpp"
360
358
 
359
+ #include "extension/icu/third_party/icu/i18n/double-conversion-string-to-double.cpp"
360
+
361
361
  #include "extension/icu/third_party/icu/i18n/double-conversion-bignum-dtoa.cpp"
362
362
 
363
- #include "extension/icu/third_party/icu/i18n/double-conversion-cached-powers.cpp"
363
+ #include "extension/icu/third_party/icu/i18n/double-conversion-fast-dtoa.cpp"
364
364
 
@@ -38,6 +38,8 @@
38
38
 
39
39
  #include "src/core_functions/scalar/string/string_split.cpp"
40
40
 
41
+ #include "src/core_functions/scalar/string/to_base.cpp"
42
+
41
43
  #include "src/core_functions/scalar/string/translate.cpp"
42
44
 
43
45
  #include "src/core_functions/scalar/string/trim.cpp"
@@ -6,8 +6,6 @@
6
6
 
7
7
  #include "src/parser/constraint.cpp"
8
8
 
9
- #include "src/parser/common_table_expression_info.cpp"
10
-
11
9
  #include "src/parser/expression_util.cpp"
12
10
 
13
11
  #include "src/parser/keyword_helper.cpp"
@@ -14,6 +14,8 @@
14
14
 
15
15
  #include "src/storage/compression/bitpacking.cpp"
16
16
 
17
+ #include "src/storage/compression/bitpacking_hugeint.cpp"
18
+
17
19
  #include "src/storage/compression/patas.cpp"
18
20
 
19
21
  #include "src/storage/compression/fsst.cpp"
@@ -1,9 +1,25 @@
1
+ #include "src/storage/serialization/serialize_constraint.cpp"
2
+
3
+ #include "src/storage/serialization/serialize_create_info.cpp"
4
+
5
+ #include "src/storage/serialization/serialize_expression.cpp"
6
+
7
+ #include "src/storage/serialization/serialize_logical_operator.cpp"
8
+
9
+ #include "src/storage/serialization/serialize_macro_function.cpp"
10
+
11
+ #include "src/storage/serialization/serialize_nodes.cpp"
12
+
1
13
  #include "src/storage/serialization/serialize_parsed_expression.cpp"
2
14
 
15
+ #include "src/storage/serialization/serialize_parse_info.cpp"
16
+
3
17
  #include "src/storage/serialization/serialize_query_node.cpp"
4
18
 
5
19
  #include "src/storage/serialization/serialize_result_modifier.cpp"
6
20
 
21
+ #include "src/storage/serialization/serialize_statement.cpp"
22
+
7
23
  #include "src/storage/serialization/serialize_tableref.cpp"
8
24
 
9
25
  #include "src/storage/serialization/serialize_types.cpp"
@@ -1,21 +0,0 @@
1
- #include "duckdb/parser/common_table_expression_info.hpp"
2
- #include "duckdb/common/serializer/format_serializer.hpp"
3
- #include "duckdb/common/serializer/format_deserializer.hpp"
4
-
5
- namespace duckdb {
6
-
7
- void CommonTableExpressionInfo::FormatSerialize(FormatSerializer &serializer) const {
8
- serializer.WriteProperty("aliases", aliases);
9
- serializer.WriteProperty("query", query);
10
- serializer.WriteProperty("materialized", materialized);
11
- }
12
-
13
- unique_ptr<CommonTableExpressionInfo> CommonTableExpressionInfo::FormatDeserialize(FormatDeserializer &deserializer) {
14
- auto result = make_uniq<CommonTableExpressionInfo>();
15
- result->aliases = deserializer.ReadProperty<vector<string>>("aliases");
16
- result->query = deserializer.ReadProperty<unique_ptr<SelectStatement>>("query");
17
- result->materialized = deserializer.ReadProperty<CTEMaterialize>("materialized");
18
- return result;
19
- }
20
-
21
- } // namespace duckdb