duckdb 0.8.2-dev4142.0 → 0.8.2-dev4314.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +0 -2
- package/lib/duckdb.js +3 -3
- package/package.json +1 -1
- package/src/connection.cpp +9 -8
- package/src/database.cpp +5 -8
- package/src/duckdb/extension/icu/icu-datepart.cpp +2 -2
- package/src/duckdb/extension/icu/icu-strptime.cpp +0 -9
- package/src/duckdb/extension/icu/icu_extension.cpp +3 -3
- package/src/duckdb/extension/icu/third_party/icu/i18n/unicode/gregocal.h +1 -1
- package/src/duckdb/extension/json/buffered_json_reader.cpp +3 -17
- package/src/duckdb/extension/json/include/buffered_json_reader.hpp +2 -5
- package/src/duckdb/extension/json/include/json_deserializer.hpp +2 -2
- package/src/duckdb/extension/json/include/json_scan.hpp +5 -12
- package/src/duckdb/extension/json/include/json_serializer.hpp +3 -3
- package/src/duckdb/extension/json/include/json_transform.hpp +2 -5
- package/src/duckdb/extension/json/json_functions/json_serialize_sql.cpp +1 -1
- package/src/duckdb/extension/json/json_functions/json_transform.cpp +2 -18
- package/src/duckdb/extension/json/json_scan.cpp +7 -76
- package/src/duckdb/extension/json/serialize_json.cpp +8 -8
- package/src/duckdb/extension/parquet/column_writer.cpp +46 -45
- package/src/duckdb/extension/parquet/include/column_writer.hpp +2 -2
- package/src/duckdb/extension/parquet/include/parquet_reader.hpp +2 -5
- package/src/duckdb/extension/parquet/include/parquet_rle_bp_encoder.hpp +4 -4
- package/src/duckdb/extension/parquet/parquet_extension.cpp +74 -55
- package/src/duckdb/extension/parquet/parquet_writer.cpp +3 -2
- package/src/duckdb/extension/parquet/serialize_parquet.cpp +4 -4
- package/src/duckdb/src/catalog/catalog_entry/index_catalog_entry.cpp +0 -1
- package/src/duckdb/src/catalog/catalog_entry/macro_catalog_entry.cpp +0 -1
- package/src/duckdb/src/catalog/catalog_entry/schema_catalog_entry.cpp +0 -1
- package/src/duckdb/src/catalog/catalog_entry/sequence_catalog_entry.cpp +0 -1
- package/src/duckdb/src/catalog/catalog_entry/table_catalog_entry.cpp +0 -2
- package/src/duckdb/src/catalog/catalog_entry/type_catalog_entry.cpp +1 -3
- package/src/duckdb/src/catalog/catalog_entry/view_catalog_entry.cpp +0 -1
- package/src/duckdb/src/catalog/catalog_entry.cpp +2 -11
- package/src/duckdb/src/catalog/catalog_set.cpp +16 -14
- package/src/duckdb/src/catalog/default/default_functions.cpp +2 -2
- package/src/duckdb/src/common/arrow/arrow_converter.cpp +0 -1
- package/src/duckdb/src/common/constants.cpp +0 -1
- package/src/duckdb/src/common/enum_util.cpp +0 -10
- package/src/duckdb/src/common/exception.cpp +1 -1
- package/src/duckdb/src/common/extra_type_info.cpp +20 -192
- package/src/duckdb/src/common/multi_file_reader.cpp +0 -68
- package/src/duckdb/src/common/serializer/binary_serializer.cpp +9 -4
- package/src/duckdb/src/common/serializer/buffered_file_reader.cpp +3 -11
- package/src/duckdb/src/common/serializer/buffered_file_writer.cpp +1 -1
- package/src/duckdb/src/common/serializer/memory_stream.cpp +61 -0
- package/src/duckdb/src/common/serializer/{format_serializer.cpp → serializer.cpp} +2 -2
- package/src/duckdb/src/common/sort/partition_state.cpp +107 -29
- package/src/duckdb/src/common/types/column/column_data_collection.cpp +4 -4
- package/src/duckdb/src/common/types/data_chunk.cpp +11 -43
- package/src/duckdb/src/common/types/hyperloglog.cpp +4 -23
- package/src/duckdb/src/common/types/interval.cpp +2 -2
- package/src/duckdb/src/common/types/value.cpp +10 -135
- package/src/duckdb/src/common/types/vector.cpp +17 -149
- package/src/duckdb/src/common/types.cpp +2 -20
- package/src/duckdb/src/core_functions/aggregate/algebraic/avg.cpp +0 -1
- package/src/duckdb/src/core_functions/aggregate/distributive/string_agg.cpp +6 -7
- package/src/duckdb/src/core_functions/aggregate/holistic/approximate_quantile.cpp +5 -28
- package/src/duckdb/src/core_functions/aggregate/holistic/quantile.cpp +30 -78
- package/src/duckdb/src/core_functions/aggregate/holistic/reservoir_quantile.cpp +5 -30
- package/src/duckdb/src/core_functions/scalar/date/date_part.cpp +6 -9
- package/src/duckdb/src/core_functions/scalar/list/list_aggregates.cpp +21 -16
- package/src/duckdb/src/core_functions/scalar/list/list_lambdas.cpp +15 -23
- package/src/duckdb/src/execution/index/art/art.cpp +5 -1
- package/src/duckdb/src/execution/index/art/leaf.cpp +13 -10
- package/src/duckdb/src/execution/index/art/node48.cpp +0 -2
- package/src/duckdb/src/execution/index/fixed_size_allocator.cpp +38 -73
- package/src/duckdb/src/execution/index/fixed_size_buffer.cpp +245 -27
- package/src/duckdb/src/execution/operator/aggregate/physical_window.cpp +2 -3
- package/src/duckdb/src/execution/operator/join/physical_asof_join.cpp +35 -20
- package/src/duckdb/src/function/macro_function.cpp +0 -42
- package/src/duckdb/src/function/scalar/compressed_materialization/compress_integral.cpp +10 -8
- package/src/duckdb/src/function/scalar/compressed_materialization/compress_string.cpp +13 -12
- package/src/duckdb/src/function/scalar/operators/arithmetic.cpp +9 -11
- package/src/duckdb/src/function/scalar/system/aggregate_export.cpp +7 -33
- package/src/duckdb/src/function/scalar_function.cpp +1 -2
- package/src/duckdb/src/function/scalar_macro_function.cpp +0 -10
- package/src/duckdb/src/function/table/copy_csv.cpp +38 -38
- package/src/duckdb/src/function/table/read_csv.cpp +5 -174
- package/src/duckdb/src/function/table/table_scan.cpp +5 -42
- package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
- package/src/duckdb/src/function/table_function.cpp +3 -4
- package/src/duckdb/src/function/table_macro_function.cpp +0 -10
- package/src/duckdb/src/include/duckdb/catalog/catalog_entry/schema_catalog_entry.hpp +0 -2
- package/src/duckdb/src/include/duckdb/catalog/catalog_entry/sequence_catalog_entry.hpp +0 -2
- package/src/duckdb/src/include/duckdb/catalog/catalog_entry/type_catalog_entry.hpp +0 -2
- package/src/duckdb/src/include/duckdb/catalog/catalog_entry.hpp +3 -8
- package/src/duckdb/src/include/duckdb/common/constants.hpp +4 -2
- package/src/duckdb/src/include/duckdb/common/extra_type_info.hpp +16 -46
- package/src/duckdb/src/include/duckdb/common/index_vector.hpp +4 -4
- package/src/duckdb/src/include/duckdb/common/multi_file_reader.hpp +2 -6
- package/src/duckdb/src/include/duckdb/common/multi_file_reader_options.hpp +0 -4
- package/src/duckdb/src/include/duckdb/common/serializer/binary_deserializer.hpp +44 -23
- package/src/duckdb/src/include/duckdb/common/serializer/binary_serializer.hpp +31 -23
- package/src/duckdb/src/include/duckdb/common/serializer/buffered_file_reader.hpp +4 -6
- package/src/duckdb/src/include/duckdb/common/serializer/buffered_file_writer.hpp +3 -3
- package/src/duckdb/src/include/duckdb/common/serializer/deserialization_data.hpp +17 -0
- package/src/duckdb/src/include/duckdb/common/serializer/{format_deserializer.hpp → deserializer.hpp} +13 -13
- package/src/duckdb/src/include/duckdb/common/serializer/memory_stream.hpp +62 -0
- package/src/duckdb/src/include/duckdb/common/serializer/read_stream.hpp +38 -0
- package/src/duckdb/src/include/duckdb/common/serializer/serialization_traits.hpp +15 -13
- package/src/duckdb/src/include/duckdb/common/serializer/{format_serializer.hpp → serializer.hpp} +13 -12
- package/src/duckdb/src/include/duckdb/common/serializer/write_stream.hpp +36 -0
- package/src/duckdb/src/include/duckdb/common/sort/partition_state.hpp +14 -4
- package/src/duckdb/src/include/duckdb/common/types/column/column_data_collection.hpp +2 -2
- package/src/duckdb/src/include/duckdb/common/types/data_chunk.hpp +3 -8
- package/src/duckdb/src/include/duckdb/common/types/hyperloglog.hpp +4 -10
- package/src/duckdb/src/include/duckdb/common/types/interval.hpp +4 -4
- package/src/duckdb/src/include/duckdb/common/types/value.hpp +1 -5
- package/src/duckdb/src/include/duckdb/common/types/vector.hpp +2 -7
- package/src/duckdb/src/include/duckdb/common/types.hpp +1 -10
- package/src/duckdb/src/include/duckdb/execution/index/art/leaf.hpp +2 -0
- package/src/duckdb/src/include/duckdb/execution/index/fixed_size_allocator.hpp +1 -7
- package/src/duckdb/src/include/duckdb/execution/index/fixed_size_buffer.hpp +38 -8
- package/src/duckdb/src/include/duckdb/execution/operator/scan/csv/csv_reader_options.hpp +2 -11
- package/src/duckdb/src/include/duckdb/function/aggregate_function.hpp +4 -14
- package/src/duckdb/src/include/duckdb/function/copy_function.hpp +3 -3
- package/src/duckdb/src/include/duckdb/function/function_serialization.hpp +15 -98
- package/src/duckdb/src/include/duckdb/function/macro_function.hpp +1 -7
- package/src/duckdb/src/include/duckdb/function/scalar/nested_functions.hpp +9 -10
- package/src/duckdb/src/include/duckdb/function/scalar/strftime_format.hpp +2 -2
- package/src/duckdb/src/include/duckdb/function/scalar_function.hpp +2 -12
- package/src/duckdb/src/include/duckdb/function/scalar_macro_function.hpp +2 -7
- package/src/duckdb/src/include/duckdb/function/table/read_csv.hpp +4 -16
- package/src/duckdb/src/include/duckdb/function/table_function.hpp +2 -11
- package/src/duckdb/src/include/duckdb/function/table_macro_function.hpp +2 -7
- package/src/duckdb/src/include/duckdb/main/relation.hpp +9 -2
- package/src/duckdb/src/include/duckdb/parser/column_definition.hpp +1 -4
- package/src/duckdb/src/include/duckdb/parser/column_list.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/common_table_expression_info.hpp +2 -2
- package/src/duckdb/src/include/duckdb/parser/constraint.hpp +2 -12
- package/src/duckdb/src/include/duckdb/parser/constraints/check_constraint.hpp +2 -5
- package/src/duckdb/src/include/duckdb/parser/constraints/foreign_key_constraint.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/constraints/not_null_constraint.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/constraints/unique_constraint.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/expression/between_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/parser/expression/bound_expression.hpp +1 -4
- package/src/duckdb/src/include/duckdb/parser/expression/case_expression.hpp +4 -6
- package/src/duckdb/src/include/duckdb/parser/expression/cast_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/collate_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/columnref_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/comparison_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/conjunction_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/constant_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/parser/expression/default_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/function_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/lambda_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/operator_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/parameter_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/positional_reference_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/star_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/subquery_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/expression/window_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_info.hpp +2 -5
- package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_scalar_function_info.hpp +0 -2
- package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_table_function_info.hpp +0 -2
- package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_table_info.hpp +24 -51
- package/src/duckdb/src/include/duckdb/parser/parsed_data/attach_info.hpp +1 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/copy_info.hpp +2 -2
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_collation_info.hpp +0 -3
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_copy_function_info.hpp +0 -3
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_function_info.hpp +0 -5
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_index_info.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_info.hpp +1 -13
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_macro_info.hpp +2 -8
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_schema_info.hpp +2 -12
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_sequence_info.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_table_info.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_type_info.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_view_info.hpp +2 -7
- package/src/duckdb/src/include/duckdb/parser/parsed_data/detach_info.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/drop_info.hpp +2 -5
- package/src/duckdb/src/include/duckdb/parser/parsed_data/load_info.hpp +2 -21
- package/src/duckdb/src/include/duckdb/parser/parsed_data/parse_info.hpp +2 -2
- package/src/duckdb/src/include/duckdb/parser/parsed_data/pragma_info.hpp +2 -2
- package/src/duckdb/src/include/duckdb/parser/parsed_data/sample_options.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/transaction_info.hpp +1 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/vacuum_info.hpp +5 -7
- package/src/duckdb/src/include/duckdb/parser/parsed_expression.hpp +3 -16
- package/src/duckdb/src/include/duckdb/parser/query_node/cte_node.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/query_node/recursive_cte_node.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/query_node/select_node.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/query_node/set_operation_node.hpp +2 -4
- package/src/duckdb/src/include/duckdb/parser/query_node.hpp +7 -14
- package/src/duckdb/src/include/duckdb/parser/result_modifier.hpp +14 -32
- package/src/duckdb/src/include/duckdb/parser/statement/select_statement.hpp +4 -9
- package/src/duckdb/src/include/duckdb/parser/tableref/basetableref.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/tableref/emptytableref.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/tableref/expressionlistref.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/tableref/joinref.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/tableref/pivotref.hpp +6 -14
- package/src/duckdb/src/include/duckdb/parser/tableref/subqueryref.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/tableref/table_function_ref.hpp +2 -6
- package/src/duckdb/src/include/duckdb/parser/tableref.hpp +2 -10
- package/src/duckdb/src/include/duckdb/parser/transformer.hpp +1 -0
- package/src/duckdb/src/include/duckdb/planner/bound_constraint.hpp +0 -1
- package/src/duckdb/src/include/duckdb/planner/bound_result_modifier.hpp +2 -8
- package/src/duckdb/src/include/duckdb/planner/column_binding.hpp +4 -4
- package/src/duckdb/src/include/duckdb/planner/expression/bound_aggregate_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/expression/bound_between_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/expression/bound_case_expression.hpp +3 -9
- package/src/duckdb/src/include/duckdb/planner/expression/bound_cast_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_columnref_expression.hpp +2 -8
- package/src/duckdb/src/include/duckdb/planner/expression/bound_comparison_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/expression/bound_conjunction_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_constant_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_default_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_function_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_lambda_expression.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/expression/bound_lambdaref_expression.hpp +2 -8
- package/src/duckdb/src/include/duckdb/planner/expression/bound_operator_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_data.hpp +2 -19
- package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_reference_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_subquery_expression.hpp +0 -3
- package/src/duckdb/src/include/duckdb/planner/expression/bound_unnest_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression/bound_window_expression.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/expression.hpp +2 -14
- package/src/duckdb/src/include/duckdb/planner/filter/conjunction_filter.hpp +4 -8
- package/src/duckdb/src/include/duckdb/planner/filter/constant_filter.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/filter/null_filter.hpp +4 -8
- package/src/duckdb/src/include/duckdb/planner/joinside.hpp +1 -6
- package/src/duckdb/src/include/duckdb/planner/logical_operator.hpp +2 -17
- package/src/duckdb/src/include/duckdb/planner/operator/logical_aggregate.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_any_join.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_column_data_get.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_comparison_join.hpp +2 -6
- package/src/duckdb/src/include/duckdb/planner/operator/logical_copy_to_file.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_create.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_create_index.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_create_table.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_cross_product.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_cteref.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_delete.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_delim_get.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_dependent_join.hpp +0 -1
- package/src/duckdb/src/include/duckdb/planner/operator/logical_distinct.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_dummy_scan.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_empty_result.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_execute.hpp +0 -2
- package/src/duckdb/src/include/duckdb/planner/operator/logical_explain.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_export.hpp +0 -3
- package/src/duckdb/src/include/duckdb/planner/operator/logical_expression_get.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_extension_operator.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_filter.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_get.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_join.hpp +0 -2
- package/src/duckdb/src/include/duckdb/planner/operator/logical_limit.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_limit_percent.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_materialized_cte.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_order.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_pivot.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_positional_join.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_pragma.hpp +0 -2
- package/src/duckdb/src/include/duckdb/planner/operator/logical_prepare.hpp +0 -2
- package/src/duckdb/src/include/duckdb/planner/operator/logical_projection.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_recursive_cte.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_reset.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_sample.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_set.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_set_operation.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_show.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_simple.hpp +2 -5
- package/src/duckdb/src/include/duckdb/planner/operator/logical_top_n.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_unnest.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_update.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator/logical_window.hpp +2 -4
- package/src/duckdb/src/include/duckdb/planner/operator_extension.hpp +1 -3
- package/src/duckdb/src/include/duckdb/planner/parsed_data/bound_create_table_info.hpp +0 -5
- package/src/duckdb/src/include/duckdb/planner/table_filter.hpp +3 -12
- package/src/duckdb/src/include/duckdb/planner/tableref/bound_pivotref.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/block.hpp +7 -4
- package/src/duckdb/src/include/duckdb/storage/checkpoint/row_group_writer.hpp +3 -2
- package/src/duckdb/src/include/duckdb/storage/checkpoint/table_data_writer.hpp +6 -6
- package/src/duckdb/src/include/duckdb/storage/checkpoint_manager.hpp +18 -18
- package/src/duckdb/src/include/duckdb/storage/data_pointer.hpp +6 -0
- package/src/duckdb/src/include/duckdb/storage/data_table.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_manager.hpp +4 -5
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_reader.hpp +2 -1
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_writer.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/partial_block_manager.hpp +35 -19
- package/src/duckdb/src/include/duckdb/storage/statistics/base_statistics.hpp +2 -11
- package/src/duckdb/src/include/duckdb/storage/statistics/column_statistics.hpp +3 -5
- package/src/duckdb/src/include/duckdb/storage/statistics/distinct_statistics.hpp +3 -11
- package/src/duckdb/src/include/duckdb/storage/statistics/list_stats.hpp +2 -7
- package/src/duckdb/src/include/duckdb/storage/statistics/node_statistics.hpp +0 -26
- package/src/duckdb/src/include/duckdb/storage/statistics/numeric_stats.hpp +2 -7
- package/src/duckdb/src/include/duckdb/storage/statistics/string_stats.hpp +2 -7
- package/src/duckdb/src/include/duckdb/storage/statistics/struct_stats.hpp +2 -7
- package/src/duckdb/src/include/duckdb/storage/storage_info.hpp +4 -6
- package/src/duckdb/src/include/duckdb/storage/table/chunk_info.hpp +8 -17
- package/src/duckdb/src/include/duckdb/storage/table/column_checkpoint_state.hpp +5 -20
- package/src/duckdb/src/include/duckdb/storage/table/column_data.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/table/list_column_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/table/row_group.hpp +2 -7
- package/src/duckdb/src/include/duckdb/storage/table/standard_column_data.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/table/table_statistics.hpp +4 -7
- package/src/duckdb/src/include/duckdb/storage/write_ahead_log.hpp +27 -29
- package/src/duckdb/src/include/duckdb/verification/statement_verifier.hpp +0 -2
- package/src/duckdb/src/main/client_context.cpp +0 -6
- package/src/duckdb/src/main/client_verify.cpp +0 -2
- package/src/duckdb/src/main/extension/extension_helper.cpp +1 -0
- package/src/duckdb/src/main/relation.cpp +15 -2
- package/src/duckdb/src/parser/column_definition.cpp +0 -25
- package/src/duckdb/src/parser/column_list.cpp +0 -13
- package/src/duckdb/src/parser/constraint.cpp +0 -33
- package/src/duckdb/src/parser/constraints/check_constraint.cpp +0 -11
- package/src/duckdb/src/parser/constraints/foreign_key_constraint.cpp +0 -27
- package/src/duckdb/src/parser/constraints/not_null_constraint.cpp +0 -11
- package/src/duckdb/src/parser/constraints/unique_constraint.cpp +0 -24
- package/src/duckdb/src/parser/expression/between_expression.cpp +2 -16
- package/src/duckdb/src/parser/expression/case_expression.cpp +2 -29
- package/src/duckdb/src/parser/expression/cast_expression.cpp +2 -16
- package/src/duckdb/src/parser/expression/collate_expression.cpp +2 -14
- package/src/duckdb/src/parser/expression/columnref_expression.cpp +2 -13
- package/src/duckdb/src/parser/expression/comparison_expression.cpp +2 -14
- package/src/duckdb/src/parser/expression/conjunction_expression.cpp +2 -13
- package/src/duckdb/src/parser/expression/constant_expression.cpp +2 -12
- package/src/duckdb/src/parser/expression/default_expression.cpp +2 -9
- package/src/duckdb/src/parser/expression/function_expression.cpp +2 -32
- package/src/duckdb/src/parser/expression/lambda_expression.cpp +2 -14
- package/src/duckdb/src/parser/expression/operator_expression.cpp +2 -13
- package/src/duckdb/src/parser/expression/parameter_expression.cpp +2 -13
- package/src/duckdb/src/parser/expression/positional_reference_expression.cpp +2 -12
- package/src/duckdb/src/parser/expression/star_expression.cpp +2 -43
- package/src/duckdb/src/parser/expression/subquery_expression.cpp +2 -28
- package/src/duckdb/src/parser/expression/window_expression.cpp +2 -53
- package/src/duckdb/src/parser/parsed_data/alter_info.cpp +0 -35
- package/src/duckdb/src/parser/parsed_data/alter_scalar_function_info.cpp +0 -18
- package/src/duckdb/src/parser/parsed_data/alter_table_function_info.cpp +0 -13
- package/src/duckdb/src/parser/parsed_data/alter_table_info.cpp +1 -189
- package/src/duckdb/src/parser/parsed_data/attach_info.cpp +0 -29
- package/src/duckdb/src/parser/parsed_data/create_collation_info.cpp +0 -4
- package/src/duckdb/src/parser/parsed_data/create_copy_function_info.cpp +0 -4
- package/src/duckdb/src/parser/parsed_data/create_index_info.cpp +0 -48
- package/src/duckdb/src/parser/parsed_data/create_info.cpp +0 -47
- package/src/duckdb/src/parser/parsed_data/create_macro_info.cpp +1 -28
- package/src/duckdb/src/parser/parsed_data/create_sequence_info.cpp +0 -31
- package/src/duckdb/src/parser/parsed_data/create_table_info.cpp +0 -23
- package/src/duckdb/src/parser/parsed_data/create_type_info.cpp +0 -22
- package/src/duckdb/src/parser/parsed_data/create_view_info.cpp +0 -23
- package/src/duckdb/src/parser/parsed_data/detach_info.cpp +0 -19
- package/src/duckdb/src/parser/parsed_data/drop_info.cpp +0 -26
- package/src/duckdb/src/parser/parsed_data/sample_options.cpp +2 -25
- package/src/duckdb/src/parser/parsed_data/transaction_info.cpp +0 -16
- package/src/duckdb/src/parser/parsed_data/vacuum_info.cpp +0 -20
- package/src/duckdb/src/parser/parsed_expression.cpp +2 -79
- package/src/duckdb/src/parser/query_node/cte_node.cpp +2 -19
- package/src/duckdb/src/parser/query_node/recursive_cte_node.cpp +2 -21
- package/src/duckdb/src/parser/query_node/select_node.cpp +2 -47
- package/src/duckdb/src/parser/query_node/set_operation_node.cpp +2 -17
- package/src/duckdb/src/parser/query_node.cpp +2 -62
- package/src/duckdb/src/parser/result_modifier.cpp +2 -96
- package/src/duckdb/src/parser/statement/select_statement.cpp +2 -13
- package/src/duckdb/src/parser/tableref/basetableref.cpp +2 -21
- package/src/duckdb/src/parser/tableref/emptytableref.cpp +0 -9
- package/src/duckdb/src/parser/tableref/expressionlistref.cpp +2 -28
- package/src/duckdb/src/parser/tableref/joinref.cpp +2 -23
- package/src/duckdb/src/parser/tableref/pivotref.cpp +0 -61
- package/src/duckdb/src/parser/tableref/subqueryref.cpp +2 -15
- package/src/duckdb/src/parser/tableref/table_function.cpp +2 -17
- package/src/duckdb/src/parser/tableref.cpp +2 -52
- package/src/duckdb/src/planner/binder/expression/bind_subquery_expression.cpp +1 -4
- package/src/duckdb/src/planner/bound_result_modifier.cpp +0 -33
- package/src/duckdb/src/planner/expression/bound_aggregate_expression.cpp +6 -30
- package/src/duckdb/src/planner/expression/bound_between_expression.cpp +0 -19
- package/src/duckdb/src/planner/expression/bound_case_expression.cpp +0 -36
- package/src/duckdb/src/planner/expression/bound_cast_expression.cpp +0 -15
- package/src/duckdb/src/planner/expression/bound_columnref_expression.cpp +0 -20
- package/src/duckdb/src/planner/expression/bound_comparison_expression.cpp +0 -13
- package/src/duckdb/src/planner/expression/bound_conjunction_expression.cpp +0 -13
- package/src/duckdb/src/planner/expression/bound_constant_expression.cpp +0 -11
- package/src/duckdb/src/planner/expression/bound_expression.cpp +1 -5
- package/src/duckdb/src/planner/expression/bound_function_expression.cpp +8 -28
- package/src/duckdb/src/planner/expression/bound_lambda_expression.cpp +0 -4
- package/src/duckdb/src/planner/expression/bound_lambdaref_expression.cpp +0 -23
- package/src/duckdb/src/planner/expression/bound_operator_expression.cpp +0 -16
- package/src/duckdb/src/planner/expression/bound_parameter_expression.cpp +0 -18
- package/src/duckdb/src/planner/expression/bound_reference_expression.cpp +0 -16
- package/src/duckdb/src/planner/expression/bound_subquery_expression.cpp +0 -4
- package/src/duckdb/src/planner/expression/bound_unnest_expression.cpp +0 -15
- package/src/duckdb/src/planner/expression/bound_window_expression.cpp +7 -60
- package/src/duckdb/src/planner/expression.cpp +0 -74
- package/src/duckdb/src/planner/filter/conjunction_filter.cpp +0 -21
- package/src/duckdb/src/planner/filter/constant_filter.cpp +0 -12
- package/src/duckdb/src/planner/filter/null_filter.cpp +0 -14
- package/src/duckdb/src/planner/joinside.cpp +0 -24
- package/src/duckdb/src/planner/logical_operator.cpp +15 -215
- package/src/duckdb/src/planner/operator/logical_aggregate.cpp +0 -46
- package/src/duckdb/src/planner/operator/logical_any_join.cpp +0 -14
- package/src/duckdb/src/planner/operator/logical_column_data_get.cpp +0 -23
- package/src/duckdb/src/planner/operator/logical_comparison_join.cpp +0 -23
- package/src/duckdb/src/planner/operator/logical_copy_to_file.cpp +2 -56
- package/src/duckdb/src/planner/operator/logical_create.cpp +0 -12
- package/src/duckdb/src/planner/operator/logical_create_index.cpp +0 -25
- package/src/duckdb/src/planner/operator/logical_create_table.cpp +0 -10
- package/src/duckdb/src/planner/operator/logical_cross_product.cpp +0 -9
- package/src/duckdb/src/planner/operator/logical_cteref.cpp +0 -18
- package/src/duckdb/src/planner/operator/logical_delete.cpp +0 -22
- package/src/duckdb/src/planner/operator/logical_delim_get.cpp +0 -12
- package/src/duckdb/src/planner/operator/logical_dependent_join.cpp +0 -4
- package/src/duckdb/src/planner/operator/logical_distinct.cpp +0 -16
- package/src/duckdb/src/planner/operator/logical_dummy_scan.cpp +0 -10
- package/src/duckdb/src/planner/operator/logical_empty_result.cpp +0 -15
- package/src/duckdb/src/planner/operator/logical_expression_get.cpp +0 -24
- package/src/duckdb/src/planner/operator/logical_extension_operator.cpp +6 -19
- package/src/duckdb/src/planner/operator/logical_filter.cpp +0 -15
- package/src/duckdb/src/planner/operator/logical_get.cpp +12 -97
- package/src/duckdb/src/planner/operator/logical_insert.cpp +0 -77
- package/src/duckdb/src/planner/operator/logical_join.cpp +0 -17
- package/src/duckdb/src/planner/operator/logical_limit.cpp +0 -16
- package/src/duckdb/src/planner/operator/logical_limit_percent.cpp +0 -16
- package/src/duckdb/src/planner/operator/logical_materialized_cte.cpp +0 -13
- package/src/duckdb/src/planner/operator/logical_order.cpp +0 -15
- package/src/duckdb/src/planner/operator/logical_pivot.cpp +0 -20
- package/src/duckdb/src/planner/operator/logical_positional_join.cpp +0 -10
- package/src/duckdb/src/planner/operator/logical_pragma.cpp +0 -8
- package/src/duckdb/src/planner/operator/logical_prepare.cpp +0 -8
- package/src/duckdb/src/planner/operator/logical_projection.cpp +0 -12
- package/src/duckdb/src/planner/operator/logical_recursive_cte.cpp +0 -15
- package/src/duckdb/src/planner/operator/logical_reset.cpp +0 -12
- package/src/duckdb/src/planner/operator/logical_sample.cpp +0 -11
- package/src/duckdb/src/planner/operator/logical_set.cpp +0 -14
- package/src/duckdb/src/planner/operator/logical_set_operation.cpp +0 -13
- package/src/duckdb/src/planner/operator/logical_simple.cpp +0 -60
- package/src/duckdb/src/planner/operator/logical_top_n.cpp +0 -14
- package/src/duckdb/src/planner/operator/logical_unnest.cpp +0 -14
- package/src/duckdb/src/planner/operator/logical_update.cpp +0 -28
- package/src/duckdb/src/planner/operator/logical_window.cpp +0 -13
- package/src/duckdb/src/planner/planner.cpp +13 -22
- package/src/duckdb/src/planner/table_filter.cpp +0 -59
- package/src/duckdb/src/storage/checkpoint/row_group_writer.cpp +7 -17
- package/src/duckdb/src/storage/checkpoint/table_data_reader.cpp +7 -4
- package/src/duckdb/src/storage/checkpoint/table_data_writer.cpp +24 -22
- package/src/duckdb/src/storage/checkpoint_manager.cpp +203 -180
- package/src/duckdb/src/storage/data_table.cpp +2 -2
- package/src/duckdb/src/storage/metadata/metadata_manager.cpp +11 -9
- package/src/duckdb/src/storage/partial_block_manager.cpp +42 -15
- package/src/duckdb/src/storage/serialization/serialize_constraint.cpp +20 -20
- package/src/duckdb/src/storage/serialization/serialize_create_info.cpp +46 -42
- package/src/duckdb/src/storage/serialization/serialize_expression.cpp +63 -63
- package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +167 -165
- package/src/duckdb/src/storage/serialization/serialize_macro_function.cpp +12 -12
- package/src/duckdb/src/storage/serialization/serialize_nodes.cpp +54 -54
- package/src/duckdb/src/storage/serialization/serialize_parse_info.cpp +88 -88
- package/src/duckdb/src/storage/serialization/serialize_parsed_expression.cpp +72 -72
- package/src/duckdb/src/storage/serialization/serialize_query_node.cpp +20 -20
- package/src/duckdb/src/storage/serialization/serialize_result_modifier.cpp +22 -22
- package/src/duckdb/src/storage/serialization/serialize_statement.cpp +4 -4
- package/src/duckdb/src/storage/serialization/serialize_storage.cpp +41 -6
- package/src/duckdb/src/storage/serialization/serialize_table_filter.cpp +24 -24
- package/src/duckdb/src/storage/serialization/serialize_tableref.cpp +32 -32
- package/src/duckdb/src/storage/serialization/serialize_types.cpp +29 -29
- package/src/duckdb/src/storage/single_file_block_manager.cpp +17 -22
- package/src/duckdb/src/storage/statistics/base_statistics.cpp +31 -85
- package/src/duckdb/src/storage/statistics/column_statistics.cpp +6 -19
- package/src/duckdb/src/storage/statistics/distinct_statistics.cpp +0 -26
- package/src/duckdb/src/storage/statistics/list_stats.cpp +6 -22
- package/src/duckdb/src/storage/statistics/numeric_stats.cpp +20 -135
- package/src/duckdb/src/storage/statistics/string_stats.cpp +5 -28
- package/src/duckdb/src/storage/statistics/struct_stats.cpp +8 -30
- package/src/duckdb/src/storage/storage_info.cpp +1 -1
- package/src/duckdb/src/storage/table/chunk_info.cpp +9 -88
- package/src/duckdb/src/storage/table/column_checkpoint_state.cpp +28 -34
- package/src/duckdb/src/storage/table/column_data.cpp +20 -25
- package/src/duckdb/src/storage/table/list_column_data.cpp +16 -9
- package/src/duckdb/src/storage/table/row_group.cpp +16 -92
- package/src/duckdb/src/storage/table/row_group_collection.cpp +5 -1
- package/src/duckdb/src/storage/table/standard_column_data.cpp +10 -7
- package/src/duckdb/src/storage/table/struct_column_data.cpp +17 -11
- package/src/duckdb/src/storage/table/table_statistics.cpp +13 -22
- package/src/duckdb/src/storage/wal_replay.cpp +108 -106
- package/src/duckdb/src/storage/write_ahead_log.cpp +135 -64
- package/src/duckdb/src/transaction/commit_state.cpp +22 -8
- package/src/duckdb/src/verification/deserialized_statement_verifier.cpp +11 -6
- package/src/duckdb/src/verification/statement_verifier.cpp +0 -5
- package/src/duckdb/third_party/parquet/parquet_types.h +1 -1
- package/src/duckdb/ub_src_common.cpp +0 -4
- package/src/duckdb/ub_src_common_serializer.cpp +2 -4
- package/src/duckdb/ub_src_planner.cpp +0 -2
- package/src/duckdb/ub_src_planner_expression.cpp +0 -2
- package/src/duckdb/ub_src_planner_operator.cpp +0 -8
- package/src/duckdb_node.cpp +6 -12
- package/src/duckdb_node.hpp +23 -13
- package/src/statement.cpp +15 -16
- package/test/database_fail.test.ts +20 -0
- package/test/worker.js +7 -0
- package/src/duckdb/src/common/field_writer.cpp +0 -97
- package/src/duckdb/src/common/serializer/buffered_deserializer.cpp +0 -27
- package/src/duckdb/src/common/serializer/buffered_serializer.cpp +0 -36
- package/src/duckdb/src/common/serializer.cpp +0 -24
- package/src/duckdb/src/include/duckdb/common/field_writer.hpp +0 -379
- package/src/duckdb/src/include/duckdb/common/serializer/buffered_deserializer.hpp +0 -41
- package/src/duckdb/src/include/duckdb/common/serializer/buffered_serializer.hpp +0 -50
- package/src/duckdb/src/include/duckdb/common/serializer.hpp +0 -151
- package/src/duckdb/src/include/duckdb/planner/plan_serialization.hpp +0 -44
- package/src/duckdb/src/include/duckdb/verification/deserialized_statement_verifier_v2.hpp +0 -32
- package/src/duckdb/src/planner/expression/bound_default_expression.cpp +0 -16
- package/src/duckdb/src/planner/operator/logical_execute.cpp +0 -12
- package/src/duckdb/src/planner/operator/logical_explain.cpp +0 -22
- package/src/duckdb/src/planner/operator/logical_export.cpp +0 -13
- package/src/duckdb/src/planner/operator/logical_show.cpp +0 -21
- package/src/duckdb/src/planner/parsed_data/bound_create_table_info.cpp +0 -22
- package/src/duckdb/src/planner/plan_serialization.cpp +0 -20
- package/src/duckdb/src/verification/deserialized_statement_verifier_v2.cpp +0 -34
- package/src/duckdb/ub_src_planner_parsed_data.cpp +0 -2
@@ -3,31 +3,31 @@
|
|
3
3
|
// Do not edit this file manually, your changes will be overwritten
|
4
4
|
//===----------------------------------------------------------------------===//
|
5
5
|
|
6
|
-
#include "duckdb/common/serializer/
|
7
|
-
#include "duckdb/common/serializer/
|
6
|
+
#include "duckdb/common/serializer/serializer.hpp"
|
7
|
+
#include "duckdb/common/serializer/deserializer.hpp"
|
8
8
|
#include "duckdb/function/macro_function.hpp"
|
9
9
|
#include "duckdb/function/scalar_macro_function.hpp"
|
10
10
|
#include "duckdb/function/table_macro_function.hpp"
|
11
11
|
|
12
12
|
namespace duckdb {
|
13
13
|
|
14
|
-
void MacroFunction::
|
14
|
+
void MacroFunction::Serialize(Serializer &serializer) const {
|
15
15
|
serializer.WriteProperty(100, "type", type);
|
16
16
|
serializer.WriteProperty(101, "parameters", parameters);
|
17
17
|
serializer.WriteProperty(102, "default_parameters", default_parameters);
|
18
18
|
}
|
19
19
|
|
20
|
-
unique_ptr<MacroFunction> MacroFunction::
|
20
|
+
unique_ptr<MacroFunction> MacroFunction::Deserialize(Deserializer &deserializer) {
|
21
21
|
auto type = deserializer.ReadProperty<MacroType>(100, "type");
|
22
22
|
auto parameters = deserializer.ReadProperty<vector<unique_ptr<ParsedExpression>>>(101, "parameters");
|
23
23
|
auto default_parameters = deserializer.ReadProperty<unordered_map<string, unique_ptr<ParsedExpression>>>(102, "default_parameters");
|
24
24
|
unique_ptr<MacroFunction> result;
|
25
25
|
switch (type) {
|
26
26
|
case MacroType::SCALAR_MACRO:
|
27
|
-
result = ScalarMacroFunction::
|
27
|
+
result = ScalarMacroFunction::Deserialize(deserializer);
|
28
28
|
break;
|
29
29
|
case MacroType::TABLE_MACRO:
|
30
|
-
result = TableMacroFunction::
|
30
|
+
result = TableMacroFunction::Deserialize(deserializer);
|
31
31
|
break;
|
32
32
|
default:
|
33
33
|
throw SerializationException("Unsupported type for deserialization of MacroFunction!");
|
@@ -37,23 +37,23 @@ unique_ptr<MacroFunction> MacroFunction::FormatDeserialize(FormatDeserializer &d
|
|
37
37
|
return result;
|
38
38
|
}
|
39
39
|
|
40
|
-
void ScalarMacroFunction::
|
41
|
-
MacroFunction::
|
40
|
+
void ScalarMacroFunction::Serialize(Serializer &serializer) const {
|
41
|
+
MacroFunction::Serialize(serializer);
|
42
42
|
serializer.WriteProperty(200, "expression", expression);
|
43
43
|
}
|
44
44
|
|
45
|
-
unique_ptr<MacroFunction> ScalarMacroFunction::
|
45
|
+
unique_ptr<MacroFunction> ScalarMacroFunction::Deserialize(Deserializer &deserializer) {
|
46
46
|
auto result = duckdb::unique_ptr<ScalarMacroFunction>(new ScalarMacroFunction());
|
47
47
|
deserializer.ReadProperty(200, "expression", result->expression);
|
48
48
|
return std::move(result);
|
49
49
|
}
|
50
50
|
|
51
|
-
void TableMacroFunction::
|
52
|
-
MacroFunction::
|
51
|
+
void TableMacroFunction::Serialize(Serializer &serializer) const {
|
52
|
+
MacroFunction::Serialize(serializer);
|
53
53
|
serializer.WriteProperty(200, "query_node", query_node);
|
54
54
|
}
|
55
55
|
|
56
|
-
unique_ptr<MacroFunction> TableMacroFunction::
|
56
|
+
unique_ptr<MacroFunction> TableMacroFunction::Deserialize(Deserializer &deserializer) {
|
57
57
|
auto result = duckdb::unique_ptr<TableMacroFunction>(new TableMacroFunction());
|
58
58
|
deserializer.ReadProperty(200, "query_node", result->query_node);
|
59
59
|
return std::move(result);
|
@@ -3,8 +3,8 @@
|
|
3
3
|
// Do not edit this file manually, your changes will be overwritten
|
4
4
|
//===----------------------------------------------------------------------===//
|
5
5
|
|
6
|
-
#include "duckdb/common/serializer/
|
7
|
-
#include "duckdb/common/serializer/
|
6
|
+
#include "duckdb/common/serializer/serializer.hpp"
|
7
|
+
#include "duckdb/common/serializer/deserializer.hpp"
|
8
8
|
#include "duckdb/common/types.hpp"
|
9
9
|
#include "duckdb/common/extra_type_info.hpp"
|
10
10
|
#include "duckdb/parser/common_table_expression_info.hpp"
|
@@ -32,25 +32,25 @@
|
|
32
32
|
|
33
33
|
namespace duckdb {
|
34
34
|
|
35
|
-
void BoundCaseCheck::
|
35
|
+
void BoundCaseCheck::Serialize(Serializer &serializer) const {
|
36
36
|
serializer.WriteProperty(100, "when_expr", when_expr);
|
37
37
|
serializer.WriteProperty(101, "then_expr", then_expr);
|
38
38
|
}
|
39
39
|
|
40
|
-
BoundCaseCheck BoundCaseCheck::
|
40
|
+
BoundCaseCheck BoundCaseCheck::Deserialize(Deserializer &deserializer) {
|
41
41
|
BoundCaseCheck result;
|
42
42
|
deserializer.ReadProperty(100, "when_expr", result.when_expr);
|
43
43
|
deserializer.ReadProperty(101, "then_expr", result.then_expr);
|
44
44
|
return result;
|
45
45
|
}
|
46
46
|
|
47
|
-
void BoundOrderByNode::
|
47
|
+
void BoundOrderByNode::Serialize(Serializer &serializer) const {
|
48
48
|
serializer.WriteProperty(100, "type", type);
|
49
49
|
serializer.WriteProperty(101, "null_order", null_order);
|
50
50
|
serializer.WriteProperty(102, "expression", expression);
|
51
51
|
}
|
52
52
|
|
53
|
-
BoundOrderByNode BoundOrderByNode::
|
53
|
+
BoundOrderByNode BoundOrderByNode::Deserialize(Deserializer &deserializer) {
|
54
54
|
auto type = deserializer.ReadProperty<OrderType>(100, "type");
|
55
55
|
auto null_order = deserializer.ReadProperty<OrderByNullType>(101, "null_order");
|
56
56
|
auto expression = deserializer.ReadProperty<unique_ptr<Expression>>(102, "expression");
|
@@ -58,26 +58,26 @@ BoundOrderByNode BoundOrderByNode::FormatDeserialize(FormatDeserializer &deseria
|
|
58
58
|
return result;
|
59
59
|
}
|
60
60
|
|
61
|
-
void BoundParameterData::
|
61
|
+
void BoundParameterData::Serialize(Serializer &serializer) const {
|
62
62
|
serializer.WriteProperty(100, "value", value);
|
63
63
|
serializer.WriteProperty(101, "return_type", return_type);
|
64
64
|
}
|
65
65
|
|
66
|
-
shared_ptr<BoundParameterData> BoundParameterData::
|
66
|
+
shared_ptr<BoundParameterData> BoundParameterData::Deserialize(Deserializer &deserializer) {
|
67
67
|
auto value = deserializer.ReadProperty<Value>(100, "value");
|
68
68
|
auto result = duckdb::shared_ptr<BoundParameterData>(new BoundParameterData(value));
|
69
69
|
deserializer.ReadProperty(101, "return_type", result->return_type);
|
70
70
|
return result;
|
71
71
|
}
|
72
72
|
|
73
|
-
void BoundPivotInfo::
|
73
|
+
void BoundPivotInfo::Serialize(Serializer &serializer) const {
|
74
74
|
serializer.WriteProperty(100, "group_count", group_count);
|
75
75
|
serializer.WriteProperty(101, "types", types);
|
76
76
|
serializer.WriteProperty(102, "pivot_values", pivot_values);
|
77
77
|
serializer.WriteProperty(103, "aggregates", aggregates);
|
78
78
|
}
|
79
79
|
|
80
|
-
BoundPivotInfo BoundPivotInfo::
|
80
|
+
BoundPivotInfo BoundPivotInfo::Deserialize(Deserializer &deserializer) {
|
81
81
|
BoundPivotInfo result;
|
82
82
|
deserializer.ReadProperty(100, "group_count", result.group_count);
|
83
83
|
deserializer.ReadProperty(101, "types", result.types);
|
@@ -86,7 +86,7 @@ BoundPivotInfo BoundPivotInfo::FormatDeserialize(FormatDeserializer &deserialize
|
|
86
86
|
return result;
|
87
87
|
}
|
88
88
|
|
89
|
-
void CSVReaderOptions::
|
89
|
+
void CSVReaderOptions::Serialize(Serializer &serializer) const {
|
90
90
|
serializer.WriteProperty(100, "has_delimiter", has_delimiter);
|
91
91
|
serializer.WriteProperty(101, "has_quote", has_quote);
|
92
92
|
serializer.WriteProperty(102, "has_escape", has_escape);
|
@@ -125,7 +125,7 @@ void CSVReaderOptions::FormatSerialize(FormatSerializer &serializer) const {
|
|
125
125
|
serializer.WriteProperty(135, "dialect_options.has_format", dialect_options.has_format);
|
126
126
|
}
|
127
127
|
|
128
|
-
CSVReaderOptions CSVReaderOptions::
|
128
|
+
CSVReaderOptions CSVReaderOptions::Deserialize(Deserializer &deserializer) {
|
129
129
|
CSVReaderOptions result;
|
130
130
|
deserializer.ReadProperty(100, "has_delimiter", result.has_delimiter);
|
131
131
|
deserializer.ReadProperty(101, "has_quote", result.has_quote);
|
@@ -166,31 +166,31 @@ CSVReaderOptions CSVReaderOptions::FormatDeserialize(FormatDeserializer &deseria
|
|
166
166
|
return result;
|
167
167
|
}
|
168
168
|
|
169
|
-
void CaseCheck::
|
169
|
+
void CaseCheck::Serialize(Serializer &serializer) const {
|
170
170
|
serializer.WriteProperty(100, "when_expr", when_expr);
|
171
171
|
serializer.WriteProperty(101, "then_expr", then_expr);
|
172
172
|
}
|
173
173
|
|
174
|
-
CaseCheck CaseCheck::
|
174
|
+
CaseCheck CaseCheck::Deserialize(Deserializer &deserializer) {
|
175
175
|
CaseCheck result;
|
176
176
|
deserializer.ReadProperty(100, "when_expr", result.when_expr);
|
177
177
|
deserializer.ReadProperty(101, "then_expr", result.then_expr);
|
178
178
|
return result;
|
179
179
|
}
|
180
180
|
|
181
|
-
void ColumnBinding::
|
181
|
+
void ColumnBinding::Serialize(Serializer &serializer) const {
|
182
182
|
serializer.WriteProperty(100, "table_index", table_index);
|
183
183
|
serializer.WriteProperty(101, "column_index", column_index);
|
184
184
|
}
|
185
185
|
|
186
|
-
ColumnBinding ColumnBinding::
|
186
|
+
ColumnBinding ColumnBinding::Deserialize(Deserializer &deserializer) {
|
187
187
|
ColumnBinding result;
|
188
188
|
deserializer.ReadProperty(100, "table_index", result.table_index);
|
189
189
|
deserializer.ReadProperty(101, "column_index", result.column_index);
|
190
190
|
return result;
|
191
191
|
}
|
192
192
|
|
193
|
-
void ColumnDefinition::
|
193
|
+
void ColumnDefinition::Serialize(Serializer &serializer) const {
|
194
194
|
serializer.WriteProperty(100, "name", name);
|
195
195
|
serializer.WriteProperty(101, "type", type);
|
196
196
|
serializer.WritePropertyWithDefault(102, "expression", expression, unique_ptr<ParsedExpression>());
|
@@ -198,7 +198,7 @@ void ColumnDefinition::FormatSerialize(FormatSerializer &serializer) const {
|
|
198
198
|
serializer.WriteProperty(104, "compression_type", compression_type);
|
199
199
|
}
|
200
200
|
|
201
|
-
ColumnDefinition ColumnDefinition::
|
201
|
+
ColumnDefinition ColumnDefinition::Deserialize(Deserializer &deserializer) {
|
202
202
|
auto name = deserializer.ReadProperty<string>(100, "name");
|
203
203
|
auto type = deserializer.ReadProperty<LogicalType>(101, "type");
|
204
204
|
auto expression = deserializer.ReadPropertyWithDefault<unique_ptr<ParsedExpression>>(102, "expression", unique_ptr<ParsedExpression>());
|
@@ -208,35 +208,35 @@ ColumnDefinition ColumnDefinition::FormatDeserialize(FormatDeserializer &deseria
|
|
208
208
|
return result;
|
209
209
|
}
|
210
210
|
|
211
|
-
void ColumnInfo::
|
211
|
+
void ColumnInfo::Serialize(Serializer &serializer) const {
|
212
212
|
serializer.WriteProperty(100, "names", names);
|
213
213
|
serializer.WriteProperty(101, "types", types);
|
214
214
|
}
|
215
215
|
|
216
|
-
ColumnInfo ColumnInfo::
|
216
|
+
ColumnInfo ColumnInfo::Deserialize(Deserializer &deserializer) {
|
217
217
|
ColumnInfo result;
|
218
218
|
deserializer.ReadProperty(100, "names", result.names);
|
219
219
|
deserializer.ReadProperty(101, "types", result.types);
|
220
220
|
return result;
|
221
221
|
}
|
222
222
|
|
223
|
-
void ColumnList::
|
223
|
+
void ColumnList::Serialize(Serializer &serializer) const {
|
224
224
|
serializer.WriteProperty(100, "columns", columns);
|
225
225
|
}
|
226
226
|
|
227
|
-
ColumnList ColumnList::
|
227
|
+
ColumnList ColumnList::Deserialize(Deserializer &deserializer) {
|
228
228
|
auto columns = deserializer.ReadProperty<vector<ColumnDefinition>>(100, "columns");
|
229
229
|
ColumnList result(std::move(columns));
|
230
230
|
return result;
|
231
231
|
}
|
232
232
|
|
233
|
-
void CommonTableExpressionInfo::
|
233
|
+
void CommonTableExpressionInfo::Serialize(Serializer &serializer) const {
|
234
234
|
serializer.WriteProperty(100, "aliases", aliases);
|
235
235
|
serializer.WriteProperty(101, "query", query);
|
236
236
|
serializer.WriteProperty(102, "materialized", materialized);
|
237
237
|
}
|
238
238
|
|
239
|
-
unique_ptr<CommonTableExpressionInfo> CommonTableExpressionInfo::
|
239
|
+
unique_ptr<CommonTableExpressionInfo> CommonTableExpressionInfo::Deserialize(Deserializer &deserializer) {
|
240
240
|
auto result = duckdb::unique_ptr<CommonTableExpressionInfo>(new CommonTableExpressionInfo());
|
241
241
|
deserializer.ReadProperty(100, "aliases", result->aliases);
|
242
242
|
deserializer.ReadProperty(101, "query", result->query);
|
@@ -244,35 +244,35 @@ unique_ptr<CommonTableExpressionInfo> CommonTableExpressionInfo::FormatDeseriali
|
|
244
244
|
return result;
|
245
245
|
}
|
246
246
|
|
247
|
-
void CommonTableExpressionMap::
|
247
|
+
void CommonTableExpressionMap::Serialize(Serializer &serializer) const {
|
248
248
|
serializer.WriteProperty(100, "map", map);
|
249
249
|
}
|
250
250
|
|
251
|
-
CommonTableExpressionMap CommonTableExpressionMap::
|
251
|
+
CommonTableExpressionMap CommonTableExpressionMap::Deserialize(Deserializer &deserializer) {
|
252
252
|
CommonTableExpressionMap result;
|
253
253
|
deserializer.ReadProperty(100, "map", result.map);
|
254
254
|
return result;
|
255
255
|
}
|
256
256
|
|
257
|
-
void HivePartitioningIndex::
|
257
|
+
void HivePartitioningIndex::Serialize(Serializer &serializer) const {
|
258
258
|
serializer.WriteProperty(100, "value", value);
|
259
259
|
serializer.WriteProperty(101, "index", index);
|
260
260
|
}
|
261
261
|
|
262
|
-
HivePartitioningIndex HivePartitioningIndex::
|
262
|
+
HivePartitioningIndex HivePartitioningIndex::Deserialize(Deserializer &deserializer) {
|
263
263
|
auto value = deserializer.ReadProperty<string>(100, "value");
|
264
264
|
auto index = deserializer.ReadProperty<idx_t>(101, "index");
|
265
265
|
HivePartitioningIndex result(std::move(value), index);
|
266
266
|
return result;
|
267
267
|
}
|
268
268
|
|
269
|
-
void JoinCondition::
|
269
|
+
void JoinCondition::Serialize(Serializer &serializer) const {
|
270
270
|
serializer.WriteProperty(100, "left", left);
|
271
271
|
serializer.WriteProperty(101, "right", right);
|
272
272
|
serializer.WriteProperty(102, "comparison", comparison);
|
273
273
|
}
|
274
274
|
|
275
|
-
JoinCondition JoinCondition::
|
275
|
+
JoinCondition JoinCondition::Deserialize(Deserializer &deserializer) {
|
276
276
|
JoinCondition result;
|
277
277
|
deserializer.ReadProperty(100, "left", result.left);
|
278
278
|
deserializer.ReadProperty(101, "right", result.right);
|
@@ -280,31 +280,31 @@ JoinCondition JoinCondition::FormatDeserialize(FormatDeserializer &deserializer)
|
|
280
280
|
return result;
|
281
281
|
}
|
282
282
|
|
283
|
-
void LogicalType::
|
283
|
+
void LogicalType::Serialize(Serializer &serializer) const {
|
284
284
|
serializer.WriteProperty(100, "id", id_);
|
285
285
|
serializer.WritePropertyWithDefault(101, "type_info", type_info_, shared_ptr<ExtraTypeInfo>());
|
286
286
|
}
|
287
287
|
|
288
|
-
LogicalType LogicalType::
|
288
|
+
LogicalType LogicalType::Deserialize(Deserializer &deserializer) {
|
289
289
|
auto id = deserializer.ReadProperty<LogicalTypeId>(100, "id");
|
290
290
|
auto type_info = deserializer.ReadPropertyWithDefault<shared_ptr<ExtraTypeInfo>>(101, "type_info", shared_ptr<ExtraTypeInfo>());
|
291
291
|
LogicalType result(id, std::move(type_info));
|
292
292
|
return result;
|
293
293
|
}
|
294
294
|
|
295
|
-
void MultiFileReaderBindData::
|
295
|
+
void MultiFileReaderBindData::Serialize(Serializer &serializer) const {
|
296
296
|
serializer.WriteProperty(100, "filename_idx", filename_idx);
|
297
297
|
serializer.WriteProperty(101, "hive_partitioning_indexes", hive_partitioning_indexes);
|
298
298
|
}
|
299
299
|
|
300
|
-
MultiFileReaderBindData MultiFileReaderBindData::
|
300
|
+
MultiFileReaderBindData MultiFileReaderBindData::Deserialize(Deserializer &deserializer) {
|
301
301
|
MultiFileReaderBindData result;
|
302
302
|
deserializer.ReadProperty(100, "filename_idx", result.filename_idx);
|
303
303
|
deserializer.ReadProperty(101, "hive_partitioning_indexes", result.hive_partitioning_indexes);
|
304
304
|
return result;
|
305
305
|
}
|
306
306
|
|
307
|
-
void MultiFileReaderOptions::
|
307
|
+
void MultiFileReaderOptions::Serialize(Serializer &serializer) const {
|
308
308
|
serializer.WriteProperty(100, "filename", filename);
|
309
309
|
serializer.WriteProperty(101, "hive_partitioning", hive_partitioning);
|
310
310
|
serializer.WriteProperty(102, "auto_detect_hive_partitioning", auto_detect_hive_partitioning);
|
@@ -313,7 +313,7 @@ void MultiFileReaderOptions::FormatSerialize(FormatSerializer &serializer) const
|
|
313
313
|
serializer.WriteProperty(105, "hive_types_schema", hive_types_schema);
|
314
314
|
}
|
315
315
|
|
316
|
-
MultiFileReaderOptions MultiFileReaderOptions::
|
316
|
+
MultiFileReaderOptions MultiFileReaderOptions::Deserialize(Deserializer &deserializer) {
|
317
317
|
MultiFileReaderOptions result;
|
318
318
|
deserializer.ReadProperty(100, "filename", result.filename);
|
319
319
|
deserializer.ReadProperty(101, "hive_partitioning", result.hive_partitioning);
|
@@ -324,13 +324,13 @@ MultiFileReaderOptions MultiFileReaderOptions::FormatDeserialize(FormatDeseriali
|
|
324
324
|
return result;
|
325
325
|
}
|
326
326
|
|
327
|
-
void OrderByNode::
|
327
|
+
void OrderByNode::Serialize(Serializer &serializer) const {
|
328
328
|
serializer.WriteProperty(100, "type", type);
|
329
329
|
serializer.WriteProperty(101, "null_order", null_order);
|
330
330
|
serializer.WriteProperty(102, "expression", expression);
|
331
331
|
}
|
332
332
|
|
333
|
-
OrderByNode OrderByNode::
|
333
|
+
OrderByNode OrderByNode::Deserialize(Deserializer &deserializer) {
|
334
334
|
auto type = deserializer.ReadProperty<OrderType>(100, "type");
|
335
335
|
auto null_order = deserializer.ReadProperty<OrderByNullType>(101, "null_order");
|
336
336
|
auto expression = deserializer.ReadProperty<unique_ptr<ParsedExpression>>(102, "expression");
|
@@ -338,14 +338,14 @@ OrderByNode OrderByNode::FormatDeserialize(FormatDeserializer &deserializer) {
|
|
338
338
|
return result;
|
339
339
|
}
|
340
340
|
|
341
|
-
void PivotColumn::
|
341
|
+
void PivotColumn::Serialize(Serializer &serializer) const {
|
342
342
|
serializer.WriteProperty(100, "pivot_expressions", pivot_expressions);
|
343
343
|
serializer.WriteProperty(101, "unpivot_names", unpivot_names);
|
344
344
|
serializer.WriteProperty(102, "entries", entries);
|
345
345
|
serializer.WriteProperty(103, "pivot_enum", pivot_enum);
|
346
346
|
}
|
347
347
|
|
348
|
-
PivotColumn PivotColumn::
|
348
|
+
PivotColumn PivotColumn::Deserialize(Deserializer &deserializer) {
|
349
349
|
PivotColumn result;
|
350
350
|
deserializer.ReadProperty(100, "pivot_expressions", result.pivot_expressions);
|
351
351
|
deserializer.ReadProperty(101, "unpivot_names", result.unpivot_names);
|
@@ -354,13 +354,13 @@ PivotColumn PivotColumn::FormatDeserialize(FormatDeserializer &deserializer) {
|
|
354
354
|
return result;
|
355
355
|
}
|
356
356
|
|
357
|
-
void PivotColumnEntry::
|
357
|
+
void PivotColumnEntry::Serialize(Serializer &serializer) const {
|
358
358
|
serializer.WriteProperty(100, "values", values);
|
359
359
|
serializer.WritePropertyWithDefault(101, "star_expr", star_expr, unique_ptr<ParsedExpression>());
|
360
360
|
serializer.WriteProperty(102, "alias", alias);
|
361
361
|
}
|
362
362
|
|
363
|
-
PivotColumnEntry PivotColumnEntry::
|
363
|
+
PivotColumnEntry PivotColumnEntry::Deserialize(Deserializer &deserializer) {
|
364
364
|
PivotColumnEntry result;
|
365
365
|
deserializer.ReadProperty(100, "values", result.values);
|
366
366
|
deserializer.ReadPropertyWithDefault(101, "star_expr", result.star_expr, unique_ptr<ParsedExpression>());
|
@@ -368,7 +368,7 @@ PivotColumnEntry PivotColumnEntry::FormatDeserialize(FormatDeserializer &deseria
|
|
368
368
|
return result;
|
369
369
|
}
|
370
370
|
|
371
|
-
void ReadCSVData::
|
371
|
+
void ReadCSVData::Serialize(Serializer &serializer) const {
|
372
372
|
serializer.WriteProperty(100, "files", files);
|
373
373
|
serializer.WriteProperty(101, "csv_types", csv_types);
|
374
374
|
serializer.WriteProperty(102, "csv_names", csv_names);
|
@@ -381,7 +381,7 @@ void ReadCSVData::FormatSerialize(FormatSerializer &serializer) const {
|
|
381
381
|
serializer.WriteProperty(109, "column_info", column_info);
|
382
382
|
}
|
383
383
|
|
384
|
-
unique_ptr<ReadCSVData> ReadCSVData::
|
384
|
+
unique_ptr<ReadCSVData> ReadCSVData::Deserialize(Deserializer &deserializer) {
|
385
385
|
auto result = duckdb::unique_ptr<ReadCSVData>(new ReadCSVData());
|
386
386
|
deserializer.ReadProperty(100, "files", result->files);
|
387
387
|
deserializer.ReadProperty(101, "csv_types", result->csv_types);
|
@@ -396,14 +396,14 @@ unique_ptr<ReadCSVData> ReadCSVData::FormatDeserialize(FormatDeserializer &deser
|
|
396
396
|
return result;
|
397
397
|
}
|
398
398
|
|
399
|
-
void SampleOptions::
|
399
|
+
void SampleOptions::Serialize(Serializer &serializer) const {
|
400
400
|
serializer.WriteProperty(100, "sample_size", sample_size);
|
401
401
|
serializer.WriteProperty(101, "is_percentage", is_percentage);
|
402
402
|
serializer.WriteProperty(102, "method", method);
|
403
403
|
serializer.WriteProperty(103, "seed", seed);
|
404
404
|
}
|
405
405
|
|
406
|
-
unique_ptr<SampleOptions> SampleOptions::
|
406
|
+
unique_ptr<SampleOptions> SampleOptions::Deserialize(Deserializer &deserializer) {
|
407
407
|
auto result = duckdb::unique_ptr<SampleOptions>(new SampleOptions());
|
408
408
|
deserializer.ReadProperty(100, "sample_size", result->sample_size);
|
409
409
|
deserializer.ReadProperty(101, "is_percentage", result->is_percentage);
|
@@ -412,45 +412,45 @@ unique_ptr<SampleOptions> SampleOptions::FormatDeserialize(FormatDeserializer &d
|
|
412
412
|
return result;
|
413
413
|
}
|
414
414
|
|
415
|
-
void StrpTimeFormat::
|
415
|
+
void StrpTimeFormat::Serialize(Serializer &serializer) const {
|
416
416
|
serializer.WriteProperty(100, "format_specifier", format_specifier);
|
417
417
|
}
|
418
418
|
|
419
|
-
StrpTimeFormat StrpTimeFormat::
|
419
|
+
StrpTimeFormat StrpTimeFormat::Deserialize(Deserializer &deserializer) {
|
420
420
|
auto format_specifier = deserializer.ReadProperty<string>(100, "format_specifier");
|
421
421
|
StrpTimeFormat result(format_specifier);
|
422
422
|
return result;
|
423
423
|
}
|
424
424
|
|
425
|
-
void TableFilterSet::
|
425
|
+
void TableFilterSet::Serialize(Serializer &serializer) const {
|
426
426
|
serializer.WriteProperty(100, "filters", filters);
|
427
427
|
}
|
428
428
|
|
429
|
-
TableFilterSet TableFilterSet::
|
429
|
+
TableFilterSet TableFilterSet::Deserialize(Deserializer &deserializer) {
|
430
430
|
TableFilterSet result;
|
431
431
|
deserializer.ReadProperty(100, "filters", result.filters);
|
432
432
|
return result;
|
433
433
|
}
|
434
434
|
|
435
|
-
void VacuumOptions::
|
435
|
+
void VacuumOptions::Serialize(Serializer &serializer) const {
|
436
436
|
serializer.WriteProperty(100, "vacuum", vacuum);
|
437
437
|
serializer.WriteProperty(101, "analyze", analyze);
|
438
438
|
}
|
439
439
|
|
440
|
-
VacuumOptions VacuumOptions::
|
440
|
+
VacuumOptions VacuumOptions::Deserialize(Deserializer &deserializer) {
|
441
441
|
VacuumOptions result;
|
442
442
|
deserializer.ReadProperty(100, "vacuum", result.vacuum);
|
443
443
|
deserializer.ReadProperty(101, "analyze", result.analyze);
|
444
444
|
return result;
|
445
445
|
}
|
446
446
|
|
447
|
-
void interval_t::
|
447
|
+
void interval_t::Serialize(Serializer &serializer) const {
|
448
448
|
serializer.WriteProperty(1, "months", months);
|
449
449
|
serializer.WriteProperty(2, "days", days);
|
450
450
|
serializer.WriteProperty(3, "micros", micros);
|
451
451
|
}
|
452
452
|
|
453
|
-
interval_t interval_t::
|
453
|
+
interval_t interval_t::Deserialize(Deserializer &deserializer) {
|
454
454
|
interval_t result;
|
455
455
|
deserializer.ReadProperty(1, "months", result.months);
|
456
456
|
deserializer.ReadProperty(2, "days", result.days);
|