duckdb 1.3.2 → 1.3.3-dev4.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/.github/workflows/NodeJS.yml +8 -20
- package/binding.gyp +9 -1
- package/package.json +1 -1
- package/src/connection.cpp +1 -1
- package/src/duckdb/extension/core_functions/aggregate/algebraic/avg.cpp +4 -0
- package/src/duckdb/extension/core_functions/aggregate/distributive/approx_count.cpp +8 -4
- package/src/duckdb/extension/core_functions/aggregate/distributive/arg_min_max.cpp +16 -12
- package/src/duckdb/extension/core_functions/aggregate/distributive/bitagg.cpp +5 -1
- package/src/duckdb/extension/core_functions/aggregate/distributive/bitstring_agg.cpp +5 -1
- package/src/duckdb/extension/core_functions/aggregate/distributive/bool.cpp +4 -0
- package/src/duckdb/extension/core_functions/aggregate/distributive/kurtosis.cpp +4 -0
- package/src/duckdb/extension/core_functions/aggregate/distributive/product.cpp +4 -0
- package/src/duckdb/extension/core_functions/aggregate/distributive/skew.cpp +4 -0
- package/src/duckdb/extension/core_functions/aggregate/distributive/string_agg.cpp +6 -2
- package/src/duckdb/extension/core_functions/aggregate/distributive/sum.cpp +64 -0
- package/src/duckdb/extension/core_functions/aggregate/holistic/approx_top_k.cpp +7 -3
- package/src/duckdb/extension/core_functions/aggregate/holistic/approximate_quantile.cpp +7 -4
- package/src/duckdb/extension/core_functions/aggregate/holistic/mad.cpp +6 -3
- package/src/duckdb/extension/core_functions/aggregate/holistic/mode.cpp +8 -1
- package/src/duckdb/extension/core_functions/aggregate/holistic/quantile.cpp +7 -46
- package/src/duckdb/extension/core_functions/aggregate/holistic/reservoir_quantile.cpp +9 -15
- package/src/duckdb/extension/core_functions/aggregate/nested/binned_histogram.cpp +12 -8
- package/src/duckdb/extension/core_functions/aggregate/nested/histogram.cpp +7 -5
- package/src/duckdb/extension/core_functions/aggregate/nested/list.cpp +14 -24
- package/src/duckdb/extension/core_functions/aggregate/regression/regr_avg.cpp +5 -0
- package/src/duckdb/extension/core_functions/aggregate/regression/regr_intercept.cpp +3 -0
- package/src/duckdb/extension/core_functions/aggregate/regression/regr_r2.cpp +5 -0
- package/src/duckdb/extension/core_functions/aggregate/regression/regr_sxx_syy.cpp +3 -0
- package/src/duckdb/extension/core_functions/aggregate/regression/regr_sxy.cpp +4 -0
- package/src/duckdb/extension/core_functions/core_functions_extension.cpp +6 -18
- package/src/duckdb/extension/core_functions/function_list.cpp +6 -3
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/algebraic/stddev.hpp +1 -1
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/algebraic_functions.hpp +2 -2
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/distributive_functions.hpp +4 -4
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/holistic_functions.hpp +1 -1
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/quantile_sort_tree.hpp +32 -45
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/quantile_state.hpp +1 -1
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/regression_functions.hpp +8 -8
- package/src/duckdb/extension/core_functions/include/core_functions/aggregate/sum_helpers.hpp +1 -1
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/array_functions.hpp +22 -22
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/blob_functions.hpp +2 -2
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/date_functions.hpp +15 -5
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/generic_functions.hpp +22 -12
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/list_functions.hpp +56 -56
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/map_functions.hpp +2 -2
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/math_functions.hpp +3 -3
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/string_functions.hpp +118 -118
- package/src/duckdb/extension/core_functions/include/core_functions/scalar/struct_functions.hpp +10 -0
- package/src/duckdb/extension/core_functions/include/core_functions_extension.hpp +1 -1
- package/src/duckdb/extension/core_functions/lambda_functions.cpp +4 -4
- package/src/duckdb/extension/core_functions/scalar/array/array_functions.cpp +2 -1
- package/src/duckdb/extension/core_functions/scalar/array/array_value.cpp +7 -3
- package/src/duckdb/extension/core_functions/scalar/bit/bitstring.cpp +7 -0
- package/src/duckdb/extension/core_functions/scalar/blob/base64.cpp +5 -2
- package/src/duckdb/extension/core_functions/scalar/blob/encode.cpp +6 -2
- package/src/duckdb/extension/core_functions/scalar/date/date_diff.cpp +7 -3
- package/src/duckdb/extension/core_functions/scalar/date/date_part.cpp +187 -33
- package/src/duckdb/extension/core_functions/scalar/date/date_sub.cpp +7 -3
- package/src/duckdb/extension/core_functions/scalar/date/date_trunc.cpp +12 -8
- package/src/duckdb/extension/core_functions/scalar/date/epoch.cpp +16 -12
- package/src/duckdb/extension/core_functions/scalar/date/make_date.cpp +11 -7
- package/src/duckdb/extension/core_functions/scalar/date/time_bucket.cpp +7 -3
- package/src/duckdb/extension/core_functions/scalar/date/to_interval.cpp +4 -0
- package/src/duckdb/extension/core_functions/scalar/enum/enum_functions.cpp +6 -6
- package/src/duckdb/extension/core_functions/scalar/generic/binning.cpp +8 -4
- package/src/duckdb/extension/core_functions/scalar/generic/can_implicitly_cast.cpp +6 -2
- package/src/duckdb/extension/core_functions/scalar/generic/cast_to_type.cpp +4 -1
- package/src/duckdb/extension/core_functions/scalar/generic/current_setting.cpp +9 -3
- package/src/duckdb/extension/core_functions/scalar/generic/least.cpp +5 -2
- package/src/duckdb/extension/core_functions/scalar/generic/replace_type.cpp +34 -0
- package/src/duckdb/extension/core_functions/scalar/generic/stats.cpp +5 -2
- package/src/duckdb/extension/core_functions/scalar/generic/system_functions.cpp +13 -9
- package/src/duckdb/extension/core_functions/scalar/generic/typeof.cpp +5 -1
- package/src/duckdb/extension/core_functions/scalar/list/array_slice.cpp +29 -26
- package/src/duckdb/extension/core_functions/scalar/list/flatten.cpp +9 -49
- package/src/duckdb/extension/core_functions/scalar/list/list_aggregates.cpp +17 -34
- package/src/duckdb/extension/core_functions/scalar/list/list_has_any_or_all.cpp +4 -50
- package/src/duckdb/extension/core_functions/scalar/list/list_reduce.cpp +46 -42
- package/src/duckdb/extension/core_functions/scalar/list/list_sort.cpp +48 -51
- package/src/duckdb/extension/core_functions/scalar/list/list_value.cpp +224 -144
- package/src/duckdb/extension/core_functions/scalar/list/range.cpp +5 -1
- package/src/duckdb/extension/core_functions/scalar/map/map.cpp +13 -41
- package/src/duckdb/extension/core_functions/scalar/map/map_concat.cpp +6 -6
- package/src/duckdb/extension/core_functions/scalar/map/map_entries.cpp +6 -42
- package/src/duckdb/extension/core_functions/scalar/map/map_extract.cpp +10 -59
- package/src/duckdb/extension/core_functions/scalar/map/map_from_entries.cpp +7 -32
- package/src/duckdb/extension/core_functions/scalar/map/map_keys_values.cpp +10 -45
- package/src/duckdb/extension/core_functions/scalar/math/numeric.cpp +364 -139
- package/src/duckdb/extension/core_functions/scalar/operators/bitwise.cpp +29 -7
- package/src/duckdb/extension/core_functions/scalar/random/random.cpp +18 -14
- package/src/duckdb/extension/core_functions/scalar/random/setseed.cpp +5 -1
- package/src/duckdb/extension/core_functions/scalar/string/hex.cpp +2 -2
- package/src/duckdb/extension/core_functions/scalar/string/instr.cpp +5 -3
- package/src/duckdb/extension/core_functions/scalar/string/printf.cpp +16 -0
- package/src/duckdb/extension/core_functions/scalar/string/repeat.cpp +2 -17
- package/src/duckdb/extension/core_functions/scalar/struct/struct_insert.cpp +1 -1
- package/src/duckdb/extension/core_functions/scalar/struct/struct_update.cpp +161 -0
- package/src/duckdb/extension/core_functions/scalar/union/union_extract.cpp +7 -3
- package/src/duckdb/extension/core_functions/scalar/union/union_tag.cpp +7 -3
- package/src/duckdb/extension/core_functions/scalar/union/union_value.cpp +7 -3
- package/src/duckdb/extension/icu/icu-current.cpp +5 -5
- package/src/duckdb/extension/icu/icu-dateadd.cpp +11 -11
- package/src/duckdb/extension/icu/icu-datepart.cpp +44 -44
- package/src/duckdb/extension/icu/icu-datesub.cpp +10 -10
- package/src/duckdb/extension/icu/icu-datetrunc.cpp +6 -6
- package/src/duckdb/extension/icu/icu-list-range.cpp +7 -6
- package/src/duckdb/extension/icu/icu-makedate.cpp +8 -11
- package/src/duckdb/extension/icu/icu-strptime.cpp +23 -29
- package/src/duckdb/extension/icu/icu-table-range.cpp +8 -6
- package/src/duckdb/extension/icu/icu-timebucket.cpp +5 -5
- package/src/duckdb/extension/icu/icu-timezone.cpp +24 -30
- package/src/duckdb/extension/icu/icu_extension.cpp +22 -34
- package/src/duckdb/extension/icu/include/icu-casts.hpp +2 -2
- package/src/duckdb/extension/icu/include/icu-current.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-dateadd.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-datepart.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-datesub.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-datetrunc.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-list-range.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-makedate.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-strptime.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-table-range.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-timebucket.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu-timezone.hpp +3 -3
- package/src/duckdb/extension/icu/include/icu_extension.hpp +1 -1
- package/src/duckdb/extension/json/include/json_common.hpp +10 -2
- package/src/duckdb/extension/json/include/json_enums.hpp +3 -1
- package/src/duckdb/extension/json/include/json_extension.hpp +1 -1
- package/src/duckdb/extension/json/include/json_functions.hpp +4 -4
- package/src/duckdb/extension/json/include/json_multi_file_info.hpp +2 -2
- package/src/duckdb/extension/json/include/json_reader.hpp +3 -1
- package/src/duckdb/extension/json/json_enums.cpp +5 -0
- package/src/duckdb/extension/json/json_extension.cpp +27 -38
- package/src/duckdb/extension/json/json_functions/copy_json.cpp +8 -3
- package/src/duckdb/extension/json/json_functions/json_create.cpp +9 -6
- package/src/duckdb/extension/json/json_functions/json_merge_patch.cpp +3 -20
- package/src/duckdb/extension/json/json_functions/json_pretty.cpp +3 -3
- package/src/duckdb/extension/json/json_functions/json_serialize_plan.cpp +6 -4
- package/src/duckdb/extension/json/json_functions/json_serialize_sql.cpp +6 -4
- package/src/duckdb/extension/json/json_functions/json_table_in_out.cpp +6 -2
- package/src/duckdb/extension/json/json_functions/json_transform.cpp +5 -3
- package/src/duckdb/extension/json/json_functions/read_json.cpp +4 -3
- package/src/duckdb/extension/json/json_functions.cpp +135 -8
- package/src/duckdb/extension/json/json_multi_file_info.cpp +5 -2
- package/src/duckdb/extension/json/json_reader.cpp +7 -6
- package/src/duckdb/extension/parquet/column_reader.cpp +46 -21
- package/src/duckdb/extension/parquet/column_writer.cpp +16 -105
- package/src/duckdb/extension/parquet/geo_parquet.cpp +231 -171
- package/src/duckdb/extension/parquet/include/column_reader.hpp +0 -2
- package/src/duckdb/extension/parquet/include/column_writer.hpp +2 -1
- package/src/duckdb/extension/parquet/include/geo_parquet.hpp +160 -66
- package/src/duckdb/extension/parquet/include/parquet_column_schema.hpp +6 -4
- package/src/duckdb/extension/parquet/include/parquet_crypto.hpp +0 -3
- package/src/duckdb/extension/parquet/include/parquet_extension.hpp +1 -1
- package/src/duckdb/extension/parquet/include/parquet_file_metadata_cache.hpp +5 -2
- package/src/duckdb/extension/parquet/include/parquet_multi_file_info.hpp +2 -2
- package/src/duckdb/extension/parquet/include/parquet_reader.hpp +10 -2
- package/src/duckdb/extension/parquet/include/parquet_rle_bp_encoder.hpp +3 -0
- package/src/duckdb/extension/parquet/include/parquet_statistics.hpp +0 -2
- package/src/duckdb/extension/parquet/include/parquet_timestamp.hpp +10 -6
- package/src/duckdb/extension/parquet/include/parquet_writer.hpp +4 -3
- package/src/duckdb/extension/parquet/include/reader/row_number_column_reader.hpp +0 -2
- package/src/duckdb/extension/parquet/include/reader/uuid_column_reader.hpp +3 -13
- package/src/duckdb/extension/parquet/include/reader/variant/variant_binary_decoder.hpp +150 -0
- package/src/duckdb/extension/parquet/include/reader/variant/variant_shredded_conversion.hpp +23 -0
- package/src/duckdb/extension/parquet/include/reader/variant/variant_value.hpp +54 -0
- package/src/duckdb/extension/parquet/include/reader/variant_column_reader.hpp +44 -0
- package/src/duckdb/extension/parquet/include/resizable_buffer.hpp +0 -2
- package/src/duckdb/extension/parquet/include/thrift_tools.hpp +3 -3
- package/src/duckdb/extension/parquet/include/writer/array_column_writer.hpp +2 -1
- package/src/duckdb/extension/parquet/include/writer/list_column_writer.hpp +2 -1
- package/src/duckdb/extension/parquet/include/writer/parquet_write_operators.hpp +47 -10
- package/src/duckdb/extension/parquet/include/writer/parquet_write_stats.hpp +55 -1
- package/src/duckdb/extension/parquet/include/writer/primitive_column_writer.hpp +4 -3
- package/src/duckdb/extension/parquet/include/writer/struct_column_writer.hpp +2 -1
- package/src/duckdb/extension/parquet/include/writer/templated_column_writer.hpp +6 -3
- package/src/duckdb/extension/parquet/include/zstd_file_system.hpp +1 -3
- package/src/duckdb/extension/parquet/parquet_crypto.cpp +11 -11
- package/src/duckdb/extension/parquet/parquet_extension.cpp +84 -68
- package/src/duckdb/extension/parquet/parquet_file_metadata_cache.cpp +4 -4
- package/src/duckdb/extension/parquet/parquet_float16.cpp +0 -3
- package/src/duckdb/extension/parquet/parquet_metadata.cpp +115 -17
- package/src/duckdb/extension/parquet/parquet_multi_file_info.cpp +25 -10
- package/src/duckdb/extension/parquet/parquet_reader.cpp +181 -56
- package/src/duckdb/extension/parquet/parquet_statistics.cpp +26 -8
- package/src/duckdb/extension/parquet/parquet_timestamp.cpp +14 -4
- package/src/duckdb/extension/parquet/parquet_writer.cpp +117 -16
- package/src/duckdb/extension/parquet/reader/decimal_column_reader.cpp +1 -1
- package/src/duckdb/extension/parquet/reader/variant/variant_binary_decoder.cpp +367 -0
- package/src/duckdb/extension/parquet/reader/variant/variant_shredded_conversion.cpp +565 -0
- package/src/duckdb/extension/parquet/reader/variant/variant_value.cpp +85 -0
- package/src/duckdb/extension/parquet/reader/variant_column_reader.cpp +161 -0
- package/src/duckdb/extension/parquet/writer/array_column_writer.cpp +5 -2
- package/src/duckdb/extension/parquet/writer/enum_column_writer.cpp +1 -1
- package/src/duckdb/extension/parquet/writer/list_column_writer.cpp +6 -3
- package/src/duckdb/extension/parquet/writer/primitive_column_writer.cpp +24 -8
- package/src/duckdb/extension/parquet/writer/struct_column_writer.cpp +4 -2
- package/src/duckdb/extension/parquet/zstd_file_system.cpp +7 -6
- package/src/duckdb/src/catalog/catalog.cpp +92 -62
- package/src/duckdb/src/catalog/catalog_entry/duck_table_entry.cpp +8 -8
- package/src/duckdb/src/catalog/catalog_entry/table_catalog_entry.cpp +14 -8
- package/src/duckdb/src/catalog/catalog_set.cpp +1 -0
- package/src/duckdb/src/catalog/default/default_functions.cpp +4 -4
- package/src/duckdb/src/catalog/default/default_table_functions.cpp +5 -4
- package/src/duckdb/src/catalog/default/default_views.cpp +1 -1
- package/src/duckdb/src/catalog/duck_catalog.cpp +28 -0
- package/src/duckdb/src/common/adbc/adbc.cpp +243 -125
- package/src/duckdb/src/common/adbc/driver_manager.cpp +3 -3
- package/src/duckdb/src/common/arrow/appender/append_data.cpp +29 -0
- package/src/duckdb/src/common/arrow/appender/bool_data.cpp +6 -7
- package/src/duckdb/src/common/arrow/appender/fixed_size_list_data.cpp +1 -1
- package/src/duckdb/src/common/arrow/appender/struct_data.cpp +1 -1
- package/src/duckdb/src/common/arrow/appender/union_data.cpp +0 -1
- package/src/duckdb/src/common/arrow/arrow_appender.cpp +13 -17
- package/src/duckdb/src/common/arrow/arrow_converter.cpp +14 -6
- package/src/duckdb/src/common/arrow/arrow_type_extension.cpp +6 -6
- package/src/duckdb/src/common/arrow/physical_arrow_collector.cpp +16 -10
- package/src/duckdb/src/common/arrow/schema_metadata.cpp +2 -2
- package/src/duckdb/src/common/bignum.cpp +362 -0
- package/src/duckdb/src/common/box_renderer.cpp +83 -32
- package/src/duckdb/src/common/complex_json.cpp +20 -5
- package/src/duckdb/src/common/compressed_file_system.cpp +6 -5
- package/src/duckdb/src/common/csv_writer.cpp +381 -0
- package/src/duckdb/src/common/encryption_functions.cpp +228 -0
- package/src/duckdb/src/common/encryption_key_manager.cpp +143 -0
- package/src/duckdb/src/common/encryption_state.cpp +56 -9
- package/src/duckdb/src/common/enum_util.cpp +405 -51
- package/src/duckdb/src/common/enums/expression_type.cpp +2 -0
- package/src/duckdb/src/common/enums/logical_operator_type.cpp +2 -0
- package/src/duckdb/src/common/enums/metric_type.cpp +6 -0
- package/src/duckdb/src/common/enums/optimizer_type.cpp +1 -0
- package/src/duckdb/src/common/enums/physical_operator_type.cpp +2 -0
- package/src/duckdb/src/common/enums/statement_type.cpp +2 -0
- package/src/duckdb/src/common/error_data.cpp +11 -0
- package/src/duckdb/src/common/exception_format_value.cpp +15 -1
- package/src/duckdb/src/common/extra_type_info.cpp +43 -0
- package/src/duckdb/src/common/file_buffer.cpp +11 -8
- package/src/duckdb/src/common/file_system.cpp +82 -12
- package/src/duckdb/src/common/gzip_file_system.cpp +13 -11
- package/src/duckdb/src/common/local_file_system.cpp +25 -16
- package/src/duckdb/src/common/multi_file/base_file_reader.cpp +4 -0
- package/src/duckdb/src/common/multi_file/multi_file_column_mapper.cpp +7 -11
- package/src/duckdb/src/common/multi_file/multi_file_function.cpp +8 -0
- package/src/duckdb/src/common/multi_file/multi_file_list.cpp +8 -4
- package/src/duckdb/src/common/multi_file/multi_file_reader.cpp +9 -5
- package/src/duckdb/src/common/operator/cast_operators.cpp +147 -6
- package/src/duckdb/src/common/operator/string_cast.cpp +41 -12
- package/src/duckdb/src/common/pipe_file_system.cpp +10 -5
- package/src/duckdb/src/common/progress_bar/progress_bar.cpp +2 -2
- package/src/duckdb/src/common/progress_bar/terminal_progress_bar_display.cpp +81 -7
- package/src/duckdb/src/common/progress_bar/unscented_kalman_filter.cpp +288 -0
- package/src/duckdb/src/common/radix_partitioning.cpp +2 -2
- package/src/duckdb/src/common/row_operations/row_aggregate.cpp +8 -11
- package/src/duckdb/src/common/row_operations/row_external.cpp +0 -7
- package/src/duckdb/src/common/row_operations/row_gather.cpp +0 -5
- package/src/duckdb/src/common/row_operations/row_matcher.cpp +55 -37
- package/src/duckdb/src/common/row_operations/row_scatter.cpp +0 -6
- package/src/duckdb/src/common/serializer/buffered_file_reader.cpp +4 -0
- package/src/duckdb/src/common/serializer/buffered_file_writer.cpp +4 -0
- package/src/duckdb/src/common/serializer/memory_stream.cpp +4 -0
- package/src/duckdb/src/common/sort/partition_state.cpp +3 -3
- package/src/duckdb/src/common/sorting/hashed_sort.cpp +724 -0
- package/src/duckdb/src/common/sorting/sort.cpp +513 -0
- package/src/duckdb/src/common/sorting/sorted_run.cpp +341 -0
- package/src/duckdb/src/common/sorting/sorted_run_merger.cpp +969 -0
- package/src/duckdb/src/common/string_util.cpp +64 -44
- package/src/duckdb/src/common/tree_renderer/text_tree_renderer.cpp +40 -3
- package/src/duckdb/src/common/tree_renderer/yaml_tree_renderer.cpp +144 -0
- package/src/duckdb/src/common/tree_renderer.cpp +3 -0
- package/src/duckdb/src/common/types/bignum.cpp +350 -0
- package/src/duckdb/src/common/types/column/column_data_allocator.cpp +27 -29
- package/src/duckdb/src/common/types/column/column_data_collection.cpp +216 -68
- package/src/duckdb/src/common/types/column/column_data_collection_segment.cpp +3 -2
- package/src/duckdb/src/common/types/conflict_info.cpp +1 -2
- package/src/duckdb/src/common/types/conflict_manager.cpp +82 -207
- package/src/duckdb/src/common/types/data_chunk.cpp +10 -3
- package/src/duckdb/src/common/types/date.cpp +8 -10
- package/src/duckdb/src/common/types/hash.cpp +7 -7
- package/src/duckdb/src/common/types/row/block_iterator.cpp +34 -0
- package/src/duckdb/src/common/types/row/partitioned_tuple_data.cpp +38 -29
- package/src/duckdb/src/common/types/row/tuple_data_allocator.cpp +272 -54
- package/src/duckdb/src/common/types/row/tuple_data_collection.cpp +156 -45
- package/src/duckdb/src/common/types/row/tuple_data_iterator.cpp +5 -5
- package/src/duckdb/src/common/types/row/tuple_data_layout.cpp +122 -18
- package/src/duckdb/src/common/types/row/tuple_data_scatter_gather.cpp +466 -83
- package/src/duckdb/src/common/types/row/tuple_data_segment.cpp +8 -28
- package/src/duckdb/src/common/types/time.cpp +2 -2
- package/src/duckdb/src/common/types/timestamp.cpp +26 -14
- package/src/duckdb/src/common/types/uuid.cpp +33 -2
- package/src/duckdb/src/common/types/value.cpp +79 -16
- package/src/duckdb/src/common/types/vector.cpp +190 -22
- package/src/duckdb/src/common/types/vector_buffer.cpp +4 -0
- package/src/duckdb/src/common/types/vector_cache.cpp +4 -0
- package/src/duckdb/src/common/types.cpp +110 -22
- package/src/duckdb/src/common/value_operations/comparison_operations.cpp +24 -27
- package/src/duckdb/src/common/vector_operations/boolean_operators.cpp +12 -9
- package/src/duckdb/src/common/vector_operations/comparison_operators.cpp +5 -4
- package/src/duckdb/src/common/vector_operations/generators.cpp +1 -1
- package/src/duckdb/src/common/vector_operations/is_distinct_from.cpp +70 -135
- package/src/duckdb/src/common/vector_operations/null_operations.cpp +1 -1
- package/src/duckdb/src/common/vector_operations/vector_copy.cpp +5 -2
- package/src/duckdb/src/common/vector_operations/vector_hash.cpp +110 -55
- package/src/duckdb/src/common/vector_operations/vector_storage.cpp +14 -10
- package/src/duckdb/src/common/virtual_file_system.cpp +12 -3
- package/src/duckdb/src/execution/aggregate_hashtable.cpp +88 -50
- package/src/duckdb/src/execution/column_binding_resolver.cpp +7 -6
- package/src/duckdb/src/execution/expression_executor/execute_function.cpp +113 -2
- package/src/duckdb/src/execution/expression_executor.cpp +44 -4
- package/src/duckdb/src/execution/index/art/art.cpp +78 -216
- package/src/duckdb/src/execution/index/art/art_builder.cpp +91 -0
- package/src/duckdb/src/execution/index/art/art_key.cpp +0 -23
- package/src/duckdb/src/execution/index/art/art_merger.cpp +3 -4
- package/src/duckdb/src/execution/index/art/base_leaf.cpp +10 -11
- package/src/duckdb/src/execution/index/art/base_node.cpp +103 -75
- package/src/duckdb/src/execution/index/art/iterator.cpp +3 -3
- package/src/duckdb/src/execution/index/art/leaf.cpp +9 -11
- package/src/duckdb/src/execution/index/art/node.cpp +54 -53
- package/src/duckdb/src/execution/index/art/node256.cpp +30 -56
- package/src/duckdb/src/execution/index/art/node256_leaf.cpp +43 -30
- package/src/duckdb/src/execution/index/art/node48.cpp +69 -101
- package/src/duckdb/src/execution/index/art/plan_art.cpp +2 -1
- package/src/duckdb/src/execution/index/art/prefix.cpp +115 -125
- package/src/duckdb/src/execution/index/bound_index.cpp +39 -10
- package/src/duckdb/src/execution/index/fixed_size_allocator.cpp +23 -8
- package/src/duckdb/src/execution/index/fixed_size_buffer.cpp +35 -23
- package/src/duckdb/src/execution/index/unbound_index.cpp +26 -6
- package/src/duckdb/src/execution/join_hashtable.cpp +52 -55
- package/src/duckdb/src/execution/nested_loop_join/nested_loop_join_inner.cpp +3 -0
- package/src/duckdb/src/execution/operator/aggregate/distinct_aggregate_data.cpp +6 -4
- package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +27 -18
- package/src/duckdb/src/execution/operator/aggregate/physical_partitioned_aggregate.cpp +4 -2
- package/src/duckdb/src/execution/operator/aggregate/physical_perfecthash_aggregate.cpp +4 -2
- package/src/duckdb/src/execution/operator/aggregate/physical_streaming_window.cpp +8 -2
- package/src/duckdb/src/execution/operator/aggregate/physical_ungrouped_aggregate.cpp +6 -4
- package/src/duckdb/src/execution/operator/aggregate/physical_window.cpp +433 -387
- package/src/duckdb/src/execution/operator/csv_scanner/buffer_manager/csv_buffer.cpp +5 -4
- package/src/duckdb/src/execution/operator/csv_scanner/buffer_manager/csv_file_handle.cpp +12 -4
- package/src/duckdb/src/execution/operator/csv_scanner/encode/csv_encoder.cpp +8 -7
- package/src/duckdb/src/execution/operator/csv_scanner/scanner/string_value_scanner.cpp +7 -5
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/dialect_detection.cpp +15 -2
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/header_detection.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_detection.cpp +4 -4
- package/src/duckdb/src/execution/operator/csv_scanner/table_function/csv_multi_file_info.cpp +12 -3
- package/src/duckdb/src/execution/operator/csv_scanner/util/csv_error.cpp +7 -2
- package/src/duckdb/src/execution/operator/csv_scanner/util/csv_reader_options.cpp +4 -0
- package/src/duckdb/src/execution/operator/filter/physical_filter.cpp +14 -12
- package/src/duckdb/src/execution/operator/helper/physical_batch_collector.cpp +2 -1
- package/src/duckdb/src/execution/operator/helper/physical_buffered_batch_collector.cpp +2 -2
- package/src/duckdb/src/execution/operator/helper/physical_buffered_collector.cpp +3 -2
- package/src/duckdb/src/execution/operator/helper/physical_execute.cpp +2 -2
- package/src/duckdb/src/execution/operator/helper/physical_limit.cpp +3 -3
- package/src/duckdb/src/execution/operator/helper/physical_limit_percent.cpp +4 -3
- package/src/duckdb/src/execution/operator/helper/physical_materialized_collector.cpp +3 -2
- package/src/duckdb/src/execution/operator/helper/physical_reset.cpp +29 -9
- package/src/duckdb/src/execution/operator/helper/physical_result_collector.cpp +23 -20
- package/src/duckdb/src/execution/operator/helper/physical_set.cpp +28 -11
- package/src/duckdb/src/execution/operator/helper/physical_set_variable.cpp +3 -2
- package/src/duckdb/src/execution/operator/helper/physical_streaming_limit.cpp +4 -3
- package/src/duckdb/src/execution/operator/helper/physical_streaming_sample.cpp +3 -3
- package/src/duckdb/src/execution/operator/helper/physical_transaction.cpp +4 -4
- package/src/duckdb/src/execution/operator/helper/physical_vacuum.cpp +7 -3
- package/src/duckdb/src/execution/operator/helper/physical_verify_vector.cpp +4 -2
- package/src/duckdb/src/execution/operator/join/physical_asof_join.cpp +11 -10
- package/src/duckdb/src/execution/operator/join/physical_blockwise_nl_join.cpp +3 -2
- package/src/duckdb/src/execution/operator/join/physical_comparison_join.cpp +4 -4
- package/src/duckdb/src/execution/operator/join/physical_cross_product.cpp +4 -3
- package/src/duckdb/src/execution/operator/join/physical_delim_join.cpp +2 -2
- package/src/duckdb/src/execution/operator/join/physical_hash_join.cpp +13 -8
- package/src/duckdb/src/execution/operator/join/physical_iejoin.cpp +15 -14
- package/src/duckdb/src/execution/operator/join/physical_join.cpp +3 -3
- package/src/duckdb/src/execution/operator/join/physical_left_delim_join.cpp +5 -4
- package/src/duckdb/src/execution/operator/join/physical_nested_loop_join.cpp +7 -7
- package/src/duckdb/src/execution/operator/join/physical_piecewise_merge_join.cpp +20 -21
- package/src/duckdb/src/execution/operator/join/physical_positional_join.cpp +4 -3
- package/src/duckdb/src/execution/operator/join/physical_range_join.cpp +18 -6
- package/src/duckdb/src/execution/operator/join/physical_right_delim_join.cpp +5 -4
- package/src/duckdb/src/execution/operator/order/physical_order.cpp +62 -203
- package/src/duckdb/src/execution/operator/order/physical_top_n.cpp +5 -4
- package/src/duckdb/src/execution/operator/persistent/physical_batch_copy_to_file.cpp +5 -3
- package/src/duckdb/src/execution/operator/persistent/physical_batch_insert.cpp +9 -7
- package/src/duckdb/src/execution/operator/persistent/physical_copy_database.cpp +7 -5
- package/src/duckdb/src/execution/operator/persistent/physical_copy_to_file.cpp +12 -7
- package/src/duckdb/src/execution/operator/persistent/physical_delete.cpp +34 -5
- package/src/duckdb/src/execution/operator/persistent/physical_export.cpp +6 -20
- package/src/duckdb/src/execution/operator/persistent/physical_insert.cpp +91 -74
- package/src/duckdb/src/execution/operator/persistent/physical_merge_into.cpp +516 -0
- package/src/duckdb/src/execution/operator/persistent/physical_update.cpp +11 -9
- package/src/duckdb/src/execution/operator/projection/physical_pivot.cpp +7 -4
- package/src/duckdb/src/execution/operator/projection/physical_projection.cpp +3 -36
- package/src/duckdb/src/execution/operator/projection/physical_tableinout_function.cpp +26 -4
- package/src/duckdb/src/execution/operator/projection/physical_unnest.cpp +5 -3
- package/src/duckdb/src/execution/operator/scan/physical_column_data_scan.cpp +9 -7
- package/src/duckdb/src/execution/operator/scan/physical_positional_scan.cpp +3 -3
- package/src/duckdb/src/execution/operator/scan/physical_table_scan.cpp +6 -5
- package/src/duckdb/src/execution/operator/schema/physical_attach.cpp +11 -9
- package/src/duckdb/src/execution/operator/schema/physical_create_art_index.cpp +5 -4
- package/src/duckdb/src/execution/operator/schema/physical_create_table.cpp +3 -3
- package/src/duckdb/src/execution/operator/schema/physical_create_type.cpp +3 -2
- package/src/duckdb/src/execution/operator/schema/physical_drop.cpp +3 -2
- package/src/duckdb/src/execution/operator/set/physical_cte.cpp +5 -4
- package/src/duckdb/src/execution/operator/set/physical_recursive_cte.cpp +5 -3
- package/src/duckdb/src/execution/operator/set/physical_union.cpp +3 -3
- package/src/duckdb/src/execution/physical_operator.cpp +42 -32
- package/src/duckdb/src/execution/physical_plan/plan_aggregate.cpp +24 -12
- package/src/duckdb/src/execution/physical_plan/plan_asof_join.cpp +5 -3
- package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +12 -18
- package/src/duckdb/src/execution/physical_plan/plan_get.cpp +3 -1
- package/src/duckdb/src/execution/physical_plan/plan_insert.cpp +11 -10
- package/src/duckdb/src/execution/physical_plan/plan_merge_into.cpp +132 -0
- package/src/duckdb/src/execution/physical_plan/plan_recursive_cte.cpp +16 -18
- package/src/duckdb/src/execution/physical_plan_generator.cpp +8 -5
- package/src/duckdb/src/execution/radix_partitioned_hashtable.cpp +16 -27
- package/src/duckdb/src/execution/sample/base_reservoir_sample.cpp +22 -22
- package/src/duckdb/src/function/aggregate/distributive/count.cpp +14 -11
- package/src/duckdb/src/function/aggregate/distributive/first_last_any.cpp +23 -19
- package/src/duckdb/src/function/aggregate/distributive/minmax.cpp +14 -7
- package/src/duckdb/src/function/aggregate/sorted_aggregate_function.cpp +185 -234
- package/src/duckdb/src/function/cast/bignum_casts.cpp +315 -0
- package/src/duckdb/src/function/cast/blob_cast.cpp +3 -0
- package/src/duckdb/src/function/cast/cast_function_set.cpp +24 -4
- package/src/duckdb/src/function/cast/decimal_cast.cpp +3 -3
- package/src/duckdb/src/function/cast/default_casts.cpp +12 -4
- package/src/duckdb/src/function/cast/enum_casts.cpp +4 -3
- package/src/duckdb/src/function/cast/numeric_casts.cpp +3 -3
- package/src/duckdb/src/function/cast/string_cast.cpp +14 -11
- package/src/duckdb/src/function/cast/struct_cast.cpp +127 -2
- package/src/duckdb/src/function/cast/time_casts.cpp +18 -0
- package/src/duckdb/src/function/cast/union_casts.cpp +7 -6
- package/src/duckdb/src/function/cast/uuid_casts.cpp +3 -0
- package/src/duckdb/src/function/cast/variant/from_variant.cpp +697 -0
- package/src/duckdb/src/function/cast/variant/to_json.cpp +272 -0
- package/src/duckdb/src/function/cast/variant/to_variant.cpp +193 -0
- package/src/duckdb/src/function/cast_rules.cpp +38 -4
- package/src/duckdb/src/function/copy_blob.cpp +157 -0
- package/src/duckdb/src/function/copy_function.cpp +15 -0
- package/src/duckdb/src/function/function.cpp +2 -0
- package/src/duckdb/src/function/function_binder.cpp +239 -13
- package/src/duckdb/src/function/function_list.cpp +8 -0
- package/src/duckdb/src/function/macro_function.cpp +263 -70
- package/src/duckdb/src/function/pragma/pragma_functions.cpp +6 -38
- package/src/duckdb/src/function/pragma/pragma_queries.cpp +37 -22
- package/src/duckdb/src/function/register_function_list.cpp +5 -5
- package/src/duckdb/src/function/scalar/compressed_materialization/compress_integral.cpp +43 -34
- package/src/duckdb/src/function/scalar/compressed_materialization/compress_string.cpp +61 -38
- package/src/duckdb/src/function/scalar/create_sort_key.cpp +374 -154
- package/src/duckdb/src/function/scalar/date/strftime.cpp +31 -28
- package/src/duckdb/src/function/scalar/generic/constant_or_null.cpp +18 -14
- package/src/duckdb/src/function/scalar/generic/error.cpp +18 -7
- package/src/duckdb/src/function/scalar/generic/getvariable.cpp +5 -2
- package/src/duckdb/src/function/scalar/list/contains_or_position.cpp +4 -52
- package/src/duckdb/src/function/scalar/list/list_extract.cpp +5 -12
- package/src/duckdb/src/function/scalar/list/list_resize.cpp +1 -1
- package/src/duckdb/src/function/scalar/list/list_select.cpp +11 -27
- package/src/duckdb/src/function/scalar/map/map_contains.cpp +5 -31
- package/src/duckdb/src/function/scalar/operator/add.cpp +6 -1
- package/src/duckdb/src/function/scalar/operator/arithmetic.cpp +130 -10
- package/src/duckdb/src/function/scalar/operator/multiply.cpp +4 -2
- package/src/duckdb/src/function/scalar/operator/subtract.cpp +3 -1
- package/src/duckdb/src/function/scalar/sequence/nextval.cpp +7 -3
- package/src/duckdb/src/function/scalar/strftime_format.cpp +2 -2
- package/src/duckdb/src/function/scalar/string/caseconvert.cpp +4 -0
- package/src/duckdb/src/function/scalar/string/concat.cpp +18 -19
- package/src/duckdb/src/function/scalar/string/contains.cpp +14 -7
- package/src/duckdb/src/function/scalar/string/length.cpp +13 -9
- package/src/duckdb/src/function/scalar/string/like.cpp +146 -143
- package/src/duckdb/src/function/scalar/string/md5.cpp +6 -2
- package/src/duckdb/src/function/scalar/string/nfc_normalize.cpp +5 -1
- package/src/duckdb/src/function/scalar/string/prefix.cpp +11 -8
- package/src/duckdb/src/function/scalar/string/regexp_escape.cpp +5 -1
- package/src/duckdb/src/function/scalar/string/sha1.cpp +5 -1
- package/src/duckdb/src/function/scalar/string/sha256.cpp +5 -1
- package/src/duckdb/src/function/scalar/string/string_split.cpp +7 -3
- package/src/duckdb/src/function/scalar/string/strip_accents.cpp +5 -1
- package/src/duckdb/src/function/scalar/string/substring.cpp +10 -6
- package/src/duckdb/src/function/scalar/string/suffix.cpp +10 -8
- package/src/duckdb/src/function/scalar/struct/remap_struct.cpp +20 -17
- package/src/duckdb/src/function/scalar/struct/struct_concat.cpp +1 -1
- package/src/duckdb/src/function/scalar/struct/struct_contains.cpp +255 -0
- package/src/duckdb/src/function/scalar/struct/struct_pack.cpp +2 -2
- package/src/duckdb/src/function/scalar/system/aggregate_export.cpp +34 -31
- package/src/duckdb/src/function/scalar/system/current_connection_id.cpp +5 -1
- package/src/duckdb/src/function/scalar/system/current_query_id.cpp +5 -1
- package/src/duckdb/src/function/scalar/system/current_transaction_id.cpp +5 -1
- package/src/duckdb/src/function/scalar/system/parse_log_message.cpp +5 -1
- package/src/duckdb/src/function/scalar/system/write_log.cpp +11 -13
- package/src/duckdb/src/function/scalar/variant/variant_extract.cpp +234 -0
- package/src/duckdb/src/function/scalar/variant/variant_typeof.cpp +70 -0
- package/src/duckdb/src/function/scalar/variant/variant_utils.cpp +412 -0
- package/src/duckdb/src/function/scalar_macro_function.cpp +8 -11
- package/src/duckdb/src/function/table/arrow/arrow_array_scan_state.cpp +2 -3
- package/src/duckdb/src/function/table/arrow/arrow_duck_schema.cpp +27 -2
- package/src/duckdb/src/function/table/arrow.cpp +37 -17
- package/src/duckdb/src/function/table/arrow_conversion.cpp +186 -236
- package/src/duckdb/src/function/table/copy_csv.cpp +76 -245
- package/src/duckdb/src/function/table/direct_file_reader.cpp +172 -0
- package/src/duckdb/src/function/table/read_file.cpp +90 -220
- package/src/duckdb/src/function/table/sniff_csv.cpp +0 -1
- package/src/duckdb/src/function/table/system/duckdb_approx_database_count.cpp +43 -0
- package/src/duckdb/src/function/table/system/duckdb_columns.cpp +2 -2
- package/src/duckdb/src/function/table/system/duckdb_constraints.cpp +3 -7
- package/src/duckdb/src/function/table/system/duckdb_databases.cpp +20 -5
- package/src/duckdb/src/function/table/system/duckdb_extensions.cpp +10 -5
- package/src/duckdb/src/function/table/system/duckdb_functions.cpp +6 -22
- package/src/duckdb/src/function/table/system/duckdb_log.cpp +41 -5
- package/src/duckdb/src/function/table/system/duckdb_log_contexts.cpp +15 -6
- package/src/duckdb/src/function/table/system/duckdb_settings.cpp +29 -6
- package/src/duckdb/src/function/table/system/duckdb_types.cpp +4 -0
- package/src/duckdb/src/function/table/system/logging_utils.cpp +154 -0
- package/src/duckdb/src/function/table/system/pragma_database_size.cpp +2 -2
- package/src/duckdb/src/function/table/system/test_all_types.cpp +30 -6
- package/src/duckdb/src/function/table/system_functions.cpp +2 -0
- package/src/duckdb/src/function/table/table_scan.cpp +82 -48
- package/src/duckdb/src/function/table/version/pragma_version.cpp +7 -4
- package/src/duckdb/src/function/window/window_aggregate_function.cpp +56 -46
- package/src/duckdb/src/function/window/window_aggregator.cpp +33 -19
- package/src/duckdb/src/function/window/window_boundaries_state.cpp +12 -2
- package/src/duckdb/src/function/window/window_collection.cpp +30 -0
- package/src/duckdb/src/function/window/window_constant_aggregator.cpp +32 -24
- package/src/duckdb/src/function/window/window_custom_aggregator.cpp +54 -40
- package/src/duckdb/src/function/window/window_distinct_aggregator.cpp +200 -251
- package/src/duckdb/src/function/window/window_executor.cpp +44 -36
- package/src/duckdb/src/function/window/window_index_tree.cpp +26 -16
- package/src/duckdb/src/function/window/window_merge_sort_tree.cpp +98 -151
- package/src/duckdb/src/function/window/window_naive_aggregator.cpp +94 -72
- package/src/duckdb/src/function/window/window_rank_function.cpp +57 -63
- package/src/duckdb/src/function/window/window_rownumber_function.cpp +45 -47
- package/src/duckdb/src/function/window/window_segment_tree.cpp +28 -22
- package/src/duckdb/src/function/window/window_token_tree.cpp +46 -41
- package/src/duckdb/src/function/window/window_value_function.cpp +632 -93
- package/src/duckdb/src/include/duckdb/catalog/catalog.hpp +24 -5
- package/src/duckdb/src/include/duckdb/catalog/default/builtin_types/types.hpp +5 -2
- package/src/duckdb/src/include/duckdb/catalog/duck_catalog.hpp +16 -0
- package/src/duckdb/src/include/duckdb/common/adbc/adbc.hpp +68 -1
- package/src/duckdb/src/include/duckdb/common/allocator.hpp +3 -0
- package/src/duckdb/src/include/duckdb/common/arena_linked_list.hpp +169 -0
- package/src/duckdb/src/include/duckdb/common/arrow/appender/append_data.hpp +31 -55
- package/src/duckdb/src/include/duckdb/common/arrow/appender/enum_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/arrow/appender/list_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/arrow/appender/list_view_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/arrow/appender/map_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/arrow/appender/scalar_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/arrow/appender/varchar_data.hpp +6 -6
- package/src/duckdb/src/include/duckdb/common/arrow/arrow_wrapper.hpp +10 -0
- package/src/duckdb/src/include/duckdb/common/arrow/physical_arrow_batch_collector.hpp +2 -2
- package/src/duckdb/src/include/duckdb/common/arrow/physical_arrow_collector.hpp +3 -4
- package/src/duckdb/src/include/duckdb/common/bignum.hpp +85 -0
- package/src/duckdb/src/include/duckdb/common/box_renderer.hpp +4 -4
- package/src/duckdb/src/include/duckdb/common/chrono.hpp +1 -0
- package/src/duckdb/src/include/duckdb/common/complex_json.hpp +15 -4
- package/src/duckdb/src/include/duckdb/common/compressed_file_system.hpp +2 -2
- package/src/duckdb/src/include/duckdb/common/csv_writer.hpp +153 -0
- package/src/duckdb/src/include/duckdb/common/encryption_functions.hpp +54 -0
- package/src/duckdb/src/include/duckdb/common/encryption_key_manager.hpp +80 -0
- package/src/duckdb/src/include/duckdb/common/encryption_state.hpp +25 -9
- package/src/duckdb/src/include/duckdb/common/enum_util.hpp +120 -0
- package/src/duckdb/src/include/duckdb/common/enums/arrow_format_version.hpp +33 -0
- package/src/duckdb/src/include/duckdb/common/enums/checkpoint_abort.hpp +22 -0
- package/src/duckdb/src/include/duckdb/common/enums/checkpoint_type.hpp +3 -1
- package/src/duckdb/src/include/duckdb/common/enums/copy_option_mode.hpp +17 -0
- package/src/duckdb/src/include/duckdb/common/enums/debug_vector_verification.hpp +2 -1
- package/src/duckdb/src/include/duckdb/common/enums/explain_format.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/enums/expression_type.hpp +1 -0
- package/src/duckdb/src/include/duckdb/common/enums/file_glob_options.hpp +11 -3
- package/src/duckdb/src/include/duckdb/common/enums/logical_operator_type.hpp +1 -0
- package/src/duckdb/src/include/duckdb/common/enums/merge_action_type.hpp +19 -0
- package/src/duckdb/src/include/duckdb/common/enums/metric_type.hpp +3 -0
- package/src/duckdb/src/include/duckdb/common/enums/optimizer_type.hpp +2 -1
- package/src/duckdb/src/include/duckdb/common/enums/ordinality_request_type.hpp +16 -0
- package/src/duckdb/src/include/duckdb/common/enums/physical_operator_type.hpp +1 -0
- package/src/duckdb/src/include/duckdb/common/enums/statement_type.hpp +1 -0
- package/src/duckdb/src/include/duckdb/common/enums/tableref_type.hpp +2 -1
- package/src/duckdb/src/include/duckdb/common/enums/thread_pin_mode.hpp +17 -0
- package/src/duckdb/src/include/duckdb/common/enums/tuple_data_layout_enums.hpp +25 -0
- package/src/duckdb/src/include/duckdb/common/enums/undo_flags.hpp +2 -1
- package/src/duckdb/src/include/duckdb/common/error_data.hpp +4 -2
- package/src/duckdb/src/include/duckdb/common/exception_format_value.hpp +9 -1
- package/src/duckdb/src/include/duckdb/common/extra_type_info.hpp +25 -1
- package/src/duckdb/src/include/duckdb/common/file_buffer.hpp +15 -6
- package/src/duckdb/src/include/duckdb/common/file_open_flags.hpp +14 -0
- package/src/duckdb/src/include/duckdb/common/file_opener.hpp +2 -1
- package/src/duckdb/src/include/duckdb/common/file_system.hpp +14 -6
- package/src/duckdb/src/include/duckdb/common/fsst.hpp +3 -2
- package/src/duckdb/src/include/duckdb/common/gzip_file_system.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/helper.hpp +21 -3
- package/src/duckdb/src/include/duckdb/common/local_file_system.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/multi_file/base_file_reader.hpp +4 -0
- package/src/duckdb/src/include/duckdb/common/multi_file/multi_file_function.hpp +43 -14
- package/src/duckdb/src/include/duckdb/common/multi_file/multi_file_list.hpp +4 -3
- package/src/duckdb/src/include/duckdb/common/multi_file/multi_file_reader.hpp +10 -3
- package/src/duckdb/src/include/duckdb/common/multi_file/multi_file_states.hpp +2 -0
- package/src/duckdb/src/include/duckdb/common/numeric_utils.hpp +57 -0
- package/src/duckdb/src/include/duckdb/common/opener_file_system.hpp +7 -3
- package/src/duckdb/src/include/duckdb/common/operator/cast_operators.hpp +84 -0
- package/src/duckdb/src/include/duckdb/common/operator/interpolate.hpp +39 -0
- package/src/duckdb/src/include/duckdb/common/operator/string_cast.hpp +6 -0
- package/src/duckdb/src/include/duckdb/common/optionally_owned_ptr.hpp +18 -2
- package/src/duckdb/src/include/duckdb/common/owning_string_map.hpp +8 -0
- package/src/duckdb/src/include/duckdb/common/pipe_file_system.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/progress_bar/display/terminal_progress_bar_display.hpp +44 -5
- package/src/duckdb/src/include/duckdb/common/progress_bar/progress_bar.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/progress_bar/unscented_kalman_filter.hpp +65 -0
- package/src/duckdb/src/include/duckdb/common/row_operations/row_matcher.hpp +8 -14
- package/src/duckdb/src/include/duckdb/common/row_operations/row_operations.hpp +0 -12
- package/src/duckdb/src/include/duckdb/common/serializer/buffered_file_reader.hpp +2 -0
- package/src/duckdb/src/include/duckdb/common/serializer/deserializer.hpp +17 -2
- package/src/duckdb/src/include/duckdb/common/serializer/memory_stream.hpp +1 -0
- package/src/duckdb/src/include/duckdb/common/serializer/read_stream.hpp +9 -1
- package/src/duckdb/src/include/duckdb/common/serializer/varint.hpp +62 -0
- package/src/duckdb/src/include/duckdb/common/sorting/hashed_sort.hpp +76 -0
- package/src/duckdb/src/include/duckdb/common/sorting/sort.hpp +85 -0
- package/src/duckdb/src/include/duckdb/common/sorting/sort_key.hpp +442 -0
- package/src/duckdb/src/include/duckdb/common/sorting/sort_projection_column.hpp +21 -0
- package/src/duckdb/src/include/duckdb/common/sorting/sorted_run.hpp +55 -0
- package/src/duckdb/src/include/duckdb/common/sorting/sorted_run_merger.hpp +62 -0
- package/src/duckdb/src/include/duckdb/common/tree_renderer/text_tree_renderer.hpp +5 -0
- package/src/duckdb/src/include/duckdb/common/tree_renderer/yaml_tree_renderer.hpp +40 -0
- package/src/duckdb/src/include/duckdb/common/type_util.hpp +34 -4
- package/src/duckdb/src/include/duckdb/common/type_visitor.hpp +36 -6
- package/src/duckdb/src/include/duckdb/common/types/bignum.hpp +159 -0
- package/src/duckdb/src/include/duckdb/common/types/column/column_data_allocator.hpp +3 -2
- package/src/duckdb/src/include/duckdb/common/types/column/column_data_collection_segment.hpp +4 -2
- package/src/duckdb/src/include/duckdb/common/types/conflict_manager.hpp +202 -56
- package/src/duckdb/src/include/duckdb/common/types/constraint_conflict_info.hpp +7 -5
- package/src/duckdb/src/include/duckdb/common/types/data_chunk.hpp +3 -1
- package/src/duckdb/src/include/duckdb/common/types/date.hpp +9 -5
- package/src/duckdb/src/include/duckdb/common/types/datetime.hpp +11 -2
- package/src/duckdb/src/include/duckdb/common/types/double_na_equal.hpp +65 -0
- package/src/duckdb/src/include/duckdb/common/types/hash.hpp +22 -10
- package/src/duckdb/src/include/duckdb/common/types/hugeint.hpp +6 -6
- package/src/duckdb/src/include/duckdb/common/types/row/block_iterator.hpp +360 -0
- package/src/duckdb/src/include/duckdb/common/types/row/partitioned_tuple_data.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/types/row/row_data_collection.hpp +1 -2
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_allocator.hpp +7 -0
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_collection.hpp +26 -2
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_layout.hpp +43 -5
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_segment.hpp +4 -11
- package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_states.hpp +10 -1
- package/src/duckdb/src/include/duckdb/common/types/selection_vector.hpp +8 -58
- package/src/duckdb/src/include/duckdb/common/types/string.hpp +338 -0
- package/src/duckdb/src/include/duckdb/common/types/string_type.hpp +7 -1
- package/src/duckdb/src/include/duckdb/common/types/timestamp.hpp +7 -3
- package/src/duckdb/src/include/duckdb/common/types/uhugeint.hpp +4 -4
- package/src/duckdb/src/include/duckdb/common/types/uuid.hpp +5 -0
- package/src/duckdb/src/include/duckdb/common/types/validity_mask.hpp +14 -5
- package/src/duckdb/src/include/duckdb/common/types/value.hpp +15 -2
- package/src/duckdb/src/include/duckdb/common/types/variant.hpp +202 -0
- package/src/duckdb/src/include/duckdb/common/types/vector.hpp +118 -5
- package/src/duckdb/src/include/duckdb/common/types/vector_buffer.hpp +8 -0
- package/src/duckdb/src/include/duckdb/common/types.hpp +26 -6
- package/src/duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp +50 -11
- package/src/duckdb/src/include/duckdb/common/virtual_file_system.hpp +2 -3
- package/src/duckdb/src/include/duckdb/common/winapi.hpp +0 -4
- package/src/duckdb/src/include/duckdb/execution/aggregate_hashtable.hpp +8 -6
- package/src/duckdb/src/include/duckdb/execution/executor.hpp +0 -2
- package/src/duckdb/src/include/duckdb/execution/expression_executor.hpp +4 -0
- package/src/duckdb/src/include/duckdb/execution/expression_executor_state.hpp +21 -2
- package/src/duckdb/src/include/duckdb/execution/ht_entry.hpp +4 -0
- package/src/duckdb/src/include/duckdb/execution/index/art/art.hpp +15 -16
- package/src/duckdb/src/include/duckdb/execution/index/art/art_builder.hpp +55 -0
- package/src/duckdb/src/include/duckdb/execution/index/art/art_key.hpp +0 -13
- package/src/duckdb/src/include/duckdb/execution/index/art/art_merger.hpp +1 -0
- package/src/duckdb/src/include/duckdb/execution/index/art/art_operator.hpp +113 -1
- package/src/duckdb/src/include/duckdb/execution/index/art/art_scanner.hpp +5 -2
- package/src/duckdb/src/include/duckdb/execution/index/art/base_leaf.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/index/art/base_node.hpp +18 -15
- package/src/duckdb/src/include/duckdb/execution/index/art/iterator.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/index/art/leaf.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/index/art/node.hpp +30 -3
- package/src/duckdb/src/include/duckdb/execution/index/art/node256.hpp +30 -8
- package/src/duckdb/src/include/duckdb/execution/index/art/node256_leaf.hpp +8 -5
- package/src/duckdb/src/include/duckdb/execution/index/art/node48.hpp +36 -9
- package/src/duckdb/src/include/duckdb/execution/index/art/prefix.hpp +9 -20
- package/src/duckdb/src/include/duckdb/execution/index/bound_index.hpp +8 -6
- package/src/duckdb/src/include/duckdb/execution/index/fixed_size_allocator.hpp +21 -4
- package/src/duckdb/src/include/duckdb/execution/index/fixed_size_buffer.hpp +95 -11
- package/src/duckdb/src/include/duckdb/execution/index/unbound_index.hpp +22 -11
- package/src/duckdb/src/include/duckdb/execution/join_hashtable.hpp +6 -1
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/distinct_aggregate_data.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_hash_aggregate.hpp +12 -8
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_partitioned_aggregate.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_perfecthash_aggregate.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_streaming_window.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_ungrouped_aggregate.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_window.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_error.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_file_handle.hpp +3 -0
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_multi_file_info.hpp +3 -3
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_reader_options.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_state.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_state_machine.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/encode/csv_encoder.hpp +3 -0
- package/src/duckdb/src/include/duckdb/execution/operator/filter/physical_filter.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_batch_collector.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_buffered_batch_collector.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_buffered_collector.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_create_secret.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_execute.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_explain_analyze.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit_percent.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_load.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_materialized_collector.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_pragma.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_prepare.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_reservoir_sample.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_reset.hpp +5 -4
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_result_collector.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_set.hpp +6 -3
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_set_variable.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_streaming_limit.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_streaming_sample.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_transaction.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_update_extensions.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_vacuum.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_verify_vector.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_asof_join.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_blockwise_nl_join.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_comparison_join.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_cross_product.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_delim_join.hpp +4 -3
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_hash_join.hpp +4 -4
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_iejoin.hpp +5 -4
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_join.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_left_delim_join.hpp +4 -3
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_nested_loop_join.hpp +6 -5
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_piecewise_merge_join.hpp +3 -3
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_positional_join.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_range_join.hpp +3 -3
- package/src/duckdb/src/include/duckdb/execution/operator/join/physical_right_delim_join.hpp +4 -3
- package/src/duckdb/src/include/duckdb/execution/operator/order/physical_order.hpp +13 -9
- package/src/duckdb/src/include/duckdb/execution/operator/order/physical_top_n.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_copy_to_file.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_insert.hpp +3 -3
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_copy_database.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_copy_to_file.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_delete.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_export.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_insert.hpp +3 -3
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_merge_into.hpp +87 -0
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_update.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_pivot.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_projection.hpp +2 -7
- package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_tableinout_function.hpp +6 -1
- package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_unnest.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_column_data_scan.hpp +4 -4
- package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_dummy_scan.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_empty_result.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_expression_scan.hpp +4 -3
- package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_positional_scan.hpp +2 -1
- package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_table_scan.hpp +4 -3
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_alter.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_attach.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_art_index.hpp +4 -4
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_function.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_schema.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_sequence.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_table.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_type.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_view.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_detach.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_drop.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/set/physical_cte.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/set/physical_recursive_cte.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/operator/set/physical_union.hpp +2 -2
- package/src/duckdb/src/include/duckdb/execution/physical_operator.hpp +23 -22
- package/src/duckdb/src/include/duckdb/execution/physical_plan_generator.hpp +7 -2
- package/src/duckdb/src/include/duckdb/execution/radix_partitioned_hashtable.hpp +4 -1
- package/src/duckdb/src/include/duckdb/execution/reservoir_sample.hpp +0 -1
- package/src/duckdb/src/include/duckdb/function/aggregate/distributive_functions.hpp +3 -3
- package/src/duckdb/src/include/duckdb/function/aggregate_function.hpp +36 -11
- package/src/duckdb/src/include/duckdb/function/built_in_functions.hpp +1 -0
- package/src/duckdb/src/include/duckdb/function/cast/bound_cast_data.hpp +28 -0
- package/src/duckdb/src/include/duckdb/function/cast/cast_function_set.hpp +6 -1
- package/src/duckdb/src/include/duckdb/function/cast/default_casts.hpp +5 -1
- package/src/duckdb/src/include/duckdb/function/cast/variant/array_to_variant.hpp +66 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/json_to_variant.hpp +283 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/list_to_variant.hpp +70 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/primitive_to_variant.hpp +399 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/struct_to_variant.hpp +111 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/to_variant.hpp +66 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/to_variant_fwd.hpp +179 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/union_to_variant.hpp +59 -0
- package/src/duckdb/src/include/duckdb/function/cast/variant/variant_to_variant.hpp +275 -0
- package/src/duckdb/src/include/duckdb/function/cast/vector_cast_helpers.hpp +2 -3
- package/src/duckdb/src/include/duckdb/function/copy_function.hpp +28 -10
- package/src/duckdb/src/include/duckdb/function/create_sort_key.hpp +13 -0
- package/src/duckdb/src/include/duckdb/function/function_binder.hpp +3 -0
- package/src/duckdb/src/include/duckdb/function/function_list.hpp +1 -1
- package/src/duckdb/src/include/duckdb/function/function_serialization.hpp +25 -3
- package/src/duckdb/src/include/duckdb/function/macro_function.hpp +18 -6
- package/src/duckdb/src/include/duckdb/function/pragma/pragma_functions.hpp +1 -1
- package/src/duckdb/src/include/duckdb/function/register_function_list_helper.hpp +34 -2
- package/src/duckdb/src/include/duckdb/function/scalar/compressed_materialization_functions.hpp +10 -0
- package/src/duckdb/src/include/duckdb/function/scalar/date_functions.hpp +6 -6
- package/src/duckdb/src/include/duckdb/function/scalar/list/contains_or_position.hpp +5 -5
- package/src/duckdb/src/include/duckdb/function/scalar/list_functions.hpp +19 -19
- package/src/duckdb/src/include/duckdb/function/scalar/string_functions.hpp +103 -103
- package/src/duckdb/src/include/duckdb/function/scalar/struct_functions.hpp +32 -0
- package/src/duckdb/src/include/duckdb/function/scalar/system_functions.hpp +1 -1
- package/src/duckdb/src/include/duckdb/function/scalar/variant_functions.hpp +38 -0
- package/src/duckdb/src/include/duckdb/function/scalar/variant_utils.hpp +85 -0
- package/src/duckdb/src/include/duckdb/function/table/arrow/arrow_duck_schema.hpp +8 -2
- package/src/duckdb/src/include/duckdb/function/table/arrow/arrow_type_info.hpp +2 -0
- package/src/duckdb/src/include/duckdb/function/table/arrow.hpp +26 -11
- package/src/duckdb/src/include/duckdb/function/table/direct_file_reader.hpp +39 -0
- package/src/duckdb/src/include/duckdb/function/table/read_csv.hpp +2 -12
- package/src/duckdb/src/include/duckdb/function/table/read_file.hpp +83 -0
- package/src/duckdb/src/include/duckdb/function/table/system_functions.hpp +9 -1
- package/src/duckdb/src/include/duckdb/function/table_function.hpp +8 -5
- package/src/duckdb/src/include/duckdb/function/window/window_aggregate_function.hpp +10 -10
- package/src/duckdb/src/include/duckdb/function/window/window_aggregator.hpp +25 -48
- package/src/duckdb/src/include/duckdb/function/window/window_collection.hpp +142 -0
- package/src/duckdb/src/include/duckdb/function/window/window_constant_aggregator.hpp +11 -12
- package/src/duckdb/src/include/duckdb/function/window/window_custom_aggregator.hpp +8 -8
- package/src/duckdb/src/include/duckdb/function/window/window_distinct_aggregator.hpp +10 -10
- package/src/duckdb/src/include/duckdb/function/window/window_executor.hpp +26 -40
- package/src/duckdb/src/include/duckdb/function/window/window_index_tree.hpp +2 -2
- package/src/duckdb/src/include/duckdb/function/window/window_merge_sort_tree.hpp +32 -30
- package/src/duckdb/src/include/duckdb/function/window/window_naive_aggregator.hpp +5 -3
- package/src/duckdb/src/include/duckdb/function/window/window_rank_function.hpp +17 -16
- package/src/duckdb/src/include/duckdb/function/window/window_rownumber_function.hpp +10 -9
- package/src/duckdb/src/include/duckdb/function/window/window_segment_tree.hpp +8 -8
- package/src/duckdb/src/include/duckdb/function/window/window_token_tree.hpp +6 -6
- package/src/duckdb/src/include/duckdb/function/window/window_value_function.hpp +44 -21
- package/src/duckdb/src/include/duckdb/logging/log_manager.hpp +12 -4
- package/src/duckdb/src/include/duckdb/logging/log_storage.hpp +271 -50
- package/src/duckdb/src/include/duckdb/main/appender.hpp +37 -16
- package/src/duckdb/src/include/duckdb/main/attached_database.hpp +18 -4
- package/src/duckdb/src/include/duckdb/main/capi/capi_internal.hpp +23 -6
- package/src/duckdb/src/include/duckdb/main/capi/extension_api.hpp +92 -8
- package/src/duckdb/src/include/duckdb/main/client_config.hpp +11 -70
- package/src/duckdb/src/include/duckdb/main/client_context.hpp +28 -5
- package/src/duckdb/src/include/duckdb/main/client_data.hpp +21 -23
- package/src/duckdb/src/include/duckdb/main/client_properties.hpp +3 -19
- package/src/duckdb/src/include/duckdb/main/config.hpp +48 -111
- package/src/duckdb/src/include/duckdb/main/database.hpp +23 -27
- package/src/duckdb/src/include/duckdb/main/database_file_opener.hpp +1 -0
- package/src/duckdb/src/include/duckdb/main/database_file_path_manager.hpp +39 -0
- package/src/duckdb/src/include/duckdb/main/database_manager.hpp +19 -21
- package/src/duckdb/src/include/duckdb/main/database_path_and_type.hpp +3 -1
- package/src/duckdb/src/include/duckdb/main/db_instance_cache.hpp +8 -4
- package/src/duckdb/src/include/duckdb/main/error_manager.hpp +3 -1
- package/src/duckdb/src/include/duckdb/main/extension/extension_loader.hpp +120 -0
- package/src/duckdb/src/include/duckdb/main/extension.hpp +2 -2
- package/src/duckdb/src/include/duckdb/main/extension_entries.hpp +35 -0
- package/src/duckdb/src/include/duckdb/main/extension_helper.hpp +2 -0
- package/src/duckdb/src/include/duckdb/main/extension_manager.hpp +59 -0
- package/src/duckdb/src/include/duckdb/main/extension_util.hpp +6 -77
- package/src/duckdb/src/include/duckdb/main/query_profiler.hpp +41 -23
- package/src/duckdb/src/include/duckdb/main/relation.hpp +1 -1
- package/src/duckdb/src/include/duckdb/main/secret/secret.hpp +1 -0
- package/src/duckdb/src/include/duckdb/main/secret/secret_manager.hpp +18 -18
- package/src/duckdb/src/include/duckdb/main/setting_info.hpp +109 -0
- package/src/duckdb/src/include/duckdb/main/settings.hpp +168 -184
- package/src/duckdb/src/include/duckdb/main/valid_checker.hpp +5 -2
- package/src/duckdb/src/include/duckdb/optimizer/build_probe_side_optimizer.hpp +1 -1
- package/src/duckdb/src/include/duckdb/optimizer/column_lifetime_analyzer.hpp +1 -1
- package/src/duckdb/src/include/duckdb/optimizer/compressed_materialization.hpp +4 -0
- package/src/duckdb/src/include/duckdb/optimizer/cte_inlining.hpp +50 -0
- package/src/duckdb/src/include/duckdb/optimizer/filter_pushdown.hpp +4 -1
- package/src/duckdb/src/include/duckdb/optimizer/join_order/join_order_optimizer.hpp +3 -0
- package/src/duckdb/src/include/duckdb/optimizer/late_materialization.hpp +1 -1
- package/src/duckdb/src/include/duckdb/optimizer/rule/date_trunc_simplification.hpp +73 -0
- package/src/duckdb/src/include/duckdb/optimizer/rule/list.hpp +1 -0
- package/src/duckdb/src/include/duckdb/parallel/interrupt.hpp +9 -3
- package/src/duckdb/src/include/duckdb/parallel/task_scheduler.hpp +1 -0
- package/src/duckdb/src/include/duckdb/parser/common_table_expression_info.hpp +3 -1
- package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_table_info.hpp +18 -8
- package/src/duckdb/src/include/duckdb/parser/parsed_data/attach_info.hpp +3 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/copy_info.hpp +6 -4
- package/src/duckdb/src/include/duckdb/parser/parsed_data/create_info.hpp +2 -0
- package/src/duckdb/src/include/duckdb/parser/parsed_expression_iterator.hpp +14 -0
- package/src/duckdb/src/include/duckdb/parser/parser.hpp +2 -0
- package/src/duckdb/src/include/duckdb/parser/qualified_name.hpp +2 -0
- package/src/duckdb/src/include/duckdb/parser/query_node/cte_node.hpp +2 -0
- package/src/duckdb/src/include/duckdb/parser/statement/list.hpp +1 -0
- package/src/duckdb/src/include/duckdb/parser/statement/merge_into_statement.hpp +72 -0
- package/src/duckdb/src/include/duckdb/parser/statement/select_statement.hpp +1 -4
- package/src/duckdb/src/include/duckdb/parser/statement/update_statement.hpp +1 -0
- package/src/duckdb/src/include/duckdb/parser/tableref/bound_ref_wrapper.hpp +38 -0
- package/src/duckdb/src/include/duckdb/parser/tableref/column_data_ref.hpp +4 -9
- package/src/duckdb/src/include/duckdb/parser/tableref/joinref.hpp +2 -0
- package/src/duckdb/src/include/duckdb/parser/tableref/list.hpp +1 -0
- package/src/duckdb/src/include/duckdb/parser/tableref/showref.hpp +5 -1
- package/src/duckdb/src/include/duckdb/parser/tableref/table_function_ref.hpp +4 -0
- package/src/duckdb/src/include/duckdb/parser/tokens.hpp +3 -0
- package/src/duckdb/src/include/duckdb/parser/transformer.hpp +9 -2
- package/src/duckdb/src/include/duckdb/planner/bind_context.hpp +5 -0
- package/src/duckdb/src/include/duckdb/planner/binder.hpp +45 -8
- package/src/duckdb/src/include/duckdb/planner/bound_constraint.hpp +2 -0
- package/src/duckdb/src/include/duckdb/planner/bound_result_modifier.hpp +1 -0
- package/src/duckdb/src/include/duckdb/planner/bound_tokens.hpp +3 -0
- package/src/duckdb/src/include/duckdb/planner/constraints/bound_check_constraint.hpp +8 -0
- package/src/duckdb/src/include/duckdb/planner/constraints/bound_foreign_key_constraint.hpp +4 -0
- package/src/duckdb/src/include/duckdb/planner/constraints/bound_not_null_constraint.hpp +4 -0
- package/src/duckdb/src/include/duckdb/planner/constraints/bound_unique_constraint.hpp +5 -0
- package/src/duckdb/src/include/duckdb/planner/expression/bound_between_expression.hpp +2 -2
- package/src/duckdb/src/include/duckdb/planner/expression_binder/projection_binder.hpp +37 -0
- package/src/duckdb/src/include/duckdb/planner/expression_binder/table_function_binder.hpp +3 -1
- package/src/duckdb/src/include/duckdb/planner/expression_binder.hpp +3 -8
- package/src/duckdb/src/include/duckdb/planner/expression_iterator.hpp +18 -0
- package/src/duckdb/src/include/duckdb/planner/extension_callback.hpp +8 -0
- package/src/duckdb/src/include/duckdb/planner/logical_operator_deep_copy.hpp +67 -0
- package/src/duckdb/src/include/duckdb/planner/logical_tokens.hpp +1 -0
- package/src/duckdb/src/include/duckdb/planner/operator/list.hpp +1 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_aggregate.hpp +3 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_cteref.hpp +1 -1
- package/src/duckdb/src/include/duckdb/planner/operator/logical_get.hpp +2 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +28 -22
- package/src/duckdb/src/include/duckdb/planner/operator/logical_join.hpp +1 -1
- package/src/duckdb/src/include/duckdb/planner/operator/logical_materialized_cte.hpp +5 -2
- package/src/duckdb/src/include/duckdb/planner/operator/logical_merge_into.hpp +75 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_recursive_cte.hpp +2 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_update.hpp +1 -1
- package/src/duckdb/src/include/duckdb/planner/query_node/bound_cte_node.hpp +2 -0
- package/src/duckdb/src/include/duckdb/storage/arena_allocator.hpp +26 -0
- package/src/duckdb/src/include/duckdb/storage/block.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/block_manager.hpp +24 -8
- package/src/duckdb/src/include/duckdb/storage/buffer/block_handle.hpp +3 -1
- package/src/duckdb/src/include/duckdb/storage/buffer_manager.hpp +55 -36
- package/src/duckdb/src/include/duckdb/storage/caching_file_system.hpp +10 -4
- package/src/duckdb/src/include/duckdb/storage/checkpoint/row_group_writer.hpp +19 -6
- package/src/duckdb/src/include/duckdb/storage/checkpoint/table_data_reader.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/checkpoint/table_data_writer.hpp +15 -8
- package/src/duckdb/src/include/duckdb/storage/checkpoint_manager.hpp +6 -8
- package/src/duckdb/src/include/duckdb/storage/compression/alp/algorithm/alp.hpp +2 -1
- package/src/duckdb/src/include/duckdb/storage/compression/alp/alp_fetch.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/alprd/alprd_analyze.hpp +4 -2
- package/src/duckdb/src/include/duckdb/storage/compression/alprd/alprd_fetch.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/alprd/alprd_scan.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/chimp/algorithm/packed_data.hpp +3 -1
- package/src/duckdb/src/include/duckdb/storage/compression/dict_fsst/compression.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/dict_fsst/decompression.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/patas/patas.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/patas/patas_fetch.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/compression/patas/patas_scan.hpp +7 -2
- package/src/duckdb/src/include/duckdb/storage/data_pointer.hpp +5 -0
- package/src/duckdb/src/include/duckdb/storage/data_table.hpp +14 -9
- package/src/duckdb/src/include/duckdb/storage/external_file_cache.hpp +6 -5
- package/src/duckdb/src/include/duckdb/storage/in_memory_block_manager.hpp +7 -2
- package/src/duckdb/src/include/duckdb/storage/magic_bytes.hpp +2 -1
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_manager.hpp +15 -0
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_reader.hpp +7 -0
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_writer.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/optimistic_data_writer.hpp +10 -3
- package/src/duckdb/src/include/duckdb/storage/partial_block_manager.hpp +14 -3
- package/src/duckdb/src/include/duckdb/storage/single_file_block_manager.hpp +65 -20
- package/src/duckdb/src/include/duckdb/storage/standard_buffer_manager.hpp +6 -6
- package/src/duckdb/src/include/duckdb/storage/statistics/base_statistics.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/storage_extension.hpp +4 -4
- package/src/duckdb/src/include/duckdb/storage/storage_info.hpp +80 -20
- package/src/duckdb/src/include/duckdb/storage/storage_manager.hpp +43 -17
- package/src/duckdb/src/include/duckdb/storage/storage_options.hpp +21 -0
- package/src/duckdb/src/include/duckdb/storage/table/array_column_data.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/table/column_checkpoint_state.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/table/column_data.hpp +7 -1
- package/src/duckdb/src/include/duckdb/storage/table/column_data_checkpointer.hpp +5 -2
- package/src/duckdb/src/include/duckdb/storage/table/column_segment.hpp +10 -7
- package/src/duckdb/src/include/duckdb/storage/table/data_table_info.hpp +3 -3
- package/src/duckdb/src/include/duckdb/storage/table/in_memory_checkpoint.hpp +93 -0
- package/src/duckdb/src/include/duckdb/storage/table/list_column_data.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/table/persistent_table_data.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/table/row_group.hpp +17 -2
- package/src/duckdb/src/include/duckdb/storage/table/row_group_collection.hpp +11 -1
- package/src/duckdb/src/include/duckdb/storage/table/row_group_segment_tree.hpp +5 -0
- package/src/duckdb/src/include/duckdb/storage/table/row_id_column_data.hpp +68 -0
- package/src/duckdb/src/include/duckdb/storage/table/segment_lock.hpp +4 -0
- package/src/duckdb/src/include/duckdb/storage/table/segment_tree.hpp +34 -14
- package/src/duckdb/src/include/duckdb/storage/table/standard_column_data.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/table/struct_column_data.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/table/table_index_list.hpp +55 -46
- package/src/duckdb/src/include/duckdb/storage/table/update_segment.hpp +3 -0
- package/src/duckdb/src/include/duckdb/storage/temporary_file_manager.hpp +17 -6
- package/src/duckdb/src/include/duckdb/storage/write_ahead_log.hpp +2 -1
- package/src/duckdb/src/include/duckdb/transaction/duck_transaction.hpp +3 -0
- package/src/duckdb/src/include/duckdb/transaction/duck_transaction_manager.hpp +1 -0
- package/src/duckdb/src/include/duckdb/transaction/local_storage.hpp +3 -1
- package/src/duckdb/src/include/duckdb/transaction/meta_transaction.hpp +22 -1
- package/src/duckdb/src/include/duckdb/transaction/undo_buffer_allocator.hpp +2 -0
- package/src/duckdb/src/include/duckdb/verification/explain_statement_verifier.hpp +23 -0
- package/src/duckdb/src/include/duckdb/verification/statement_verifier.hpp +14 -7
- package/src/duckdb/src/include/duckdb.h +537 -121
- package/src/duckdb/src/include/duckdb_extension.h +122 -14
- package/src/duckdb/src/logging/log_manager.cpp +59 -15
- package/src/duckdb/src/logging/log_storage.cpp +672 -128
- package/src/duckdb/src/main/appender.cpp +129 -88
- package/src/duckdb/src/main/attached_database.cpp +47 -52
- package/src/duckdb/src/main/capi/aggregate_function-c.cpp +18 -9
- package/src/duckdb/src/main/capi/appender-c.cpp +82 -28
- package/src/duckdb/src/main/capi/arrow-c.cpp +181 -17
- package/src/duckdb/src/main/capi/config-c.cpp +18 -3
- package/src/duckdb/src/main/capi/data_chunk-c.cpp +22 -10
- package/src/duckdb/src/main/capi/duckdb-c.cpp +64 -21
- package/src/duckdb/src/main/capi/duckdb_value-c.cpp +13 -7
- package/src/duckdb/src/main/capi/error_data-c.cpp +46 -0
- package/src/duckdb/src/main/capi/expression-c.cpp +57 -0
- package/src/duckdb/src/main/capi/helper-c.cpp +227 -39
- package/src/duckdb/src/main/capi/logical_types-c.cpp +48 -28
- package/src/duckdb/src/main/capi/prepared-c.cpp +68 -10
- package/src/duckdb/src/main/capi/profiling_info-c.cpp +6 -4
- package/src/duckdb/src/main/capi/result-c.cpp +16 -95
- package/src/duckdb/src/main/capi/scalar_function-c.cpp +43 -1
- package/src/duckdb/src/main/capi/table_function-c.cpp +9 -0
- package/src/duckdb/src/main/client_config.cpp +21 -0
- package/src/duckdb/src/main/client_context.cpp +153 -77
- package/src/duckdb/src/main/client_context_file_opener.cpp +1 -0
- package/src/duckdb/src/main/client_data.cpp +139 -1
- package/src/duckdb/src/main/client_verify.cpp +14 -6
- package/src/duckdb/src/main/config.cpp +214 -121
- package/src/duckdb/src/main/database.cpp +31 -58
- package/src/duckdb/src/main/database_file_path_manager.cpp +42 -0
- package/src/duckdb/src/main/database_manager.cpp +134 -108
- package/src/duckdb/src/main/database_path_and_type.cpp +4 -3
- package/src/duckdb/src/main/db_instance_cache.cpp +64 -35
- package/src/duckdb/src/main/error_manager.cpp +2 -1
- package/src/duckdb/src/main/extension/extension_helper.cpp +3 -22
- package/src/duckdb/src/main/extension/extension_install.cpp +6 -6
- package/src/duckdb/src/main/extension/extension_load.cpp +24 -9
- package/src/duckdb/src/main/extension/extension_loader.cpp +234 -0
- package/src/duckdb/src/main/extension_manager.cpp +115 -0
- package/src/duckdb/src/main/http/http_util.cpp +18 -5
- package/src/duckdb/src/main/profiling_info.cpp +8 -2
- package/src/duckdb/src/main/query_profiler.cpp +65 -30
- package/src/duckdb/src/main/query_result.cpp +1 -1
- package/src/duckdb/src/main/relation/query_relation.cpp +23 -0
- package/src/duckdb/src/main/secret/secret_manager.cpp +8 -7
- package/src/duckdb/src/main/settings/autogenerated_settings.cpp +50 -645
- package/src/duckdb/src/main/settings/custom_settings.cpp +111 -152
- package/src/duckdb/src/main/valid_checker.cpp +10 -4
- package/src/duckdb/src/optimizer/build_probe_side_optimizer.cpp +7 -5
- package/src/duckdb/src/optimizer/column_lifetime_analyzer.cpp +7 -7
- package/src/duckdb/src/optimizer/compressed_materialization/compress_comparison_join.cpp +11 -7
- package/src/duckdb/src/optimizer/compressed_materialization.cpp +56 -39
- package/src/duckdb/src/optimizer/cte_inlining.cpp +225 -0
- package/src/duckdb/src/optimizer/empty_result_pullup.cpp +8 -1
- package/src/duckdb/src/optimizer/filter_combiner.cpp +5 -7
- package/src/duckdb/src/optimizer/filter_pushdown.cpp +3 -0
- package/src/duckdb/src/optimizer/join_order/cardinality_estimator.cpp +18 -2
- package/src/duckdb/src/optimizer/join_order/join_order_optimizer.cpp +1 -0
- package/src/duckdb/src/optimizer/join_order/plan_enumerator.cpp +4 -3
- package/src/duckdb/src/optimizer/join_order/query_graph_manager.cpp +11 -15
- package/src/duckdb/src/optimizer/join_order/relation_manager.cpp +40 -23
- package/src/duckdb/src/optimizer/late_materialization.cpp +16 -23
- package/src/duckdb/src/optimizer/optimizer.cpp +15 -0
- package/src/duckdb/src/optimizer/pushdown/pushdown_aggregate.cpp +15 -20
- package/src/duckdb/src/optimizer/pushdown/pushdown_left_join.cpp +11 -13
- package/src/duckdb/src/optimizer/pushdown/pushdown_outer_join.cpp +201 -0
- package/src/duckdb/src/optimizer/pushdown/pushdown_projection.cpp +20 -26
- package/src/duckdb/src/optimizer/pushdown/pushdown_set_operation.cpp +11 -14
- package/src/duckdb/src/optimizer/remove_unused_columns.cpp +2 -1
- package/src/duckdb/src/optimizer/rule/date_trunc_simplification.cpp +446 -0
- package/src/duckdb/src/optimizer/rule/join_dependent_filter.cpp +3 -9
- package/src/duckdb/src/optimizer/rule/ordered_aggregate_optimizer.cpp +1 -6
- package/src/duckdb/src/optimizer/rule/timestamp_comparison.cpp +3 -6
- package/src/duckdb/src/optimizer/statistics/operator/propagate_aggregate.cpp +33 -1
- package/src/duckdb/src/parallel/event.cpp +1 -3
- package/src/duckdb/src/parallel/executor.cpp +0 -7
- package/src/duckdb/src/parallel/pipeline.cpp +2 -2
- package/src/duckdb/src/parallel/pipeline_executor.cpp +2 -2
- package/src/duckdb/src/parallel/task_scheduler.cpp +146 -34
- package/src/duckdb/src/parallel/thread_context.cpp +2 -9
- package/src/duckdb/src/parser/column_definition.cpp +3 -6
- package/src/duckdb/src/parser/expression/window_expression.cpp +3 -0
- package/src/duckdb/src/parser/parsed_data/attach_info.cpp +8 -35
- package/src/duckdb/src/parser/parsed_data/copy_info.cpp +27 -7
- package/src/duckdb/src/parser/parsed_data/create_index_info.cpp +8 -13
- package/src/duckdb/src/parser/parsed_data/create_info.cpp +16 -0
- package/src/duckdb/src/parser/parsed_data/create_macro_info.cpp +7 -17
- package/src/duckdb/src/parser/parsed_data/create_table_info.cpp +1 -14
- package/src/duckdb/src/parser/parsed_data/create_type_info.cpp +1 -12
- package/src/duckdb/src/parser/parsed_data/create_view_info.cpp +1 -13
- package/src/duckdb/src/parser/parsed_expression_iterator.cpp +22 -0
- package/src/duckdb/src/parser/parser.cpp +5 -0
- package/src/duckdb/src/parser/qualified_name.cpp +26 -0
- package/src/duckdb/src/parser/query_node/cte_node.cpp +1 -0
- package/src/duckdb/src/parser/query_node/select_node.cpp +1 -0
- package/src/duckdb/src/parser/query_node.cpp +1 -0
- package/src/duckdb/src/parser/statement/export_statement.cpp +1 -3
- package/src/duckdb/src/parser/statement/merge_into_statement.cpp +167 -0
- package/src/duckdb/src/parser/statement/update_statement.cpp +19 -16
- package/src/duckdb/src/parser/tableref/bound_ref_wrapper.cpp +29 -0
- package/src/duckdb/src/parser/tableref/column_data_ref.cpp +26 -1
- package/src/duckdb/src/parser/tableref/joinref.cpp +3 -2
- package/src/duckdb/src/parser/tableref/showref.cpp +14 -0
- package/src/duckdb/src/parser/tableref/table_function.cpp +6 -1
- package/src/duckdb/src/parser/transform/expression/transform_expression.cpp +0 -1
- package/src/duckdb/src/parser/transform/expression/transform_function.cpp +6 -1
- package/src/duckdb/src/parser/transform/expression/transform_subquery.cpp +8 -11
- package/src/duckdb/src/parser/transform/helpers/transform_cte.cpp +3 -0
- package/src/duckdb/src/parser/transform/helpers/transform_typename.cpp +7 -5
- package/src/duckdb/src/parser/transform/statement/transform_attach.cpp +4 -4
- package/src/duckdb/src/parser/transform/statement/transform_copy.cpp +16 -80
- package/src/duckdb/src/parser/transform/statement/transform_create_function.cpp +27 -22
- package/src/duckdb/src/parser/transform/statement/transform_create_type.cpp +0 -1
- package/src/duckdb/src/parser/transform/statement/transform_explain.cpp +1 -2
- package/src/duckdb/src/parser/transform/statement/transform_insert.cpp +22 -14
- package/src/duckdb/src/parser/transform/statement/transform_merge_into.cpp +111 -0
- package/src/duckdb/src/parser/transform/statement/transform_pivot_stmt.cpp +2 -0
- package/src/duckdb/src/parser/transform/statement/transform_pragma.cpp +1 -1
- package/src/duckdb/src/parser/transform/statement/transform_show.cpp +22 -4
- package/src/duckdb/src/parser/transform/tableref/transform_from.cpp +3 -1
- package/src/duckdb/src/parser/transform/tableref/transform_join.cpp +12 -6
- package/src/duckdb/src/parser/transform/tableref/transform_table_function.cpp +3 -3
- package/src/duckdb/src/parser/transformer.cpp +8 -7
- package/src/duckdb/src/planner/bind_context.cpp +19 -2
- package/src/duckdb/src/planner/binder/expression/bind_aggregate_expression.cpp +13 -6
- package/src/duckdb/src/planner/binder/expression/bind_columnref_expression.cpp +3 -0
- package/src/duckdb/src/planner/binder/expression/bind_function_expression.cpp +18 -4
- package/src/duckdb/src/planner/binder/expression/bind_macro_expression.cpp +8 -25
- package/src/duckdb/src/planner/binder/expression/bind_operator_expression.cpp +31 -4
- package/src/duckdb/src/planner/binder/expression/bind_unnest_expression.cpp +2 -0
- package/src/duckdb/src/planner/binder/expression/bind_window_expression.cpp +48 -11
- package/src/duckdb/src/planner/binder/query_node/bind_cte_node.cpp +9 -1
- package/src/duckdb/src/planner/binder/query_node/bind_recursive_cte_node.cpp +4 -0
- package/src/duckdb/src/planner/binder/query_node/bind_select_node.cpp +6 -6
- package/src/duckdb/src/planner/binder/query_node/bind_table_macro_node.cpp +11 -26
- package/src/duckdb/src/planner/binder/query_node/plan_cte_node.cpp +4 -3
- package/src/duckdb/src/planner/binder/query_node/plan_subquery.cpp +10 -4
- package/src/duckdb/src/planner/binder/statement/bind_attach.cpp +15 -0
- package/src/duckdb/src/planner/binder/statement/bind_copy.cpp +239 -58
- package/src/duckdb/src/planner/binder/statement/bind_create.cpp +157 -55
- package/src/duckdb/src/planner/binder/statement/bind_create_table.cpp +30 -25
- package/src/duckdb/src/planner/binder/statement/bind_delete.cpp +2 -3
- package/src/duckdb/src/planner/binder/statement/bind_drop.cpp +28 -3
- package/src/duckdb/src/planner/binder/statement/bind_export.cpp +36 -0
- package/src/duckdb/src/planner/binder/statement/bind_insert.cpp +282 -322
- package/src/duckdb/src/planner/binder/statement/bind_merge_into.cpp +335 -0
- package/src/duckdb/src/planner/binder/statement/bind_update.cpp +23 -14
- package/src/duckdb/src/planner/binder/tableref/bind_basetableref.cpp +37 -27
- package/src/duckdb/src/planner/binder/tableref/bind_bound_table_ref.cpp +13 -0
- package/src/duckdb/src/planner/binder/tableref/bind_column_data_ref.cpp +4 -1
- package/src/duckdb/src/planner/binder/tableref/bind_pivot.cpp +120 -36
- package/src/duckdb/src/planner/binder/tableref/bind_showref.cpp +30 -0
- package/src/duckdb/src/planner/binder/tableref/bind_table_function.cpp +72 -1
- package/src/duckdb/src/planner/binder/tableref/plan_joinref.cpp +7 -12
- package/src/duckdb/src/planner/binder/tableref/plan_table_function.cpp +15 -1
- package/src/duckdb/src/planner/binder.cpp +42 -175
- package/src/duckdb/src/planner/bound_result_modifier.cpp +8 -0
- package/src/duckdb/src/planner/collation_binding.cpp +2 -1
- package/src/duckdb/src/planner/expression.cpp +1 -1
- package/src/duckdb/src/planner/expression_binder/order_binder.cpp +4 -2
- package/src/duckdb/src/planner/expression_binder/projection_binder.cpp +46 -0
- package/src/duckdb/src/planner/expression_binder/table_function_binder.cpp +8 -6
- package/src/duckdb/src/planner/expression_iterator.cpp +31 -0
- package/src/duckdb/src/planner/logical_operator_deep_copy.cpp +264 -0
- package/src/duckdb/src/planner/logical_operator_visitor.cpp +18 -4
- package/src/duckdb/src/planner/operator/logical_aggregate.cpp +2 -1
- package/src/duckdb/src/planner/operator/logical_comparison_join.cpp +4 -2
- package/src/duckdb/src/planner/operator/logical_copy_to_file.cpp +3 -0
- package/src/duckdb/src/planner/operator/logical_get.cpp +7 -2
- package/src/duckdb/src/planner/operator/logical_insert.cpp +5 -2
- package/src/duckdb/src/planner/operator/logical_join.cpp +6 -7
- package/src/duckdb/src/planner/operator/logical_materialized_cte.cpp +1 -0
- package/src/duckdb/src/planner/operator/logical_merge_into.cpp +43 -0
- package/src/duckdb/src/planner/operator/logical_recursive_cte.cpp +8 -0
- package/src/duckdb/src/planner/planner.cpp +4 -2
- package/src/duckdb/src/planner/pragma_handler.cpp +1 -1
- package/src/duckdb/src/planner/subquery/flatten_dependent_join.cpp +76 -7
- package/src/duckdb/src/planner/table_binding.cpp +6 -12
- package/src/duckdb/src/storage/block.cpp +2 -1
- package/src/duckdb/src/storage/buffer/block_handle.cpp +7 -4
- package/src/duckdb/src/storage/buffer/block_manager.cpp +14 -6
- package/src/duckdb/src/storage/buffer/buffer_pool.cpp +2 -2
- package/src/duckdb/src/storage/buffer_manager.cpp +45 -13
- package/src/duckdb/src/storage/caching_file_system.cpp +20 -12
- package/src/duckdb/src/storage/checkpoint/row_group_writer.cpp +26 -3
- package/src/duckdb/src/storage/checkpoint/table_data_reader.cpp +3 -1
- package/src/duckdb/src/storage/checkpoint/table_data_writer.cpp +56 -35
- package/src/duckdb/src/storage/checkpoint/write_overflow_strings_to_disk.cpp +1 -1
- package/src/duckdb/src/storage/checkpoint_manager.cpp +12 -11
- package/src/duckdb/src/storage/compression/bitpacking.cpp +4 -1
- package/src/duckdb/src/storage/compression/dict_fsst/compression.cpp +48 -25
- package/src/duckdb/src/storage/compression/dict_fsst/decompression.cpp +10 -13
- package/src/duckdb/src/storage/compression/dict_fsst.cpp +2 -2
- package/src/duckdb/src/storage/compression/fixed_size_uncompressed.cpp +10 -5
- package/src/duckdb/src/storage/compression/fsst.cpp +3 -2
- package/src/duckdb/src/storage/compression/rle.cpp +1 -1
- package/src/duckdb/src/storage/compression/zstd.cpp +5 -6
- package/src/duckdb/src/storage/data_table.cpp +167 -144
- package/src/duckdb/src/storage/external_file_cache.cpp +6 -6
- package/src/duckdb/src/storage/local_storage.cpp +132 -68
- package/src/duckdb/src/storage/magic_bytes.cpp +3 -2
- package/src/duckdb/src/storage/metadata/metadata_manager.cpp +88 -17
- package/src/duckdb/src/storage/metadata/metadata_reader.cpp +26 -3
- package/src/duckdb/src/storage/metadata/metadata_writer.cpp +7 -0
- package/src/duckdb/src/storage/open_file_storage_extension.cpp +3 -3
- package/src/duckdb/src/storage/optimistic_data_writer.cpp +5 -3
- package/src/duckdb/src/storage/partial_block_manager.cpp +26 -5
- package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +72 -22
- package/src/duckdb/src/storage/serialization/serialize_macro_function.cpp +9 -3
- package/src/duckdb/src/storage/serialization/serialize_query_node.cpp +2 -0
- package/src/duckdb/src/storage/serialization/serialize_tableref.cpp +12 -2
- package/src/duckdb/src/storage/serialization/serialize_types.cpp +14 -0
- package/src/duckdb/src/storage/single_file_block_manager.cpp +381 -86
- package/src/duckdb/src/storage/standard_buffer_manager.cpp +86 -30
- package/src/duckdb/src/storage/statistics/base_statistics.cpp +3 -3
- package/src/duckdb/src/storage/statistics/string_stats.cpp +2 -2
- package/src/duckdb/src/storage/statistics/struct_stats.cpp +1 -1
- package/src/duckdb/src/storage/storage_info.cpp +13 -7
- package/src/duckdb/src/storage/storage_manager.cpp +110 -35
- package/src/duckdb/src/storage/table/array_column_data.cpp +4 -0
- package/src/duckdb/src/storage/table/column_checkpoint_state.cpp +22 -15
- package/src/duckdb/src/storage/table/column_data.cpp +53 -14
- package/src/duckdb/src/storage/table/column_data_checkpointer.cpp +17 -17
- package/src/duckdb/src/storage/table/column_segment.cpp +23 -21
- package/src/duckdb/src/storage/table/in_memory_checkpoint.cpp +136 -0
- package/src/duckdb/src/storage/table/list_column_data.cpp +6 -1
- package/src/duckdb/src/storage/table/row_group.cpp +226 -154
- package/src/duckdb/src/storage/table/row_group_collection.cpp +146 -47
- package/src/duckdb/src/storage/table/row_id_column_data.cpp +173 -0
- package/src/duckdb/src/storage/table/row_version_manager.cpp +1 -1
- package/src/duckdb/src/storage/table/standard_column_data.cpp +14 -2
- package/src/duckdb/src/storage/table/struct_column_data.cpp +15 -0
- package/src/duckdb/src/storage/table/update_segment.cpp +111 -5
- package/src/duckdb/src/storage/table_index_list.cpp +137 -73
- package/src/duckdb/src/storage/temporary_file_manager.cpp +103 -28
- package/src/duckdb/src/storage/wal_replay.cpp +158 -36
- package/src/duckdb/src/storage/write_ahead_log.cpp +102 -17
- package/src/duckdb/src/transaction/commit_state.cpp +2 -0
- package/src/duckdb/src/transaction/duck_transaction.cpp +12 -2
- package/src/duckdb/src/transaction/duck_transaction_manager.cpp +66 -35
- package/src/duckdb/src/transaction/meta_transaction.cpp +85 -23
- package/src/duckdb/src/transaction/rollback_state.cpp +7 -0
- package/src/duckdb/src/transaction/transaction_context.cpp +3 -4
- package/src/duckdb/src/transaction/undo_buffer.cpp +5 -4
- package/src/duckdb/src/transaction/undo_buffer_allocator.cpp +1 -0
- package/src/duckdb/src/transaction/wal_write_state.cpp +2 -0
- package/src/duckdb/src/verification/explain_statement_verifier.cpp +16 -0
- package/src/duckdb/src/verification/prepared_statement_verifier.cpp +1 -1
- package/src/duckdb/src/verification/statement_verifier.cpp +10 -5
- package/src/duckdb/third_party/brotli/common/shared_dictionary.cpp +4 -4
- package/src/duckdb/third_party/fmt/include/fmt/core.h +6 -12
- package/src/duckdb/third_party/fmt/include/fmt/format-inl.h +5 -1
- package/src/duckdb/third_party/fmt/include/fmt/format.h +34 -24
- package/src/duckdb/third_party/fmt/include/fmt/printf.h +49 -21
- package/src/duckdb/third_party/httplib/httplib.hpp +13 -5
- package/src/duckdb/third_party/jaro_winkler/details/jaro_impl.hpp +4 -4
- package/src/duckdb/third_party/libpg_query/include/nodes/nodes.hpp +3 -0
- package/src/duckdb/third_party/libpg_query/include/nodes/parsenodes.hpp +56 -1
- package/src/duckdb/third_party/libpg_query/include/parser/gram.hpp +744 -733
- package/src/duckdb/third_party/libpg_query/include/parser/kwlist.hpp +6 -1
- package/src/duckdb/third_party/libpg_query/src_backend_parser_gram.cpp +19098 -18654
- package/src/duckdb/third_party/mbedtls/include/des_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/aes_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/aria_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/block_cipher.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/build_info.h +4 -4
- package/src/duckdb/third_party/mbedtls/include/mbedtls/camellia_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ccm_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/chacha20.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/chachapoly.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/cmac.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/config_psa.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ecdsa.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/gcm_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/mbedtls_config.h +5 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/md5.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/nist_kw.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/pkcs12.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/pkcs5.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/psa_util.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ripemd160.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/sha3.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/threading.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/timing.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls_wrapper.hpp +16 -7
- package/src/duckdb/third_party/mbedtls/include/platform_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/psa/build_info.h +20 -0
- package/src/duckdb/third_party/mbedtls/include/psa/crypto.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/psa/crypto_config.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/psa/crypto_se_driver.h +1 -0
- package/src/duckdb/third_party/mbedtls/include/rsa_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/sha1_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/sha256_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/sha512_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/ssl_misc.h +1 -1
- package/src/duckdb/third_party/mbedtls/library/aes.cpp +1 -1
- package/src/duckdb/third_party/mbedtls/library/aesce.h +136 -1
- package/src/duckdb/third_party/mbedtls/library/alignment.h +9 -9
- package/src/duckdb/third_party/mbedtls/library/asn1parse.cpp +1 -1
- package/src/duckdb/third_party/mbedtls/library/asn1write.cpp +6 -3
- package/src/duckdb/third_party/mbedtls/library/base64.cpp +48 -24
- package/src/duckdb/third_party/mbedtls/library/base64_internal.h +45 -1
- package/src/duckdb/third_party/mbedtls/library/bignum.cpp +3 -3
- package/src/duckdb/third_party/mbedtls/library/bignum_core.cpp +16 -14
- package/src/duckdb/third_party/mbedtls/library/bignum_core.h +10 -18
- package/src/duckdb/third_party/mbedtls/library/block_cipher_internal.h +99 -1
- package/src/duckdb/third_party/mbedtls/library/check_crypto_config.h +141 -1
- package/src/duckdb/third_party/mbedtls/library/cipher.cpp +18 -12
- package/src/duckdb/third_party/mbedtls/library/cipher_invasive.h +1 -0
- package/src/duckdb/third_party/mbedtls/library/cipher_wrap.cpp +110 -10
- package/src/duckdb/third_party/mbedtls/library/cipher_wrap.h +1 -1
- package/src/duckdb/third_party/mbedtls/library/common.h +20 -4
- package/src/duckdb/third_party/mbedtls/library/constant_time.cpp +1 -1
- package/src/duckdb/third_party/mbedtls/library/constant_time_impl.h +28 -43
- package/src/duckdb/third_party/mbedtls/library/constant_time_internal.h +24 -24
- package/src/duckdb/third_party/mbedtls/library/ctr.h +35 -1
- package/src/duckdb/third_party/mbedtls/library/gcm.cpp +2 -2
- package/src/duckdb/third_party/mbedtls/library/md.cpp +11 -11
- package/src/duckdb/third_party/mbedtls/library/md_psa.h +1 -1
- package/src/duckdb/third_party/mbedtls/library/oid.cpp +2 -2
- package/src/duckdb/third_party/mbedtls/library/pem.cpp +5 -2
- package/src/duckdb/third_party/mbedtls/library/pk.cpp +1 -5
- package/src/duckdb/third_party/mbedtls/library/pk_internal.h +4 -4
- package/src/duckdb/third_party/mbedtls/library/pk_wrap.cpp +16 -18
- package/src/duckdb/third_party/mbedtls/library/pkwrite.h +121 -1
- package/src/duckdb/third_party/mbedtls/library/psa_crypto_core.h +995 -1
- package/src/duckdb/third_party/mbedtls/library/psa_util_internal.h +100 -1
- package/src/duckdb/third_party/mbedtls/library/rsa.cpp +4 -4
- package/src/duckdb/third_party/mbedtls/mbedtls_wrapper.cpp +114 -42
- package/src/duckdb/third_party/parquet/parquet_types.cpp +2340 -769
- package/src/duckdb/third_party/parquet/parquet_types.h +400 -4
- package/src/duckdb/third_party/pdqsort/pdqsort.h +550 -0
- package/src/duckdb/third_party/ska_sort/ska_sort.hpp +1494 -0
- package/src/duckdb/third_party/snappy/snappy-stubs-internal.h +18 -18
- package/src/duckdb/third_party/snappy/snappy.cc +6 -6
- package/src/duckdb/third_party/thrift/thrift/protocol/TCompactProtocol.h +4 -4
- package/src/duckdb/third_party/thrift/thrift/protocol/TCompactProtocol.tcc +36 -36
- package/src/duckdb/third_party/utf8proc/include/utf8proc_wrapper.hpp +1 -1
- package/src/duckdb/third_party/utf8proc/utf8proc_wrapper.cpp +1 -1
- package/src/duckdb/third_party/vergesort/detail/insertion_sort.h +56 -0
- package/src/duckdb/third_party/vergesort/detail/is_sorted_until.h +51 -0
- package/src/duckdb/third_party/vergesort/detail/iter_sort3.h +48 -0
- package/src/duckdb/third_party/vergesort/detail/log2.h +41 -0
- package/src/duckdb/third_party/vergesort/detail/prevnext.h +68 -0
- package/src/duckdb/third_party/vergesort/detail/quicksort.h +138 -0
- package/src/duckdb/third_party/vergesort/vergesort.h +352 -0
- package/src/duckdb/ub_extension_core_functions_scalar_generic.cpp +2 -0
- package/src/duckdb/ub_extension_core_functions_scalar_struct.cpp +2 -0
- package/src/duckdb/ub_extension_parquet_reader.cpp +2 -0
- package/src/duckdb/ub_extension_parquet_reader_variant.cpp +6 -0
- package/src/duckdb/ub_src_common.cpp +8 -0
- package/src/duckdb/ub_src_common_arrow_appender.cpp +2 -0
- package/src/duckdb/ub_src_common_progress_bar.cpp +2 -0
- package/src/duckdb/ub_src_common_sorting.cpp +8 -0
- package/src/duckdb/ub_src_common_tree_renderer.cpp +2 -0
- package/src/duckdb/ub_src_common_types.cpp +1 -1
- package/src/duckdb/ub_src_common_types_row.cpp +2 -0
- package/src/duckdb/ub_src_execution_index_art.cpp +11 -9
- package/src/duckdb/ub_src_execution_operator_persistent.cpp +2 -0
- package/src/duckdb/ub_src_execution_physical_plan.cpp +2 -0
- package/src/duckdb/ub_src_function.cpp +2 -0
- package/src/duckdb/ub_src_function_cast.cpp +1 -1
- package/src/duckdb/ub_src_function_cast_variant.cpp +6 -0
- package/src/duckdb/ub_src_function_scalar_struct.cpp +2 -0
- package/src/duckdb/ub_src_function_scalar_variant.cpp +6 -0
- package/src/duckdb/ub_src_function_table.cpp +2 -0
- package/src/duckdb/ub_src_function_table_system.cpp +4 -0
- package/src/duckdb/ub_src_main.cpp +4 -0
- package/src/duckdb/ub_src_main_capi.cpp +4 -0
- package/src/duckdb/ub_src_optimizer.cpp +2 -0
- package/src/duckdb/ub_src_optimizer_pushdown.cpp +2 -0
- package/src/duckdb/ub_src_optimizer_rule.cpp +2 -0
- package/src/duckdb/ub_src_parser_statement.cpp +2 -0
- package/src/duckdb/ub_src_parser_tableref.cpp +2 -0
- package/src/duckdb/ub_src_parser_transform_statement.cpp +2 -0
- package/src/duckdb/ub_src_planner.cpp +2 -0
- package/src/duckdb/ub_src_planner_binder_statement.cpp +2 -0
- package/src/duckdb/ub_src_planner_binder_tableref.cpp +2 -0
- package/src/duckdb/ub_src_planner_expression_binder.cpp +2 -0
- package/src/duckdb/ub_src_planner_operator.cpp +2 -0
- package/src/duckdb/ub_src_storage_table.cpp +4 -0
- package/test/columns.test.ts +1 -1
- package/test/exec.test.ts +3 -3
- package/test/jsdoc.test.ts +2 -1
- package/test/syntax_error.test.ts +1 -1
- package/test/test_all_types.test.ts +1 -1
@@ -20,7 +20,7 @@ struct UpperFun {
|
|
20
20
|
static constexpr const char *Parameters = "string";
|
21
21
|
static constexpr const char *Description = "Converts `string` to upper case.";
|
22
22
|
static constexpr const char *Example = "upper('Hello')";
|
23
|
-
static constexpr const char *Categories = "";
|
23
|
+
static constexpr const char *Categories = "string";
|
24
24
|
|
25
25
|
static ScalarFunction GetFunction();
|
26
26
|
};
|
@@ -34,9 +34,9 @@ struct UcaseFun {
|
|
34
34
|
struct LowerFun {
|
35
35
|
static constexpr const char *Name = "lower";
|
36
36
|
static constexpr const char *Parameters = "string";
|
37
|
-
static constexpr const char *Description = "Converts `string` to lower case";
|
37
|
+
static constexpr const char *Description = "Converts `string` to lower case.";
|
38
38
|
static constexpr const char *Example = "lower('Hello')";
|
39
|
-
static constexpr const char *Categories = "";
|
39
|
+
static constexpr const char *Categories = "string";
|
40
40
|
|
41
41
|
static ScalarFunction GetFunction();
|
42
42
|
};
|
@@ -50,29 +50,29 @@ struct LcaseFun {
|
|
50
50
|
struct ConcatWsFun {
|
51
51
|
static constexpr const char *Name = "concat_ws";
|
52
52
|
static constexpr const char *Parameters = "separator,string,...";
|
53
|
-
static constexpr const char *Description = "Concatenates strings
|
53
|
+
static constexpr const char *Description = "Concatenates many strings, separated by `separator`. `NULL` inputs are skipped.";
|
54
54
|
static constexpr const char *Example = "concat_ws(', ', 'Banana', 'Apple', 'Melon')";
|
55
|
-
static constexpr const char *Categories = "";
|
55
|
+
static constexpr const char *Categories = "string";
|
56
56
|
|
57
57
|
static ScalarFunction GetFunction();
|
58
58
|
};
|
59
59
|
|
60
60
|
struct ConcatFun {
|
61
61
|
static constexpr const char *Name = "concat";
|
62
|
-
static constexpr const char *Parameters = "
|
63
|
-
static constexpr const char *Description = "Concatenates
|
64
|
-
static constexpr const char *Example = "concat('Hello', ' ', 'World')";
|
65
|
-
static constexpr const char *Categories = "";
|
62
|
+
static constexpr const char *Parameters = "value,...";
|
63
|
+
static constexpr const char *Description = "Concatenates multiple strings or lists. `NULL` inputs are skipped. See also operator `||`.";
|
64
|
+
static constexpr const char *Example = "concat('Hello', ' ', 'World')\002concat([1, 2, 3], NULL, [4, 5, 6])";
|
65
|
+
static constexpr const char *Categories = "string,list";
|
66
66
|
|
67
67
|
static ScalarFunction GetFunction();
|
68
68
|
};
|
69
69
|
|
70
70
|
struct ListConcatFun {
|
71
71
|
static constexpr const char *Name = "list_concat";
|
72
|
-
static constexpr const char *Parameters = "
|
73
|
-
static constexpr const char *Description = "Concatenates
|
74
|
-
static constexpr const char *Example = "list_concat([2, 3], [4, 5, 6])";
|
75
|
-
static constexpr const char *Categories = "";
|
72
|
+
static constexpr const char *Parameters = "list,...";
|
73
|
+
static constexpr const char *Description = "Concatenates lists. `NULL` inputs are skipped. See also operator `||`.";
|
74
|
+
static constexpr const char *Example = "list_concat([2, 3], [4, 5, 6], [7])";
|
75
|
+
static constexpr const char *Categories = "list";
|
76
76
|
|
77
77
|
static ScalarFunction GetFunction();
|
78
78
|
};
|
@@ -97,9 +97,9 @@ struct ArrayCatFun {
|
|
97
97
|
|
98
98
|
struct ConcatOperatorFun {
|
99
99
|
static constexpr const char *Name = "||";
|
100
|
-
static constexpr const char *Parameters = "
|
101
|
-
static constexpr const char *Description = "Concatenates two strings, lists, or blobs. Any `NULL` input results in `NULL`. See also `concat(
|
102
|
-
static constexpr const char *Example = "'Duck' || 'DB'\
|
100
|
+
static constexpr const char *Parameters = "arg1,arg2";
|
101
|
+
static constexpr const char *Description = "Concatenates two strings, lists, or blobs. Any `NULL` input results in `NULL`. See also `concat(arg1, arg2, ...)` and `list_concat(list1, list2, ...)`.";
|
102
|
+
static constexpr const char *Example = "'Duck' || 'DB'\002[1, 2, 3] || [4, 5, 6]\002'\\xAA'::BLOB || '\\xBB'::BLOB";
|
103
103
|
static constexpr const char *Categories = "string,list,blob";
|
104
104
|
|
105
105
|
static ScalarFunction GetFunction();
|
@@ -107,20 +107,20 @@ struct ConcatOperatorFun {
|
|
107
107
|
|
108
108
|
struct PrefixFun {
|
109
109
|
static constexpr const char *Name = "prefix";
|
110
|
-
static constexpr const char *Parameters = "";
|
111
|
-
static constexpr const char *Description = "";
|
112
|
-
static constexpr const char *Example = "";
|
113
|
-
static constexpr const char *Categories = "";
|
110
|
+
static constexpr const char *Parameters = "string,search_string";
|
111
|
+
static constexpr const char *Description = "Returns `true` if `string` starts with `search_string`.";
|
112
|
+
static constexpr const char *Example = "prefix('abc', 'ab')";
|
113
|
+
static constexpr const char *Categories = "string";
|
114
114
|
|
115
115
|
static ScalarFunction GetFunction();
|
116
116
|
};
|
117
117
|
|
118
118
|
struct SuffixFun {
|
119
119
|
static constexpr const char *Name = "suffix";
|
120
|
-
static constexpr const char *Parameters = "";
|
121
|
-
static constexpr const char *Description = "";
|
122
|
-
static constexpr const char *Example = "";
|
123
|
-
static constexpr const char *Categories = "";
|
120
|
+
static constexpr const char *Parameters = "string,search_string";
|
121
|
+
static constexpr const char *Description = "Returns `true` if `string` ends with `search_string`.";
|
122
|
+
static constexpr const char *Example = "suffix('abc', 'bc')";
|
123
|
+
static constexpr const char *Categories = "string";
|
124
124
|
|
125
125
|
static ScalarFunction GetFunction();
|
126
126
|
};
|
@@ -133,10 +133,10 @@ struct EndsWithFun {
|
|
133
133
|
|
134
134
|
struct ContainsFun {
|
135
135
|
static constexpr const char *Name = "contains";
|
136
|
-
static constexpr const char *Parameters = "string::VARCHAR,search_string::VARCHAR\
|
137
|
-
static constexpr const char *Description = "Returns true if `search_string` is found within `string`.\
|
138
|
-
static constexpr const char *Example = "contains('abc', 'a')\
|
139
|
-
static constexpr const char *Categories = "\
|
136
|
+
static constexpr const char *Parameters = "string::VARCHAR,search_string::VARCHAR\001list::ANY[],element::ANY\001map::MAP(ANY,ANY),key::ANY";
|
137
|
+
static constexpr const char *Description = "Returns `true` if `search_string` is found within `string`.\001Returns `true` if the `list` contains the `element`.\001Checks if a `map` contains a given `key`.";
|
138
|
+
static constexpr const char *Example = "contains('abc', 'a')\001contains([1, 2, NULL], 1)\001contains(MAP {'key1': 10, 'key2': 20, 'key3': 30}, 'key2')";
|
139
|
+
static constexpr const char *Categories = "string\001list\001map";
|
140
140
|
|
141
141
|
static ScalarFunctionSet GetFunctions();
|
142
142
|
};
|
@@ -146,7 +146,7 @@ struct StripAccentsFun {
|
|
146
146
|
static constexpr const char *Parameters = "string";
|
147
147
|
static constexpr const char *Description = "Strips accents from `string`.";
|
148
148
|
static constexpr const char *Example = "strip_accents('mühleisen')";
|
149
|
-
static constexpr const char *Categories = "";
|
149
|
+
static constexpr const char *Categories = "string";
|
150
150
|
|
151
151
|
static ScalarFunction GetFunction();
|
152
152
|
};
|
@@ -155,18 +155,18 @@ struct NFCNormalizeFun {
|
|
155
155
|
static constexpr const char *Name = "nfc_normalize";
|
156
156
|
static constexpr const char *Parameters = "string";
|
157
157
|
static constexpr const char *Description = "Converts `string` to Unicode NFC normalized string. Useful for comparisons and ordering if text data is mixed between NFC normalized and not.";
|
158
|
-
static constexpr const char *Example = "nfc_normalize('
|
159
|
-
static constexpr const char *Categories = "";
|
158
|
+
static constexpr const char *Example = "nfc_normalize('ardèch')";
|
159
|
+
static constexpr const char *Categories = "string";
|
160
160
|
|
161
161
|
static ScalarFunction GetFunction();
|
162
162
|
};
|
163
163
|
|
164
164
|
struct LengthFun {
|
165
165
|
static constexpr const char *Name = "length";
|
166
|
-
static constexpr const char *Parameters = "string";
|
167
|
-
static constexpr const char *Description = "Number of characters in `string`.";
|
168
|
-
static constexpr const char *Example = "length('Hello🦆')";
|
169
|
-
static constexpr const char *Categories = "";
|
166
|
+
static constexpr const char *Parameters = "string::VARCHAR\001bit::BIT\001list::ANY[]";
|
167
|
+
static constexpr const char *Description = "Number of characters in `string`.\001Returns the bit-length of the `bit` argument.\001Returns the length of the `list`.";
|
168
|
+
static constexpr const char *Example = "length('Hello🦆')\001length(42::TINYINT::BIT)\001length([1,2,3])";
|
169
|
+
static constexpr const char *Categories = "string\001numeric\001list";
|
170
170
|
|
171
171
|
static ScalarFunctionSet GetFunctions();
|
172
172
|
};
|
@@ -194,27 +194,27 @@ struct StrlenFun {
|
|
194
194
|
static constexpr const char *Parameters = "string";
|
195
195
|
static constexpr const char *Description = "Number of bytes in `string`.";
|
196
196
|
static constexpr const char *Example = "strlen('🦆')";
|
197
|
-
static constexpr const char *Categories = "";
|
197
|
+
static constexpr const char *Categories = "string";
|
198
198
|
|
199
199
|
static ScalarFunction GetFunction();
|
200
200
|
};
|
201
201
|
|
202
202
|
struct BitLengthFun {
|
203
203
|
static constexpr const char *Name = "bit_length";
|
204
|
-
static constexpr const char *Parameters = "";
|
205
|
-
static constexpr const char *Description = "";
|
206
|
-
static constexpr const char *Example = "";
|
207
|
-
static constexpr const char *Categories = "";
|
204
|
+
static constexpr const char *Parameters = "string::VARCHAR\001bit::BIT";
|
205
|
+
static constexpr const char *Description = "Number of bits in a `string`.\001Returns the bit-length of the `bit` argument.";
|
206
|
+
static constexpr const char *Example = "bit_length('abc')\001bit_length(42::TINYINT::BIT)";
|
207
|
+
static constexpr const char *Categories = "string\001numeric";
|
208
208
|
|
209
209
|
static ScalarFunctionSet GetFunctions();
|
210
210
|
};
|
211
211
|
|
212
212
|
struct OctetLengthFun {
|
213
213
|
static constexpr const char *Name = "octet_length";
|
214
|
-
static constexpr const char *Parameters = "blob::BLOB\
|
215
|
-
static constexpr const char *Description = "Number of bytes in `blob`.\
|
216
|
-
static constexpr const char *Example = "octet_length('\\xAA\\xBB'::BLOB)\
|
217
|
-
static constexpr const char *Categories = "blob\
|
214
|
+
static constexpr const char *Parameters = "blob::BLOB\001bitstring::BIT";
|
215
|
+
static constexpr const char *Description = "Number of bytes in `blob`.\001Returns the number of bytes in the `bitstring`.";
|
216
|
+
static constexpr const char *Example = "octet_length('\\xAA\\xBB'::BLOB)\001octet_length('1101011'::BITSTRING)";
|
217
|
+
static constexpr const char *Categories = "blob\001bitstring";
|
218
218
|
|
219
219
|
static ScalarFunctionSet GetFunctions();
|
220
220
|
};
|
@@ -224,17 +224,17 @@ struct LengthGraphemeFun {
|
|
224
224
|
static constexpr const char *Parameters = "string";
|
225
225
|
static constexpr const char *Description = "Number of grapheme clusters in `string`.";
|
226
226
|
static constexpr const char *Example = "length_grapheme('🤦🏼♂️🤦🏽♀️')";
|
227
|
-
static constexpr const char *Categories = "";
|
227
|
+
static constexpr const char *Categories = "string";
|
228
228
|
|
229
229
|
static ScalarFunctionSet GetFunctions();
|
230
230
|
};
|
231
231
|
|
232
232
|
struct ArrayLengthFun {
|
233
233
|
static constexpr const char *Name = "array_length";
|
234
|
-
static constexpr const char *Parameters = "list";
|
235
|
-
static constexpr const char *Description = "Returns the length of the `list
|
236
|
-
static constexpr const char *Example = "array_length([1,2,3])";
|
237
|
-
static constexpr const char *Categories = "";
|
234
|
+
static constexpr const char *Parameters = "list::ANY[]\001list::ANY[],dimension::ANY";
|
235
|
+
static constexpr const char *Description = "Returns the length of the `list`.\001`array_length` for lists with dimensions other than 1 not implemented";
|
236
|
+
static constexpr const char *Example = "array_length([1, 2, 3])\001";
|
237
|
+
static constexpr const char *Categories = "list\001";
|
238
238
|
|
239
239
|
static ScalarFunctionSet GetFunctions();
|
240
240
|
};
|
@@ -242,9 +242,9 @@ struct ArrayLengthFun {
|
|
242
242
|
struct SubstringFun {
|
243
243
|
static constexpr const char *Name = "substring";
|
244
244
|
static constexpr const char *Parameters = "string,start,length";
|
245
|
-
static constexpr const char *Description = "
|
246
|
-
static constexpr const char *Example = "substring('Hello', 2, 2)";
|
247
|
-
static constexpr const char *Categories = "";
|
245
|
+
static constexpr const char *Description = "Extracts substring starting from character `start` up to the end of the string. If optional argument `length` is set, extracts a substring of `length` characters instead. Note that a `start` value of `1` refers to the first character of the `string`.";
|
246
|
+
static constexpr const char *Example = "substring('Hello', 2)\002substring('Hello', 2, 2)";
|
247
|
+
static constexpr const char *Categories = "string";
|
248
248
|
|
249
249
|
static ScalarFunctionSet GetFunctions();
|
250
250
|
};
|
@@ -258,9 +258,9 @@ struct SubstrFun {
|
|
258
258
|
struct SubstringGraphemeFun {
|
259
259
|
static constexpr const char *Name = "substring_grapheme";
|
260
260
|
static constexpr const char *Parameters = "string,start,length";
|
261
|
-
static constexpr const char *Description = "
|
262
|
-
static constexpr const char *Example = "substring_grapheme('🦆🤦🏼♂️🤦🏽♀️🦆', 3, 2)";
|
263
|
-
static constexpr const char *Categories = "";
|
261
|
+
static constexpr const char *Description = "Extracts substring starting from grapheme clusters `start` up to the end of the string. If optional argument `length` is set, extracts a substring of `length` grapheme clusters instead. Note that a `start` value of `1` refers to the `first` character of the `string`.";
|
262
|
+
static constexpr const char *Example = "substring_grapheme('🦆🤦🏼♂️🤦🏽♀️🦆', 3)\002substring_grapheme('🦆🤦🏼♂️🤦🏽♀️🦆', 3, 2)";
|
263
|
+
static constexpr const char *Categories = "string";
|
264
264
|
|
265
265
|
static ScalarFunctionSet GetFunctions();
|
266
266
|
};
|
@@ -268,9 +268,9 @@ struct SubstringGraphemeFun {
|
|
268
268
|
struct StringSplitFun {
|
269
269
|
static constexpr const char *Name = "string_split";
|
270
270
|
static constexpr const char *Parameters = "string,separator";
|
271
|
-
static constexpr const char *Description = "Splits the `string` along the `separator
|
271
|
+
static constexpr const char *Description = "Splits the `string` along the `separator`.";
|
272
272
|
static constexpr const char *Example = "string_split('hello-world', '-')";
|
273
|
-
static constexpr const char *Categories = "";
|
273
|
+
static constexpr const char *Categories = "string";
|
274
274
|
|
275
275
|
static ScalarFunction GetFunction();
|
276
276
|
};
|
@@ -295,10 +295,10 @@ struct SplitFun {
|
|
295
295
|
|
296
296
|
struct StringSplitRegexFun {
|
297
297
|
static constexpr const char *Name = "string_split_regex";
|
298
|
-
static constexpr const char *Parameters = "string,regex";
|
299
|
-
static constexpr const char *Description = "Splits the `string` along the `regex`";
|
298
|
+
static constexpr const char *Parameters = "string,regex,options";
|
299
|
+
static constexpr const char *Description = "Splits the `string` along the `regex`. A set of optional regex `options` can be set.";
|
300
300
|
static constexpr const char *Example = "string_split_regex('hello world; 42', ';? ')";
|
301
|
-
static constexpr const char *Categories = "";
|
301
|
+
static constexpr const char *Categories = "regex";
|
302
302
|
|
303
303
|
static ScalarFunctionSet GetFunctions();
|
304
304
|
};
|
@@ -317,50 +317,50 @@ struct RegexpSplitToArrayFun {
|
|
317
317
|
|
318
318
|
struct RegexpFun {
|
319
319
|
static constexpr const char *Name = "regexp_full_match";
|
320
|
-
static constexpr const char *Parameters = "string,regex
|
321
|
-
static constexpr const char *Description = "Returns true if the entire `string` matches the `regex`. A set of optional `options` can be set.";
|
320
|
+
static constexpr const char *Parameters = "string,regex";
|
321
|
+
static constexpr const char *Description = "Returns `true` if the entire `string` matches the `regex`. A set of optional regex `options` can be set.";
|
322
322
|
static constexpr const char *Example = "regexp_full_match('anabanana', '(an)*')";
|
323
|
-
static constexpr const char *Categories = "";
|
323
|
+
static constexpr const char *Categories = "regex";
|
324
324
|
|
325
325
|
static ScalarFunctionSet GetFunctions();
|
326
326
|
};
|
327
327
|
|
328
328
|
struct RegexpMatchesFun {
|
329
329
|
static constexpr const char *Name = "regexp_matches";
|
330
|
-
static constexpr const char *Parameters = "string,
|
331
|
-
static constexpr const char *Description = "Returns true if `string` contains the
|
330
|
+
static constexpr const char *Parameters = "string,regex,options";
|
331
|
+
static constexpr const char *Description = "Returns `true` if `string` contains the `regex`, `false` otherwise. A set of optional regex `options` can be set.";
|
332
332
|
static constexpr const char *Example = "regexp_matches('anabanana', '(an)*')";
|
333
|
-
static constexpr const char *Categories = "";
|
333
|
+
static constexpr const char *Categories = "regex";
|
334
334
|
|
335
335
|
static ScalarFunctionSet GetFunctions();
|
336
336
|
};
|
337
337
|
|
338
338
|
struct RegexpReplaceFun {
|
339
339
|
static constexpr const char *Name = "regexp_replace";
|
340
|
-
static constexpr const char *Parameters = "string,
|
341
|
-
static constexpr const char *Description = "If `string` contains the
|
340
|
+
static constexpr const char *Parameters = "string,regex,replacement,options";
|
341
|
+
static constexpr const char *Description = "If `string` contains the `regex`, replaces the matching part with `replacement`. A set of optional regex `options` can be set.";
|
342
342
|
static constexpr const char *Example = "regexp_replace('hello', '[lo]', '-')";
|
343
|
-
static constexpr const char *Categories = "";
|
343
|
+
static constexpr const char *Categories = "regex";
|
344
344
|
|
345
345
|
static ScalarFunctionSet GetFunctions();
|
346
346
|
};
|
347
347
|
|
348
348
|
struct RegexpExtractFun {
|
349
349
|
static constexpr const char *Name = "regexp_extract";
|
350
|
-
static constexpr const char *Parameters = "string,
|
351
|
-
static constexpr const char *Description = "If `string` contains the
|
352
|
-
static constexpr const char *Example = "regexp_extract('abc', '([a-z])(b)', 1)";
|
353
|
-
static constexpr const char *Categories = "";
|
350
|
+
static constexpr const char *Parameters = "string::VARCHAR,regex::VARCHAR\001string::VARCHAR,regex::VARCHAR,group::INTEGER\001string::VARCHAR,regex::VARCHAR,group::INTEGER,options::VARCHAR\001string::VARCHAR,regex::VARCHAR,name_list::VARCHAR[]\001string::VARCHAR,regex::VARCHAR,name_list::VARCHAR[],options::VARCHAR";
|
351
|
+
static constexpr const char *Description = "If `string` contains the `regex` pattern, returns the capturing group specified by optional parameter `group`; otherwise, returns the empty string. The `group` must be a constant value. If no `group` is given, it defaults to 0. A set of optional regex `options` can be set.\001If `string` contains the `regex` pattern, returns the capturing group specified by optional parameter `group`; otherwise, returns the empty string. The `group` must be a constant value. If no `group` is given, it defaults to 0. A set of optional regex `options` can be set.\001If `string` contains the `regex` pattern, returns the capturing group specified by optional parameter `group`; otherwise, returns the empty string. The `group` must be a constant value. If no `group` is given, it defaults to 0. A set of optional regex `options` can be set.\001If `string` contains the `regex` pattern, returns the capturing groups as a struct with corresponding names from `name_list`; otherwise, returns a struct with the same keys and empty strings as values. A set of optional regex `options` can be set.\001If `string` contains the `regex` pattern, returns the capturing groups as a struct with corresponding names from `name_list`; otherwise, returns a struct with the same keys and empty strings as values. A set of optional regex `options` can be set.";
|
352
|
+
static constexpr const char *Example = "regexp_extract('abcde', '[a-z]{3}')\001regexp_extract('abc', '([a-z])(b)', 1)\001regexp_extract('ABC', '([a-z])(b)', 1, 'i')\001regexp_extract('2023-04-15', '(\\d+)-(\\d+)-(\\d+)', ['y', 'm', 'd'])\001regexp_extract('John Doe', '([a-z]+) ([a-z]+)', ['first_name', 'last_name'], 'i')";
|
353
|
+
static constexpr const char *Categories = "regex\001regex\001regex\001regex\001regex";
|
354
354
|
|
355
355
|
static ScalarFunctionSet GetFunctions();
|
356
356
|
};
|
357
357
|
|
358
358
|
struct RegexpExtractAllFun {
|
359
359
|
static constexpr const char *Name = "regexp_extract_all";
|
360
|
-
static constexpr const char *Parameters = "string,
|
361
|
-
static constexpr const char *Description = "
|
362
|
-
static constexpr const char *Example = "regexp_extract_all('
|
363
|
-
static constexpr const char *Categories = "";
|
360
|
+
static constexpr const char *Parameters = "string,regex,group,options";
|
361
|
+
static constexpr const char *Description = "Finds non-overlapping occurrences of the `regex` in the `string` and returns the corresponding values of the capturing `group`. A set of optional regex `options` can be set.";
|
362
|
+
static constexpr const char *Example = "regexp_extract_all('Peter: 33, Paul:14', '(\\w+):\\s*(\\d+)', 2)";
|
363
|
+
static constexpr const char *Categories = "regex";
|
364
364
|
|
365
365
|
static ScalarFunctionSet GetFunctions();
|
366
366
|
};
|
@@ -368,9 +368,9 @@ struct RegexpExtractAllFun {
|
|
368
368
|
struct RegexpEscapeFun {
|
369
369
|
static constexpr const char *Name = "regexp_escape";
|
370
370
|
static constexpr const char *Parameters = "string";
|
371
|
-
static constexpr const char *Description = "Escapes special patterns to turn string into a regular expression similarly to Python's re.escape function.";
|
371
|
+
static constexpr const char *Description = "Escapes special patterns to turn `string` into a regular expression similarly to Python's `re.escape` function.";
|
372
372
|
static constexpr const char *Example = "regexp_escape('https://duckdb.org')";
|
373
|
-
static constexpr const char *Categories = "";
|
373
|
+
static constexpr const char *Categories = "regex";
|
374
374
|
|
375
375
|
static ScalarFunction GetFunction();
|
376
376
|
};
|
@@ -428,9 +428,9 @@ struct NotILikeFun {
|
|
428
428
|
struct LikeEscapeFun {
|
429
429
|
static constexpr const char *Name = "like_escape";
|
430
430
|
static constexpr const char *Parameters = "string,like_specifier,escape_character";
|
431
|
-
static constexpr const char *Description = "Returns true if the `string` matches the `like_specifier` (see Pattern Matching) using case-sensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
431
|
+
static constexpr const char *Description = "Returns `true` if the `string` matches the `like_specifier` (see Pattern Matching) using case-sensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
432
432
|
static constexpr const char *Example = "like_escape('a%c', 'a$%c', '$')";
|
433
|
-
static constexpr const char *Categories = "";
|
433
|
+
static constexpr const char *Categories = "string";
|
434
434
|
|
435
435
|
static ScalarFunction GetFunction();
|
436
436
|
};
|
@@ -438,9 +438,9 @@ struct LikeEscapeFun {
|
|
438
438
|
struct NotLikeEscapeFun {
|
439
439
|
static constexpr const char *Name = "not_like_escape";
|
440
440
|
static constexpr const char *Parameters = "string,like_specifier,escape_character";
|
441
|
-
static constexpr const char *Description = "Returns false if the `string` matches the `like_specifier` (see Pattern Matching) using case-sensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
441
|
+
static constexpr const char *Description = "Returns `false` if the `string` matches the `like_specifier` (see Pattern Matching) using case-sensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
442
442
|
static constexpr const char *Example = "not_like_escape('a%c', 'a$%c', '$')";
|
443
|
-
static constexpr const char *Categories = "";
|
443
|
+
static constexpr const char *Categories = "string";
|
444
444
|
|
445
445
|
static ScalarFunction GetFunction();
|
446
446
|
};
|
@@ -448,9 +448,9 @@ struct NotLikeEscapeFun {
|
|
448
448
|
struct IlikeEscapeFun {
|
449
449
|
static constexpr const char *Name = "ilike_escape";
|
450
450
|
static constexpr const char *Parameters = "string,like_specifier,escape_character";
|
451
|
-
static constexpr const char *Description = "Returns true if the `string` matches the `like_specifier` (see Pattern Matching) using case-insensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
451
|
+
static constexpr const char *Description = "Returns `true` if the `string` matches the `like_specifier` (see Pattern Matching) using case-insensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
452
452
|
static constexpr const char *Example = "ilike_escape('A%c', 'a$%C', '$')";
|
453
|
-
static constexpr const char *Categories = "";
|
453
|
+
static constexpr const char *Categories = "string";
|
454
454
|
|
455
455
|
static ScalarFunction GetFunction();
|
456
456
|
};
|
@@ -458,49 +458,49 @@ struct IlikeEscapeFun {
|
|
458
458
|
struct NotIlikeEscapeFun {
|
459
459
|
static constexpr const char *Name = "not_ilike_escape";
|
460
460
|
static constexpr const char *Parameters = "string,like_specifier,escape_character";
|
461
|
-
static constexpr const char *Description = "Returns false if the `string` matches the `like_specifier` (see Pattern Matching) using case-insensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
461
|
+
static constexpr const char *Description = "Returns `false` if the `string` matches the `like_specifier` (see Pattern Matching) using case-insensitive matching. `escape_character` is used to search for wildcard characters in the `string`.";
|
462
462
|
static constexpr const char *Example = "not_ilike_escape('A%c', 'a$%C', '$')";
|
463
|
-
static constexpr const char *Categories = "";
|
463
|
+
static constexpr const char *Categories = "string";
|
464
464
|
|
465
465
|
static ScalarFunction GetFunction();
|
466
466
|
};
|
467
467
|
|
468
468
|
struct MD5Fun {
|
469
469
|
static constexpr const char *Name = "md5";
|
470
|
-
static constexpr const char *Parameters = "
|
471
|
-
static constexpr const char *Description = "Returns the MD5 hash of the `
|
472
|
-
static constexpr const char *Example = "md5('
|
473
|
-
static constexpr const char *Categories = "";
|
470
|
+
static constexpr const char *Parameters = "string::VARCHAR\001blob::BLOB";
|
471
|
+
static constexpr const char *Description = "Returns the MD5 hash of the `string` as a `VARCHAR`.\001Returns the MD5 hash of the `blob` as a `VARCHAR`.";
|
472
|
+
static constexpr const char *Example = "md5('abc')\001md5('\\xAA\\xBB'::BLOB)";
|
473
|
+
static constexpr const char *Categories = "string\001blob";
|
474
474
|
|
475
475
|
static ScalarFunctionSet GetFunctions();
|
476
476
|
};
|
477
477
|
|
478
478
|
struct MD5NumberFun {
|
479
479
|
static constexpr const char *Name = "md5_number";
|
480
|
-
static constexpr const char *Parameters = "
|
481
|
-
static constexpr const char *Description = "Returns the MD5 hash of the `
|
482
|
-
static constexpr const char *Example = "md5_number('
|
483
|
-
static constexpr const char *Categories = "";
|
480
|
+
static constexpr const char *Parameters = "string::VARCHAR\001blob::BLOB";
|
481
|
+
static constexpr const char *Description = "Returns the MD5 hash of the `string` as a `HUGEINT`.\001Returns the MD5 hash of the `blob` as a `HUGEINT`.";
|
482
|
+
static constexpr const char *Example = "md5_number('abc')\001md5_number('\\xAA\\xBB'::BLOB)";
|
483
|
+
static constexpr const char *Categories = "string\001blob";
|
484
484
|
|
485
485
|
static ScalarFunctionSet GetFunctions();
|
486
486
|
};
|
487
487
|
|
488
488
|
struct SHA1Fun {
|
489
489
|
static constexpr const char *Name = "sha1";
|
490
|
-
static constexpr const char *Parameters = "value";
|
491
|
-
static constexpr const char *Description = "Returns the
|
492
|
-
static constexpr const char *Example = "sha1('
|
493
|
-
static constexpr const char *Categories = "";
|
490
|
+
static constexpr const char *Parameters = "value::VARCHAR\001blob::BLOB";
|
491
|
+
static constexpr const char *Description = "Returns a `VARCHAR` with the SHA-1 hash of the `value`.\001Returns a `VARCHAR` with the SHA-1 hash of the `blob`.";
|
492
|
+
static constexpr const char *Example = "sha1('🦆')\001sha1('\\xAA\\xBB'::BLOB)";
|
493
|
+
static constexpr const char *Categories = "string\001blob";
|
494
494
|
|
495
495
|
static ScalarFunctionSet GetFunctions();
|
496
496
|
};
|
497
497
|
|
498
498
|
struct SHA256Fun {
|
499
499
|
static constexpr const char *Name = "sha256";
|
500
|
-
static constexpr const char *Parameters = "value";
|
501
|
-
static constexpr const char *Description = "Returns the
|
502
|
-
static constexpr const char *Example = "sha256('
|
503
|
-
static constexpr const char *Categories = "";
|
500
|
+
static constexpr const char *Parameters = "value::VARCHAR\001blob::BLOB";
|
501
|
+
static constexpr const char *Description = "Returns a `VARCHAR` with the SHA-256 hash of the `value`\001Returns a `VARCHAR` with the SHA-256 hash of the `blob`.";
|
502
|
+
static constexpr const char *Example = "sha256('🦆')\001sha256('\\xAA\\xBB'::BLOB)";
|
503
|
+
static constexpr const char *Categories = "string\001blob";
|
504
504
|
|
505
505
|
static ScalarFunctionSet GetFunctions();
|
506
506
|
};
|
@@ -76,4 +76,36 @@ struct StructConcatFun {
|
|
76
76
|
static ScalarFunction GetFunction();
|
77
77
|
};
|
78
78
|
|
79
|
+
struct StructContainsFun {
|
80
|
+
static constexpr const char *Name = "struct_contains";
|
81
|
+
static constexpr const char *Parameters = "struct,'entry'";
|
82
|
+
static constexpr const char *Description = "Check if an unnamed STRUCT contains the value.";
|
83
|
+
static constexpr const char *Example = "struct_contains(ROW(3, 3, 0), 3)";
|
84
|
+
static constexpr const char *Categories = "";
|
85
|
+
|
86
|
+
static ScalarFunction GetFunction();
|
87
|
+
};
|
88
|
+
|
89
|
+
struct StructHasFun {
|
90
|
+
using ALIAS = StructContainsFun;
|
91
|
+
|
92
|
+
static constexpr const char *Name = "struct_has";
|
93
|
+
};
|
94
|
+
|
95
|
+
struct StructPositionFun {
|
96
|
+
static constexpr const char *Name = "struct_position";
|
97
|
+
static constexpr const char *Parameters = "struct,'entry'";
|
98
|
+
static constexpr const char *Description = "Get the position of the entry in an unnamed STRUCT, starting at 1.";
|
99
|
+
static constexpr const char *Example = "struct_position(ROW(3, 3, 0), 3)";
|
100
|
+
static constexpr const char *Categories = "";
|
101
|
+
|
102
|
+
static ScalarFunction GetFunction();
|
103
|
+
};
|
104
|
+
|
105
|
+
struct StructIndexofFun {
|
106
|
+
using ALIAS = StructPositionFun;
|
107
|
+
|
108
|
+
static constexpr const char *Name = "struct_indexof";
|
109
|
+
};
|
110
|
+
|
79
111
|
} // namespace duckdb
|
@@ -69,7 +69,7 @@ struct CurrentQueryId {
|
|
69
69
|
static constexpr const char *Name = "current_query_id";
|
70
70
|
static constexpr const char *Parameters = "";
|
71
71
|
static constexpr const char *Description = "Get the current query_id";
|
72
|
-
static constexpr const char *Example = "
|
72
|
+
static constexpr const char *Example = "current_query_id()";
|
73
73
|
static constexpr const char *Categories = "";
|
74
74
|
|
75
75
|
static ScalarFunction GetFunction();
|
@@ -0,0 +1,38 @@
|
|
1
|
+
//===----------------------------------------------------------------------===//
|
2
|
+
// DuckDB
|
3
|
+
//
|
4
|
+
// function/scalar/variant_functions.hpp
|
5
|
+
//
|
6
|
+
//
|
7
|
+
//===----------------------------------------------------------------------===//
|
8
|
+
// This file is automatically generated by scripts/generate_functions.py
|
9
|
+
// Do not edit this file manually, your changes will be overwritten
|
10
|
+
//===----------------------------------------------------------------------===//
|
11
|
+
|
12
|
+
#pragma once
|
13
|
+
|
14
|
+
#include "duckdb/function/function_set.hpp"
|
15
|
+
|
16
|
+
namespace duckdb {
|
17
|
+
|
18
|
+
struct VariantExtractFun {
|
19
|
+
static constexpr const char *Name = "variant_extract";
|
20
|
+
static constexpr const char *Parameters = "input_variant::VARIANT,field::VARCHAR\001input_variant::VARIANT,index::UINTEGER";
|
21
|
+
static constexpr const char *Description = "Returns the `field` from the `input_variant` if it's an OBJECT.\001Returns the entry at `index` from the `input_variant` if it's an ARRAY.";
|
22
|
+
static constexpr const char *Example = "variant_extract({'a': 42, 'b': [1,2,3])::VARIANT, 'b')\001variant_extract([1,2,3])::VARIANT, 0)";
|
23
|
+
static constexpr const char *Categories = "variant\001variant";
|
24
|
+
|
25
|
+
static ScalarFunctionSet GetFunctions();
|
26
|
+
};
|
27
|
+
|
28
|
+
struct VariantTypeofFun {
|
29
|
+
static constexpr const char *Name = "variant_typeof";
|
30
|
+
static constexpr const char *Parameters = "input_variant";
|
31
|
+
static constexpr const char *Description = "Returns the internal type of the `input_variant`.";
|
32
|
+
static constexpr const char *Example = "variant_typeof({'a': 42, 'b': [1,2,3])::VARIANT)";
|
33
|
+
static constexpr const char *Categories = "variant";
|
34
|
+
|
35
|
+
static ScalarFunction GetFunction();
|
36
|
+
};
|
37
|
+
|
38
|
+
} // namespace duckdb
|
@@ -0,0 +1,85 @@
|
|
1
|
+
//===----------------------------------------------------------------------===//
|
2
|
+
// DuckDB
|
3
|
+
//
|
4
|
+
// duckdb/function/scalar/variant_utils.hpp
|
5
|
+
//
|
6
|
+
//
|
7
|
+
//===----------------------------------------------------------------------===//
|
8
|
+
|
9
|
+
#pragma once
|
10
|
+
|
11
|
+
#include "duckdb/function/scalar_function.hpp"
|
12
|
+
#include "duckdb/function/function_set.hpp"
|
13
|
+
#include "duckdb/function/built_in_functions.hpp"
|
14
|
+
#include "duckdb/common/types/variant.hpp"
|
15
|
+
#include "duckdb/common/owning_string_map.hpp"
|
16
|
+
|
17
|
+
namespace duckdb {
|
18
|
+
|
19
|
+
struct VariantNestedDataCollectionResult {
|
20
|
+
public:
|
21
|
+
VariantNestedDataCollectionResult() : success(true) {
|
22
|
+
}
|
23
|
+
explicit VariantNestedDataCollectionResult(VariantLogicalType wrong_type) : success(false), wrong_type(wrong_type) {
|
24
|
+
}
|
25
|
+
|
26
|
+
public:
|
27
|
+
bool success;
|
28
|
+
//! If success is false, the type that was encountered that caused the collection failure
|
29
|
+
VariantLogicalType wrong_type;
|
30
|
+
};
|
31
|
+
|
32
|
+
struct VariantChildDataCollectionResult {
|
33
|
+
public:
|
34
|
+
enum class Type : uint8_t { SUCCESS, INDEX_ZERO, COMPONENT_NOT_FOUND };
|
35
|
+
|
36
|
+
public:
|
37
|
+
VariantChildDataCollectionResult() : type(Type::SUCCESS) {
|
38
|
+
}
|
39
|
+
|
40
|
+
public:
|
41
|
+
static VariantChildDataCollectionResult IndexZero() {
|
42
|
+
return VariantChildDataCollectionResult(Type::INDEX_ZERO);
|
43
|
+
}
|
44
|
+
static VariantChildDataCollectionResult NotFound(idx_t nested_index) {
|
45
|
+
return VariantChildDataCollectionResult(Type::COMPONENT_NOT_FOUND, nested_index);
|
46
|
+
}
|
47
|
+
|
48
|
+
public:
|
49
|
+
bool Success() const {
|
50
|
+
return type == Type::SUCCESS;
|
51
|
+
}
|
52
|
+
|
53
|
+
private:
|
54
|
+
explicit VariantChildDataCollectionResult(Type type, idx_t index = DConstants::INVALID_INDEX)
|
55
|
+
: type(type), nested_data_index(index) {
|
56
|
+
}
|
57
|
+
|
58
|
+
public:
|
59
|
+
Type type;
|
60
|
+
idx_t nested_data_index;
|
61
|
+
};
|
62
|
+
|
63
|
+
struct VariantUtils {
|
64
|
+
DUCKDB_API static bool IsNestedType(const UnifiedVariantVectorData &variant, idx_t row, uint32_t value_index);
|
65
|
+
DUCKDB_API static VariantDecimalData DecodeDecimalData(const UnifiedVariantVectorData &variant, idx_t row,
|
66
|
+
uint32_t value_index);
|
67
|
+
DUCKDB_API static VariantNestedData DecodeNestedData(const UnifiedVariantVectorData &variant, idx_t row,
|
68
|
+
uint32_t value_index);
|
69
|
+
DUCKDB_API static vector<string> GetObjectKeys(const UnifiedVariantVectorData &variant, idx_t row,
|
70
|
+
const VariantNestedData &nested_data);
|
71
|
+
DUCKDB_API static VariantChildDataCollectionResult FindChildValues(const UnifiedVariantVectorData &variant,
|
72
|
+
const VariantPathComponent &component,
|
73
|
+
optional_idx row, SelectionVector &res,
|
74
|
+
VariantNestedData *nested_data, idx_t count);
|
75
|
+
DUCKDB_API static VariantNestedDataCollectionResult
|
76
|
+
CollectNestedData(const UnifiedVariantVectorData &variant, VariantLogicalType expected_type,
|
77
|
+
const SelectionVector &sel, idx_t count, optional_idx row, idx_t offset,
|
78
|
+
VariantNestedData *child_data, ValidityMask &validity);
|
79
|
+
DUCKDB_API static vector<uint32_t> ValueIsNull(const UnifiedVariantVectorData &variant, const SelectionVector &sel,
|
80
|
+
idx_t count, optional_idx row);
|
81
|
+
DUCKDB_API static Value ConvertVariantToValue(const UnifiedVariantVectorData &variant, idx_t row, idx_t values_idx);
|
82
|
+
DUCKDB_API static bool Verify(Vector &variant, const SelectionVector &sel_p, idx_t count);
|
83
|
+
};
|
84
|
+
|
85
|
+
} // namespace duckdb
|