From f7ae8cb492d5ffedec1042fbcfacc14ea3e03de5 Mon Sep 17 00:00:00 2001 From: DuckDB Labs GitHub Bot Date: Fri, 13 Sep 2024 00:31:50 +0000 Subject: [PATCH] Update vendored DuckDB sources to 00cec88d --- src/duckdb/src/common/enum_util.cpp | 652 +++++++++--------- .../function/table/version/pragma_version.cpp | 6 +- src/duckdb/src/include/duckdb.h | 14 +- src/duckdb/src/include/duckdb/main/config.hpp | 2 +- .../src/include/duckdb/main/extension.hpp | 1 + .../include/duckdb/main/extension_helper.hpp | 2 +- .../src/include/duckdb/main/settings.hpp | 6 +- .../duckdb/storage/buffer/buffer_pool.hpp | 2 +- src/duckdb/src/main/database.cpp | 11 +- src/duckdb/src/main/extension.cpp | 2 +- .../src/main/extension/extension_load.cpp | 14 +- .../optimizer/join_order/relation_manager.cpp | 15 + src/duckdb/src/planner/binder.cpp | 8 +- .../binder/statement/bind_copy_database.cpp | 32 +- src/duckdb/src/storage/buffer/buffer_pool.cpp | 10 +- 15 files changed, 407 insertions(+), 370 deletions(-) diff --git a/src/duckdb/src/common/enum_util.cpp b/src/duckdb/src/common/enum_util.cpp index 4023680b..75415e40 100644 --- a/src/duckdb/src/common/enum_util.cpp +++ b/src/duckdb/src/common/enum_util.cpp @@ -155,7 +155,7 @@ const char* EnumUtil::ToChars(AccessMode value) { case AccessMode::READ_WRITE: return "READ_WRITE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -173,7 +173,7 @@ AccessMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "READ_WRITE")) { return AccessMode::READ_WRITE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -184,7 +184,7 @@ const char* EnumUtil::ToChars(AggregateCombineType value) case AggregateCombineType::ALLOW_DESTRUCTIVE: return "ALLOW_DESTRUCTIVE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -196,7 +196,7 @@ AggregateCombineType EnumUtil::FromString(const char *valu if (StringUtil::Equals(value, "ALLOW_DESTRUCTIVE")) { return AggregateCombineType::ALLOW_DESTRUCTIVE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -209,7 +209,7 @@ const char* EnumUtil::ToChars(AggregateHandling value) { case AggregateHandling::FORCE_AGGREGATES: return "FORCE_AGGREGATES"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -224,7 +224,7 @@ AggregateHandling EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "FORCE_AGGREGATES")) { return AggregateHandling::FORCE_AGGREGATES; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -235,7 +235,7 @@ const char* EnumUtil::ToChars(AggregateOrderDependent v case AggregateOrderDependent::NOT_ORDER_DEPENDENT: return "NOT_ORDER_DEPENDENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -247,7 +247,7 @@ AggregateOrderDependent EnumUtil::FromString(const char if (StringUtil::Equals(value, "NOT_ORDER_DEPENDENT")) { return AggregateOrderDependent::NOT_ORDER_DEPENDENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -258,7 +258,7 @@ const char* EnumUtil::ToChars(AggregateType value) { case AggregateType::DISTINCT: return "DISTINCT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -270,7 +270,7 @@ AggregateType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DISTINCT")) { return AggregateType::DISTINCT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -281,7 +281,7 @@ const char* EnumUtil::ToChars(AlterForeignKeyType value) { case AlterForeignKeyType::AFT_DELETE: return "AFT_DELETE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -293,7 +293,7 @@ AlterForeignKeyType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "AFT_DELETE")) { return AlterForeignKeyType::AFT_DELETE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -304,7 +304,7 @@ const char* EnumUtil::ToChars(AlterScalarFunctionType v case AlterScalarFunctionType::ADD_FUNCTION_OVERLOADS: return "ADD_FUNCTION_OVERLOADS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -316,7 +316,7 @@ AlterScalarFunctionType EnumUtil::FromString(const char if (StringUtil::Equals(value, "ADD_FUNCTION_OVERLOADS")) { return AlterScalarFunctionType::ADD_FUNCTION_OVERLOADS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -327,7 +327,7 @@ const char* EnumUtil::ToChars(AlterTableFunctionType val case AlterTableFunctionType::ADD_FUNCTION_OVERLOADS: return "ADD_FUNCTION_OVERLOADS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -339,7 +339,7 @@ AlterTableFunctionType EnumUtil::FromString(const char * if (StringUtil::Equals(value, "ADD_FUNCTION_OVERLOADS")) { return AlterTableFunctionType::ADD_FUNCTION_OVERLOADS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -368,7 +368,7 @@ const char* EnumUtil::ToChars(AlterTableType value) { case AlterTableType::SET_COLUMN_COMMENT: return "SET_COLUMN_COMMENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -407,7 +407,7 @@ AlterTableType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SET_COLUMN_COMMENT")) { return AlterTableType::SET_COLUMN_COMMENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -432,7 +432,7 @@ const char* EnumUtil::ToChars(AlterType value) { case AlterType::SET_COLUMN_COMMENT: return "SET_COLUMN_COMMENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -465,7 +465,7 @@ AlterType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SET_COLUMN_COMMENT")) { return AlterType::SET_COLUMN_COMMENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -476,7 +476,7 @@ const char* EnumUtil::ToChars(AlterViewType value) { case AlterViewType::RENAME_VIEW: return "RENAME_VIEW"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -488,7 +488,7 @@ AlterViewType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "RENAME_VIEW")) { return AlterViewType::RENAME_VIEW; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -499,7 +499,7 @@ const char* EnumUtil::ToChars(AppenderType value) { case AppenderType::PHYSICAL: return "PHYSICAL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -511,7 +511,7 @@ AppenderType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PHYSICAL")) { return AppenderType::PHYSICAL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -532,7 +532,7 @@ const char* EnumUtil::ToChars(ArrowDateTimeType value) { case ArrowDateTimeType::MONTH_DAY_NANO: return "MONTH_DAY_NANO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -559,7 +559,7 @@ ArrowDateTimeType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "MONTH_DAY_NANO")) { return ArrowDateTimeType::MONTH_DAY_NANO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -570,7 +570,7 @@ const char* EnumUtil::ToChars(ArrowOffsetSize value) { case ArrowOffsetSize::LARGE: return "LARGE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -582,7 +582,7 @@ ArrowOffsetSize EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "LARGE")) { return ArrowOffsetSize::LARGE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -599,7 +599,7 @@ const char* EnumUtil::ToChars(ArrowTypeInfoType value) { case ArrowTypeInfoType::ARRAY: return "ARRAY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -620,7 +620,7 @@ ArrowTypeInfoType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ARRAY")) { return ArrowTypeInfoType::ARRAY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -635,7 +635,7 @@ const char* EnumUtil::ToChars(ArrowVariableSizeType value case ArrowVariableSizeType::VIEW: return "VIEW"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -653,7 +653,7 @@ ArrowVariableSizeType EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "VIEW")) { return ArrowVariableSizeType::VIEW; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -664,7 +664,7 @@ const char* EnumUtil::ToChars(BinderType value) { case BinderType::VIEW_BINDER: return "VIEW_BINDER"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -676,7 +676,7 @@ BinderType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "VIEW_BINDER")) { return BinderType::VIEW_BINDER; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -689,7 +689,7 @@ const char* EnumUtil::ToChars(BindingMode value) { case BindingMode::EXTRACT_REPLACEMENT_SCANS: return "EXTRACT_REPLACEMENT_SCANS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -704,7 +704,7 @@ BindingMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EXTRACT_REPLACEMENT_SCANS")) { return BindingMode::EXTRACT_REPLACEMENT_SCANS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -723,7 +723,7 @@ const char* EnumUtil::ToChars(BitpackingMode value) { case BitpackingMode::FOR: return "FOR"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -747,7 +747,7 @@ BitpackingMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "FOR")) { return BitpackingMode::FOR; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -758,7 +758,7 @@ const char* EnumUtil::ToChars(BlockState value) { case BlockState::BLOCK_LOADED: return "BLOCK_LOADED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -770,7 +770,7 @@ BlockState EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCK_LOADED")) { return BlockState::BLOCK_LOADED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -785,7 +785,7 @@ const char* EnumUtil::ToChars(CAPIResultSetType value) { case CAPIResultSetType::CAPI_RESULT_TYPE_DEPRECATED: return "CAPI_RESULT_TYPE_DEPRECATED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -803,7 +803,7 @@ CAPIResultSetType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "CAPI_RESULT_TYPE_DEPRECATED")) { return CAPIResultSetType::CAPI_RESULT_TYPE_DEPRECATED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -834,7 +834,7 @@ const char* EnumUtil::ToChars(CSVState value) { case CSVState::COMMENT: return "COMMENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -876,7 +876,7 @@ CSVState EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "COMMENT")) { return CSVState::COMMENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -889,7 +889,7 @@ const char* EnumUtil::ToChars(CTEMaterialize value) { case CTEMaterialize::CTE_MATERIALIZE_NEVER: return "CTE_MATERIALIZE_NEVER"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -904,7 +904,7 @@ CTEMaterialize EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "CTE_MATERIALIZE_NEVER")) { return CTEMaterialize::CTE_MATERIALIZE_NEVER; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -917,7 +917,7 @@ const char* EnumUtil::ToChars(CatalogLookupBehavior value case CatalogLookupBehavior::NEVER_LOOKUP: return "NEVER_LOOKUP"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -932,7 +932,7 @@ CatalogLookupBehavior EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "NEVER_LOOKUP")) { return CatalogLookupBehavior::NEVER_LOOKUP; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -985,7 +985,7 @@ const char* EnumUtil::ToChars(CatalogType value) { case CatalogType::DEPENDENCY_ENTRY: return "DEPENDENCY_ENTRY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1060,7 +1060,7 @@ CatalogType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DEPENDENCY_ENTRY")) { return CatalogType::DEPENDENCY_ENTRY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1075,7 +1075,7 @@ const char* EnumUtil::ToChars(CheckpointAbort value) { case CheckpointAbort::DEBUG_ABORT_AFTER_FREE_LIST_WRITE: return "DEBUG_ABORT_AFTER_FREE_LIST_WRITE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1093,7 +1093,7 @@ CheckpointAbort EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DEBUG_ABORT_AFTER_FREE_LIST_WRITE")) { return CheckpointAbort::DEBUG_ABORT_AFTER_FREE_LIST_WRITE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1106,7 +1106,7 @@ const char* EnumUtil::ToChars(ChunkInfoType value) { case ChunkInfoType::EMPTY_INFO: return "EMPTY_INFO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1121,7 +1121,7 @@ ChunkInfoType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EMPTY_INFO")) { return ChunkInfoType::EMPTY_INFO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1134,7 +1134,7 @@ const char* EnumUtil::ToChars(ColumnDataAllocatorType v case ColumnDataAllocatorType::HYBRID: return "HYBRID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1149,7 +1149,7 @@ ColumnDataAllocatorType EnumUtil::FromString(const char if (StringUtil::Equals(value, "HYBRID")) { return ColumnDataAllocatorType::HYBRID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1162,7 +1162,7 @@ const char* EnumUtil::ToChars(ColumnDataScanProperties case ColumnDataScanProperties::DISALLOW_ZERO_COPY: return "DISALLOW_ZERO_COPY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1177,7 +1177,7 @@ ColumnDataScanProperties EnumUtil::FromString(const ch if (StringUtil::Equals(value, "DISALLOW_ZERO_COPY")) { return ColumnDataScanProperties::DISALLOW_ZERO_COPY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1188,7 +1188,7 @@ const char* EnumUtil::ToChars(ColumnSegmentType value) { case ColumnSegmentType::PERSISTENT: return "PERSISTENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1200,7 +1200,7 @@ ColumnSegmentType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PERSISTENT")) { return ColumnSegmentType::PERSISTENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1213,7 +1213,7 @@ const char* EnumUtil::ToChars(CompressedMate case CompressedMaterializationDirection::DECOMPRESS: return "DECOMPRESS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1228,7 +1228,7 @@ CompressedMaterializationDirection EnumUtil::FromString", value)); } template<> @@ -1261,7 +1261,7 @@ const char* EnumUtil::ToChars(CompressionType value) { case CompressionType::COMPRESSION_COUNT: return "COMPRESSION_COUNT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1306,7 +1306,7 @@ CompressionType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "COMPRESSION_COUNT")) { return CompressionType::COMPRESSION_COUNT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1317,7 +1317,7 @@ const char* EnumUtil::ToChars(ConflictManagerMode value) { case ConflictManagerMode::THROW: return "THROW"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1329,7 +1329,7 @@ ConflictManagerMode EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "THROW")) { return ConflictManagerMode::THROW; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1346,7 +1346,7 @@ const char* EnumUtil::ToChars(ConstraintType value) { case ConstraintType::FOREIGN_KEY: return "FOREIGN_KEY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1367,7 +1367,7 @@ ConstraintType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "FOREIGN_KEY")) { return ConstraintType::FOREIGN_KEY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1378,7 +1378,7 @@ const char* EnumUtil::ToChars(CopyFunctionReturnType val case CopyFunctionReturnType::CHANGED_ROWS_AND_FILE_LIST: return "CHANGED_ROWS_AND_FILE_LIST"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1390,7 +1390,7 @@ CopyFunctionReturnType EnumUtil::FromString(const char * if (StringUtil::Equals(value, "CHANGED_ROWS_AND_FILE_LIST")) { return CopyFunctionReturnType::CHANGED_ROWS_AND_FILE_LIST; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1405,7 +1405,7 @@ const char* EnumUtil::ToChars(CopyOverwriteMode value) { case CopyOverwriteMode::COPY_APPEND: return "COPY_APPEND"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1423,7 +1423,7 @@ CopyOverwriteMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "COPY_APPEND")) { return CopyOverwriteMode::COPY_APPEND; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1434,7 +1434,7 @@ const char* EnumUtil::ToChars(CopyToType value) { case CopyToType::EXPORT_DATABASE: return "EXPORT_DATABASE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1446,7 +1446,7 @@ CopyToType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EXPORT_DATABASE")) { return CopyToType::EXPORT_DATABASE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1461,7 +1461,7 @@ const char* EnumUtil::ToChars(DataFileType value) { case DataFileType::PARQUET_FILE: return "PARQUET_FILE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1479,7 +1479,7 @@ DataFileType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PARQUET_FILE")) { return DataFileType::PARQUET_FILE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1536,7 +1536,7 @@ const char* EnumUtil::ToChars(DatePartSpecifier value) { case DatePartSpecifier::INVALID: return "INVALID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1617,7 +1617,7 @@ DatePartSpecifier EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID")) { return DatePartSpecifier::INVALID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1630,7 +1630,7 @@ const char* EnumUtil::ToChars(DebugInitialize value) { case DebugInitialize::DEBUG_ONE_INITIALIZE: return "DEBUG_ONE_INITIALIZE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1645,7 +1645,7 @@ DebugInitialize EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DEBUG_ONE_INITIALIZE")) { return DebugInitialize::DEBUG_ONE_INITIALIZE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1662,7 +1662,7 @@ const char* EnumUtil::ToChars(DefaultOrderByNullType val case DefaultOrderByNullType::NULLS_LAST_ON_ASC_FIRST_ON_DESC: return "NULLS_LAST_ON_ASC_FIRST_ON_DESC"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1683,7 +1683,7 @@ DefaultOrderByNullType EnumUtil::FromString(const char * if (StringUtil::Equals(value, "NULLS_LAST_ON_ASC_FIRST_ON_DESC")) { return DefaultOrderByNullType::NULLS_LAST_ON_ASC_FIRST_ON_DESC; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1694,7 +1694,7 @@ const char* EnumUtil::ToChars(DependencyEntryType value) { case DependencyEntryType::DEPENDENT: return "DEPENDENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1706,7 +1706,7 @@ DependencyEntryType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "DEPENDENT")) { return DependencyEntryType::DEPENDENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1719,7 +1719,7 @@ const char* EnumUtil::ToChars(DeprecatedIndexType value) { case DeprecatedIndexType::EXTENSION: return "EXTENSION"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1734,7 +1734,7 @@ DeprecatedIndexType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "EXTENSION")) { return DeprecatedIndexType::EXTENSION; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1747,7 +1747,7 @@ const char* EnumUtil::ToChars(DestroyBufferUpon value) { case DestroyBufferUpon::UNPIN: return "UNPIN"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1762,7 +1762,7 @@ DestroyBufferUpon EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "UNPIN")) { return DestroyBufferUpon::UNPIN; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1773,7 +1773,7 @@ const char* EnumUtil::ToChars(DistinctType value) { case DistinctType::DISTINCT_ON: return "DISTINCT_ON"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1785,7 +1785,7 @@ DistinctType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DISTINCT_ON")) { return DistinctType::DISTINCT_ON; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1802,7 +1802,7 @@ const char* EnumUtil::ToChars(ErrorType value) { case ErrorType::INVALID: return "INVALID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1823,7 +1823,7 @@ ErrorType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID")) { return ErrorType::INVALID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1836,7 +1836,7 @@ const char* EnumUtil::ToChars(ExceptionFormatValueType case ExceptionFormatValueType::FORMAT_VALUE_TYPE_STRING: return "FORMAT_VALUE_TYPE_STRING"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -1851,7 +1851,7 @@ ExceptionFormatValueType EnumUtil::FromString(const ch if (StringUtil::Equals(value, "FORMAT_VALUE_TYPE_STRING")) { return ExceptionFormatValueType::FORMAT_VALUE_TYPE_STRING; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -1944,7 +1944,7 @@ const char* EnumUtil::ToChars(ExceptionType value) { case ExceptionType::INVALID_CONFIGURATION: return "INVALID_CONFIGURATION"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2079,7 +2079,7 @@ ExceptionType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID_CONFIGURATION")) { return ExceptionType::INVALID_CONFIGURATION; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2096,7 +2096,7 @@ const char* EnumUtil::ToChars(ExplainFormat value) { case ExplainFormat::GRAPHVIZ: return "GRAPHVIZ"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2117,7 +2117,7 @@ ExplainFormat EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "GRAPHVIZ")) { return ExplainFormat::GRAPHVIZ; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2130,7 +2130,7 @@ const char* EnumUtil::ToChars(ExplainOutputType value) { case ExplainOutputType::PHYSICAL_ONLY: return "PHYSICAL_ONLY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2145,7 +2145,7 @@ ExplainOutputType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PHYSICAL_ONLY")) { return ExplainOutputType::PHYSICAL_ONLY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2156,7 +2156,7 @@ const char* EnumUtil::ToChars(ExplainType value) { case ExplainType::EXPLAIN_ANALYZE: return "EXPLAIN_ANALYZE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2168,7 +2168,7 @@ ExplainType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EXPLAIN_ANALYZE")) { return ExplainType::EXPLAIN_ANALYZE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2181,7 +2181,7 @@ const char* EnumUtil::ToChars(ExponentType value) { case ExponentType::NEGATIVE: return "NEGATIVE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2196,7 +2196,7 @@ ExponentType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "NEGATIVE")) { return ExponentType::NEGATIVE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2283,7 +2283,7 @@ const char* EnumUtil::ToChars(ExpressionClass value) { case ExpressionClass::BOUND_EXPANDED: return "BOUND_EXPANDED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2409,7 +2409,7 @@ ExpressionClass EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BOUND_EXPANDED")) { return ExpressionClass::BOUND_EXPANDED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2554,7 +2554,7 @@ const char* EnumUtil::ToChars(ExpressionType value) { case ExpressionType::BOUND_EXPANDED: return "BOUND_EXPANDED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2767,7 +2767,7 @@ ExpressionType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BOUND_EXPANDED")) { return ExpressionType::BOUND_EXPANDED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2780,7 +2780,7 @@ const char* EnumUtil::ToChars(ExtensionABIType value) { case ExtensionABIType::C_STRUCT: return "C_STRUCT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2795,7 +2795,7 @@ ExtensionABIType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "C_STRUCT")) { return ExtensionABIType::C_STRUCT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2812,7 +2812,7 @@ const char* EnumUtil::ToChars(ExtensionInstallMode value) case ExtensionInstallMode::NOT_INSTALLED: return "NOT_INSTALLED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2833,7 +2833,7 @@ ExtensionInstallMode EnumUtil::FromString(const char *valu if (StringUtil::Equals(value, "NOT_INSTALLED")) { return ExtensionInstallMode::NOT_INSTALLED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2846,7 +2846,7 @@ const char* EnumUtil::ToChars(ExtensionLoadResult value) { case ExtensionLoadResult::NOT_LOADED: return "NOT_LOADED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2861,7 +2861,7 @@ ExtensionLoadResult EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "NOT_LOADED")) { return ExtensionLoadResult::NOT_LOADED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2884,7 +2884,7 @@ const char* EnumUtil::ToChars(ExtensionUpdateResultTag case ExtensionUpdateResultTag::UPDATED: return "UPDATED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2914,7 +2914,7 @@ ExtensionUpdateResultTag EnumUtil::FromString(const ch if (StringUtil::Equals(value, "UPDATED")) { return ExtensionUpdateResultTag::UPDATED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2925,7 +2925,7 @@ const char* EnumUtil::ToChars(ExtraDropInfoType value) { case ExtraDropInfoType::SECRET_INFO: return "SECRET_INFO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -2937,7 +2937,7 @@ ExtraDropInfoType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SECRET_INFO")) { return ExtraDropInfoType::SECRET_INFO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -2968,7 +2968,7 @@ const char* EnumUtil::ToChars(ExtraTypeInfoType value) { case ExtraTypeInfoType::INTEGER_LITERAL_TYPE_INFO: return "INTEGER_LITERAL_TYPE_INFO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3010,7 +3010,7 @@ ExtraTypeInfoType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INTEGER_LITERAL_TYPE_INFO")) { return ExtraTypeInfoType::INTEGER_LITERAL_TYPE_INFO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3023,7 +3023,7 @@ const char* EnumUtil::ToChars(FileBufferType value) { case FileBufferType::TINY_BUFFER: return "TINY_BUFFER"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3038,7 +3038,7 @@ FileBufferType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "TINY_BUFFER")) { return FileBufferType::TINY_BUFFER; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3053,7 +3053,7 @@ const char* EnumUtil::ToChars(FileCompressionType value) { case FileCompressionType::ZSTD: return "ZSTD"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3071,7 +3071,7 @@ FileCompressionType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "ZSTD")) { return FileCompressionType::ZSTD; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3084,7 +3084,7 @@ const char* EnumUtil::ToChars(FileExpandResult value) { case FileExpandResult::MULTIPLE_FILES: return "MULTIPLE_FILES"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3099,7 +3099,7 @@ FileExpandResult EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "MULTIPLE_FILES")) { return FileExpandResult::MULTIPLE_FILES; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3110,7 +3110,7 @@ const char* EnumUtil::ToChars(FileGlobOptions value) { case FileGlobOptions::ALLOW_EMPTY: return "ALLOW_EMPTY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3122,7 +3122,7 @@ FileGlobOptions EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ALLOW_EMPTY")) { return FileGlobOptions::ALLOW_EMPTY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3135,7 +3135,7 @@ const char* EnumUtil::ToChars(FileLockType value) { case FileLockType::WRITE_LOCK: return "WRITE_LOCK"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3150,7 +3150,7 @@ FileLockType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "WRITE_LOCK")) { return FileLockType::WRITE_LOCK; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3167,7 +3167,7 @@ const char* EnumUtil::ToChars(FilterPropagateResult value case FilterPropagateResult::FILTER_FALSE_OR_NULL: return "FILTER_FALSE_OR_NULL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3188,7 +3188,7 @@ FilterPropagateResult EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "FILTER_FALSE_OR_NULL")) { return FilterPropagateResult::FILTER_FALSE_OR_NULL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3201,7 +3201,7 @@ const char* EnumUtil::ToChars(ForeignKeyType value) { case ForeignKeyType::FK_TYPE_SELF_REFERENCE_TABLE: return "FK_TYPE_SELF_REFERENCE_TABLE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3216,7 +3216,7 @@ ForeignKeyType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "FK_TYPE_SELF_REFERENCE_TABLE")) { return ForeignKeyType::FK_TYPE_SELF_REFERENCE_TABLE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3227,7 +3227,7 @@ const char* EnumUtil::ToChars(FunctionNullHandling value) case FunctionNullHandling::SPECIAL_HANDLING: return "SPECIAL_HANDLING"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3239,7 +3239,7 @@ FunctionNullHandling EnumUtil::FromString(const char *valu if (StringUtil::Equals(value, "SPECIAL_HANDLING")) { return FunctionNullHandling::SPECIAL_HANDLING; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3252,7 +3252,7 @@ const char* EnumUtil::ToChars(FunctionStability value) { case FunctionStability::CONSISTENT_WITHIN_QUERY: return "CONSISTENT_WITHIN_QUERY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3267,7 +3267,7 @@ FunctionStability EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "CONSISTENT_WITHIN_QUERY")) { return FunctionStability::CONSISTENT_WITHIN_QUERY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3278,7 +3278,7 @@ const char* EnumUtil::ToChars(GateStatus value) { case GateStatus::GATE_SET: return "GATE_SET"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3290,7 +3290,7 @@ GateStatus EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "GATE_SET")) { return GateStatus::GATE_SET; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3301,7 +3301,7 @@ const char* EnumUtil::ToChars(HLLStorageType value) { case HLLStorageType::HLL_V2: return "HLL_V2"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3313,7 +3313,7 @@ HLLStorageType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "HLL_V2")) { return HLLStorageType::HLL_V2; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3328,7 +3328,7 @@ const char* EnumUtil::ToChars(IndexConstraintType value) { case IndexConstraintType::FOREIGN: return "FOREIGN"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3346,7 +3346,7 @@ IndexConstraintType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "FOREIGN")) { return IndexConstraintType::FOREIGN; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3357,7 +3357,7 @@ const char* EnumUtil::ToChars(InsertColumnOrder value) { case InsertColumnOrder::INSERT_BY_NAME: return "INSERT_BY_NAME"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3369,7 +3369,7 @@ InsertColumnOrder EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INSERT_BY_NAME")) { return InsertColumnOrder::INSERT_BY_NAME; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3382,7 +3382,7 @@ const char* EnumUtil::ToChars(InterruptMode value) { case InterruptMode::BLOCKING: return "BLOCKING"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3397,7 +3397,7 @@ InterruptMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCKING")) { return InterruptMode::BLOCKING; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3416,7 +3416,7 @@ const char* EnumUtil::ToChars(JoinRefType value) { case JoinRefType::DEPENDENT: return "DEPENDENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3440,7 +3440,7 @@ JoinRefType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DEPENDENT")) { return JoinRefType::DEPENDENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3469,7 +3469,7 @@ const char* EnumUtil::ToChars(JoinType value) { case JoinType::RIGHT_ANTI: return "RIGHT_ANTI"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3508,7 +3508,7 @@ JoinType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "RIGHT_ANTI")) { return JoinType::RIGHT_ANTI; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3523,7 +3523,7 @@ const char* EnumUtil::ToChars(KeywordCategory value) { case KeywordCategory::KEYWORD_COL_NAME: return "KEYWORD_COL_NAME"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3541,7 +3541,7 @@ KeywordCategory EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "KEYWORD_COL_NAME")) { return KeywordCategory::KEYWORD_COL_NAME; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3558,7 +3558,7 @@ const char* EnumUtil::ToChars(LimitNodeType value) { case LimitNodeType::EXPRESSION_PERCENTAGE: return "EXPRESSION_PERCENTAGE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3579,7 +3579,7 @@ LimitNodeType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EXPRESSION_PERCENTAGE")) { return LimitNodeType::EXPRESSION_PERCENTAGE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3592,7 +3592,7 @@ const char* EnumUtil::ToChars(LoadType value) { case LoadType::FORCE_INSTALL: return "FORCE_INSTALL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3607,7 +3607,7 @@ LoadType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "FORCE_INSTALL")) { return LoadType::FORCE_INSTALL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -3736,7 +3736,7 @@ const char* EnumUtil::ToChars(LogicalOperatorType value) { case LogicalOperatorType::LOGICAL_EXTENSION_OPERATOR: return "LOGICAL_EXTENSION_OPERATOR"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -3925,7 +3925,7 @@ LogicalOperatorType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "LOGICAL_EXTENSION_OPERATOR")) { return LogicalOperatorType::LOGICAL_EXTENSION_OPERATOR; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4026,7 +4026,7 @@ const char* EnumUtil::ToChars(LogicalTypeId value) { case LogicalTypeId::ARRAY: return "ARRAY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4173,7 +4173,7 @@ LogicalTypeId EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ARRAY")) { return LogicalTypeId::ARRAY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4186,7 +4186,7 @@ const char* EnumUtil::ToChars(LookupResultType value) { case LookupResultType::LOOKUP_NULL: return "LOOKUP_NULL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4201,7 +4201,7 @@ LookupResultType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "LOOKUP_NULL")) { return LookupResultType::LOOKUP_NULL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4214,7 +4214,7 @@ const char* EnumUtil::ToChars(MacroType value) { case MacroType::SCALAR_MACRO: return "SCALAR_MACRO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4229,7 +4229,7 @@ MacroType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SCALAR_MACRO")) { return MacroType::SCALAR_MACRO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4246,7 +4246,7 @@ const char* EnumUtil::ToChars(MapInvalidReason value) { case MapInvalidReason::INVALID_PARAMS: return "INVALID_PARAMS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4267,7 +4267,7 @@ MapInvalidReason EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID_PARAMS")) { return MapInvalidReason::INVALID_PARAMS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4298,7 +4298,7 @@ const char* EnumUtil::ToChars(MemoryTag value) { case MemoryTag::EXTENSION: return "EXTENSION"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4340,7 +4340,7 @@ MemoryTag EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EXTENSION")) { return MemoryTag::EXTENSION; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4351,7 +4351,7 @@ const char* EnumUtil::ToChars(MetaPipelineType value) { case MetaPipelineType::JOIN_BUILD: return "JOIN_BUILD"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4363,7 +4363,7 @@ MetaPipelineType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "JOIN_BUILD")) { return MetaPipelineType::JOIN_BUILD; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4454,7 +4454,7 @@ const char* EnumUtil::ToChars(MetricsType value) { case MetricsType::OPTIMIZER_MATERIALIZED_CTE: return "OPTIMIZER_MATERIALIZED_CTE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4586,7 +4586,7 @@ MetricsType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "OPTIMIZER_MATERIALIZED_CTE")) { return MetricsType::OPTIMIZER_MATERIALIZED_CTE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4613,7 +4613,7 @@ const char* EnumUtil::ToChars(NType value) { case NType::NODE_256_LEAF: return "NODE_256_LEAF"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4649,7 +4649,7 @@ NType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "NODE_256_LEAF")) { return NType::NODE_256_LEAF; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4664,7 +4664,7 @@ const char* EnumUtil::ToChars(NewLineIdentifier value) { case NewLineIdentifier::SINGLE_R: return "SINGLE_R"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4682,7 +4682,7 @@ NewLineIdentifier EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SINGLE_R")) { return NewLineIdentifier::SINGLE_R; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4697,7 +4697,7 @@ const char* EnumUtil::ToChars(OnConflictAction value) { case OnConflictAction::REPLACE: return "REPLACE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4715,7 +4715,7 @@ OnConflictAction EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "REPLACE")) { return OnConflictAction::REPLACE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4730,7 +4730,7 @@ const char* EnumUtil::ToChars(OnCreateConflict value) { case OnCreateConflict::ALTER_ON_CONFLICT: return "ALTER_ON_CONFLICT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4748,7 +4748,7 @@ OnCreateConflict EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ALTER_ON_CONFLICT")) { return OnCreateConflict::ALTER_ON_CONFLICT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4759,7 +4759,7 @@ const char* EnumUtil::ToChars(OnEntryNotFound value) { case OnEntryNotFound::RETURN_NULL: return "RETURN_NULL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4771,7 +4771,7 @@ OnEntryNotFound EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "RETURN_NULL")) { return OnEntryNotFound::RETURN_NULL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4782,7 +4782,7 @@ const char* EnumUtil::ToChars(OperatorFinalizeResult case OperatorFinalizeResultType::FINISHED: return "FINISHED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4794,7 +4794,7 @@ OperatorFinalizeResultType EnumUtil::FromString(cons if (StringUtil::Equals(value, "FINISHED")) { return OperatorFinalizeResultType::FINISHED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4809,7 +4809,7 @@ const char* EnumUtil::ToChars(OperatorResultType value) { case OperatorResultType::BLOCKED: return "BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4827,7 +4827,7 @@ OperatorResultType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCKED")) { return OperatorResultType::BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4882,7 +4882,7 @@ const char* EnumUtil::ToChars(OptimizerType value) { case OptimizerType::MATERIALIZED_CTE: return "MATERIALIZED_CTE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4960,7 +4960,7 @@ OptimizerType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "MATERIALIZED_CTE")) { return OptimizerType::MATERIALIZED_CTE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -4975,7 +4975,7 @@ const char* EnumUtil::ToChars(OrderByNullType value) { case OrderByNullType::NULLS_LAST: return "NULLS_LAST"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -4993,7 +4993,7 @@ OrderByNullType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "NULLS_LAST") || StringUtil::Equals(value, "NULLS LAST")) { return OrderByNullType::NULLS_LAST; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5006,7 +5006,7 @@ const char* EnumUtil::ToChars(OrderPreservationType value case OrderPreservationType::FIXED_ORDER: return "FIXED_ORDER"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5021,7 +5021,7 @@ OrderPreservationType EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "FIXED_ORDER")) { return OrderPreservationType::FIXED_ORDER; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5036,7 +5036,7 @@ const char* EnumUtil::ToChars(OrderType value) { case OrderType::DESCENDING: return "DESCENDING"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5054,7 +5054,7 @@ OrderType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DESCENDING") || StringUtil::Equals(value, "DESC")) { return OrderType::DESCENDING; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5065,7 +5065,7 @@ const char* EnumUtil::ToChars(OutputStream value) { case OutputStream::STREAM_STDERR: return "STREAM_STDERR"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5077,7 +5077,7 @@ OutputStream EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "STREAM_STDERR")) { return OutputStream::STREAM_STDERR; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5118,7 +5118,7 @@ const char* EnumUtil::ToChars(ParseInfoType value) { case ParseInfoType::UPDATE_EXTENSIONS_INFO: return "UPDATE_EXTENSIONS_INFO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5175,7 +5175,7 @@ ParseInfoType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "UPDATE_EXTENSIONS_INFO")) { return ParseInfoType::UPDATE_EXTENSIONS_INFO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5188,7 +5188,7 @@ const char* EnumUtil::ToChars(ParserExtensionResultTy case ParserExtensionResultType::DISPLAY_EXTENSION_ERROR: return "DISPLAY_EXTENSION_ERROR"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5203,7 +5203,7 @@ ParserExtensionResultType EnumUtil::FromString(const if (StringUtil::Equals(value, "DISPLAY_EXTENSION_ERROR")) { return ParserExtensionResultType::DISPLAY_EXTENSION_ERROR; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5222,7 +5222,7 @@ const char* EnumUtil::ToChars(PartitionSortStage value) { case PartitionSortStage::FINISHED: return "FINISHED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5246,7 +5246,7 @@ PartitionSortStage EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "FINISHED")) { return PartitionSortStage::FINISHED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5259,7 +5259,7 @@ const char* EnumUtil::ToChars(PartitionedColumnDataTy case PartitionedColumnDataType::HIVE: return "HIVE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5274,7 +5274,7 @@ PartitionedColumnDataType EnumUtil::FromString(const if (StringUtil::Equals(value, "HIVE")) { return PartitionedColumnDataType::HIVE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5285,7 +5285,7 @@ const char* EnumUtil::ToChars(PartitionedTupleDataType case PartitionedTupleDataType::RADIX: return "RADIX"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5297,7 +5297,7 @@ PartitionedTupleDataType EnumUtil::FromString(const ch if (StringUtil::Equals(value, "RADIX")) { return PartitionedTupleDataType::RADIX; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5316,7 +5316,7 @@ const char* EnumUtil::ToChars(PendingExecutionResult val case PendingExecutionResult::EXECUTION_FINISHED: return "EXECUTION_FINISHED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5340,7 +5340,7 @@ PendingExecutionResult EnumUtil::FromString(const char * if (StringUtil::Equals(value, "EXECUTION_FINISHED")) { return PendingExecutionResult::EXECUTION_FINISHED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5503,7 +5503,7 @@ const char* EnumUtil::ToChars(PhysicalOperatorType value) case PhysicalOperatorType::CREATE_SECRET: return "CREATE_SECRET"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5743,7 +5743,7 @@ PhysicalOperatorType EnumUtil::FromString(const char *valu if (StringUtil::Equals(value, "CREATE_SECRET")) { return PhysicalOperatorType::CREATE_SECRET; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5792,7 +5792,7 @@ const char* EnumUtil::ToChars(PhysicalType value) { case PhysicalType::INVALID: return "INVALID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5861,7 +5861,7 @@ PhysicalType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID")) { return PhysicalType::INVALID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5872,7 +5872,7 @@ const char* EnumUtil::ToChars(PragmaType value) { case PragmaType::PRAGMA_CALL: return "PRAGMA_CALL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5884,7 +5884,7 @@ PragmaType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PRAGMA_CALL")) { return PragmaType::PRAGMA_CALL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5899,7 +5899,7 @@ const char* EnumUtil::ToChars(PreparedParamType value) { case PreparedParamType::INVALID: return "INVALID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5917,7 +5917,7 @@ PreparedParamType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID")) { return PreparedParamType::INVALID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5928,7 +5928,7 @@ const char* EnumUtil::ToChars(PreparedStatementMode value case PreparedStatementMode::PREPARE_AND_EXECUTE: return "PREPARE_AND_EXECUTE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5940,7 +5940,7 @@ PreparedStatementMode EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "PREPARE_AND_EXECUTE")) { return PreparedStatementMode::PREPARE_AND_EXECUTE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5955,7 +5955,7 @@ const char* EnumUtil::ToChars(ProfilerPrintFormat value) { case ProfilerPrintFormat::NO_OUTPUT: return "NO_OUTPUT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -5973,7 +5973,7 @@ ProfilerPrintFormat EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "NO_OUTPUT")) { return ProfilerPrintFormat::NO_OUTPUT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -5990,7 +5990,7 @@ const char* EnumUtil::ToChars(QuantileSerializationTy case QuantileSerializationType::DECIMAL_CONTINUOUS_LIST: return "DECIMAL_CONTINUOUS_LIST"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6011,7 +6011,7 @@ QuantileSerializationType EnumUtil::FromString(const if (StringUtil::Equals(value, "DECIMAL_CONTINUOUS_LIST")) { return QuantileSerializationType::DECIMAL_CONTINUOUS_LIST; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6028,7 +6028,7 @@ const char* EnumUtil::ToChars(QueryNodeType value) { case QueryNodeType::CTE_NODE: return "CTE_NODE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6049,7 +6049,7 @@ QueryNodeType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "CTE_NODE")) { return QueryNodeType::CTE_NODE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6064,7 +6064,7 @@ const char* EnumUtil::ToChars(QueryResultType value) { case QueryResultType::ARROW_RESULT: return "ARROW_RESULT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6082,7 +6082,7 @@ QueryResultType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ARROW_RESULT")) { return QueryResultType::ARROW_RESULT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6095,7 +6095,7 @@ const char* EnumUtil::ToChars(QuoteRule value) { case QuoteRule::NO_QUOTES: return "NO_QUOTES"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6110,7 +6110,7 @@ QuoteRule EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "NO_QUOTES")) { return QuoteRule::NO_QUOTES; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6173,7 +6173,7 @@ const char* EnumUtil::ToChars(RelationType value) { case RelationType::DELIM_GET_RELATION: return "DELIM_GET_RELATION"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6263,7 +6263,7 @@ RelationType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DELIM_GET_RELATION")) { return RelationType::DELIM_GET_RELATION; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6274,7 +6274,7 @@ const char* EnumUtil::ToChars(RenderMode value) { case RenderMode::COLUMNS: return "COLUMNS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6286,7 +6286,7 @@ RenderMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "COLUMNS")) { return RenderMode::COLUMNS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6301,7 +6301,7 @@ const char* EnumUtil::ToChars(ResultModifierType value) { case ResultModifierType::LIMIT_PERCENT_MODIFIER: return "LIMIT_PERCENT_MODIFIER"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6319,7 +6319,7 @@ ResultModifierType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "LIMIT_PERCENT_MODIFIER")) { return ResultModifierType::LIMIT_PERCENT_MODIFIER; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6332,7 +6332,7 @@ const char* EnumUtil::ToChars(SampleMethod value) { case SampleMethod::RESERVOIR_SAMPLE: return "Reservoir"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6347,7 +6347,7 @@ SampleMethod EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "Reservoir")) { return SampleMethod::RESERVOIR_SAMPLE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6360,7 +6360,7 @@ const char* EnumUtil::ToChars(SampleType value) { case SampleType::RESERVOIR_PERCENTAGE_SAMPLE: return "RESERVOIR_PERCENTAGE_SAMPLE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6375,7 +6375,7 @@ SampleType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "RESERVOIR_PERCENTAGE_SAMPLE")) { return SampleType::RESERVOIR_PERCENTAGE_SAMPLE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6386,7 +6386,7 @@ const char* EnumUtil::ToChars(ScanType value) { case ScanType::PARQUET: return "PARQUET"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6398,7 +6398,7 @@ ScanType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PARQUET")) { return ScanType::PARQUET; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6409,7 +6409,7 @@ const char* EnumUtil::ToChars(SecretDisplayType value) { case SecretDisplayType::UNREDACTED: return "UNREDACTED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6421,7 +6421,7 @@ SecretDisplayType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "UNREDACTED")) { return SecretDisplayType::UNREDACTED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6434,7 +6434,7 @@ const char* EnumUtil::ToChars(SecretPersistType value) { case SecretPersistType::PERSISTENT: return "PERSISTENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6449,7 +6449,7 @@ SecretPersistType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PERSISTENT")) { return SecretPersistType::PERSISTENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6468,7 +6468,7 @@ const char* EnumUtil::ToChars(SequenceInfo value) { case SequenceInfo::SEQ_OWN: return "SEQ_OWN"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6492,7 +6492,7 @@ SequenceInfo EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SEQ_OWN")) { return SequenceInfo::SEQ_OWN; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6509,7 +6509,7 @@ const char* EnumUtil::ToChars(SetOperationType value) { case SetOperationType::UNION_BY_NAME: return "UNION_BY_NAME"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6530,7 +6530,7 @@ SetOperationType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "UNION_BY_NAME")) { return SetOperationType::UNION_BY_NAME; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6547,7 +6547,7 @@ const char* EnumUtil::ToChars(SetScope value) { case SetScope::VARIABLE: return "VARIABLE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6568,7 +6568,7 @@ SetScope EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "VARIABLE")) { return SetScope::VARIABLE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6579,7 +6579,7 @@ const char* EnumUtil::ToChars(SetType value) { case SetType::RESET: return "RESET"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6591,7 +6591,7 @@ SetType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "RESET")) { return SetType::RESET; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6606,7 +6606,7 @@ const char* EnumUtil::ToChars(SettingScope value) { case SettingScope::INVALID: return "INVALID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6624,7 +6624,7 @@ SettingScope EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID")) { return SettingScope::INVALID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6635,7 +6635,7 @@ const char* EnumUtil::ToChars(ShowType value) { case ShowType::DESCRIBE: return "DESCRIBE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6647,7 +6647,7 @@ ShowType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DESCRIBE")) { return ShowType::DESCRIBE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6666,7 +6666,7 @@ const char* EnumUtil::ToChars(SimplifiedTokenType value) { case SimplifiedTokenType::SIMPLIFIED_TOKEN_COMMENT: return "SIMPLIFIED_TOKEN_COMMENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6690,7 +6690,7 @@ SimplifiedTokenType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "SIMPLIFIED_TOKEN_COMMENT")) { return SimplifiedTokenType::SIMPLIFIED_TOKEN_COMMENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6701,7 +6701,7 @@ const char* EnumUtil::ToChars(SinkCombineResultType value case SinkCombineResultType::BLOCKED: return "BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6713,7 +6713,7 @@ SinkCombineResultType EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "BLOCKED")) { return SinkCombineResultType::BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6726,7 +6726,7 @@ const char* EnumUtil::ToChars(SinkFinalizeType value) { case SinkFinalizeType::BLOCKED: return "BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6741,7 +6741,7 @@ SinkFinalizeType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCKED")) { return SinkFinalizeType::BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6752,7 +6752,7 @@ const char* EnumUtil::ToChars(SinkNextBatchType value) { case SinkNextBatchType::BLOCKED: return "BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6764,7 +6764,7 @@ SinkNextBatchType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCKED")) { return SinkNextBatchType::BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6777,7 +6777,7 @@ const char* EnumUtil::ToChars(SinkResultType value) { case SinkResultType::BLOCKED: return "BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6792,7 +6792,7 @@ SinkResultType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCKED")) { return SinkResultType::BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6805,7 +6805,7 @@ const char* EnumUtil::ToChars(SourceResultType value) { case SourceResultType::BLOCKED: return "BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6820,7 +6820,7 @@ SourceResultType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "BLOCKED")) { return SourceResultType::BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6833,7 +6833,7 @@ const char* EnumUtil::ToChars(StatementReturnType value) { case StatementReturnType::NOTHING: return "NOTHING"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -6848,7 +6848,7 @@ StatementReturnType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "NOTHING")) { return StatementReturnType::NOTHING; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -6915,7 +6915,7 @@ const char* EnumUtil::ToChars(StatementType value) { case StatementType::UPDATE_EXTENSIONS_STATEMENT: return "UPDATE_EXTENSIONS_STATEMENT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7011,7 +7011,7 @@ StatementType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "UPDATE_EXTENSIONS_STATEMENT")) { return StatementType::UPDATE_EXTENSIONS_STATEMENT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7030,7 +7030,7 @@ const char* EnumUtil::ToChars(StatisticsType value) { case StatisticsType::ARRAY_STATS: return "ARRAY_STATS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7054,7 +7054,7 @@ StatisticsType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ARRAY_STATS")) { return StatisticsType::ARRAY_STATS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7071,7 +7071,7 @@ const char* EnumUtil::ToChars(StatsInfo value) { case StatsInfo::CAN_HAVE_NULL_AND_VALID_VALUES: return "CAN_HAVE_NULL_AND_VALID_VALUES"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7092,7 +7092,7 @@ StatsInfo EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "CAN_HAVE_NULL_AND_VALID_VALUES")) { return StatsInfo::CAN_HAVE_NULL_AND_VALID_VALUES; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7171,7 +7171,7 @@ const char* EnumUtil::ToChars(StrTimeSpecifier value) { case StrTimeSpecifier::WEEK_NUMBER_ISO: return "WEEK_NUMBER_ISO"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7285,7 +7285,7 @@ StrTimeSpecifier EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "WEEK_NUMBER_ISO")) { return StrTimeSpecifier::WEEK_NUMBER_ISO; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7306,7 +7306,7 @@ const char* EnumUtil::ToChars(StreamExecutionResult value case StreamExecutionResult::EXECUTION_FINISHED: return "EXECUTION_FINISHED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7333,7 +7333,7 @@ StreamExecutionResult EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "EXECUTION_FINISHED")) { return StreamExecutionResult::EXECUTION_FINISHED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7350,7 +7350,7 @@ const char* EnumUtil::ToChars(SubqueryType value) { case SubqueryType::ANY: return "ANY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7371,7 +7371,7 @@ SubqueryType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ANY")) { return SubqueryType::ANY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7382,7 +7382,7 @@ const char* EnumUtil::ToChars(TableColumnType value) { case TableColumnType::GENERATED: return "GENERATED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7394,7 +7394,7 @@ TableColumnType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "GENERATED")) { return TableColumnType::GENERATED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7413,7 +7413,7 @@ const char* EnumUtil::ToChars(TableFilterType value) { case TableFilterType::STRUCT_EXTRACT: return "STRUCT_EXTRACT"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7437,7 +7437,7 @@ TableFilterType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "STRUCT_EXTRACT")) { return TableFilterType::STRUCT_EXTRACT; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7468,7 +7468,7 @@ const char* EnumUtil::ToChars(TableReferenceType value) { case TableReferenceType::DELIM_GET: return "DELIM_GET"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7510,7 +7510,7 @@ TableReferenceType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "DELIM_GET")) { return TableReferenceType::DELIM_GET; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7527,7 +7527,7 @@ const char* EnumUtil::ToChars(TableScanType value) { case TableScanType::TABLE_SCAN_LATEST_COMMITTED_ROWS: return "TABLE_SCAN_LATEST_COMMITTED_ROWS"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7548,7 +7548,7 @@ TableScanType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "TABLE_SCAN_LATEST_COMMITTED_ROWS")) { return TableScanType::TABLE_SCAN_LATEST_COMMITTED_ROWS; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7559,7 +7559,7 @@ const char* EnumUtil::ToChars(TaskExecutionMode value) { case TaskExecutionMode::PROCESS_PARTIAL: return "PROCESS_PARTIAL"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7571,7 +7571,7 @@ TaskExecutionMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "PROCESS_PARTIAL")) { return TaskExecutionMode::PROCESS_PARTIAL; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7586,7 +7586,7 @@ const char* EnumUtil::ToChars(TaskExecutionResult value) { case TaskExecutionResult::TASK_BLOCKED: return "TASK_BLOCKED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7604,7 +7604,7 @@ TaskExecutionResult EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "TASK_BLOCKED")) { return TaskExecutionResult::TASK_BLOCKED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7617,7 +7617,7 @@ const char* EnumUtil::ToChars(TimestampCastResult value) { case TimestampCastResult::ERROR_NON_UTC_TIMEZONE: return "ERROR_NON_UTC_TIMEZONE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7632,7 +7632,7 @@ TimestampCastResult EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "ERROR_NON_UTC_TIMEZONE")) { return TimestampCastResult::ERROR_NON_UTC_TIMEZONE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7645,7 +7645,7 @@ const char* EnumUtil::ToChars(TransactionModifierType v case TransactionModifierType::TRANSACTION_READ_WRITE: return "TRANSACTION_READ_WRITE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7660,7 +7660,7 @@ TransactionModifierType EnumUtil::FromString(const char if (StringUtil::Equals(value, "TRANSACTION_READ_WRITE")) { return TransactionModifierType::TRANSACTION_READ_WRITE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7675,7 +7675,7 @@ const char* EnumUtil::ToChars(TransactionType value) { case TransactionType::ROLLBACK: return "ROLLBACK"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7693,7 +7693,7 @@ TransactionType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ROLLBACK")) { return TransactionType::ROLLBACK; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7710,7 +7710,7 @@ const char* EnumUtil::ToChars(TupleDataPinProperties val case TupleDataPinProperties::ALREADY_PINNED: return "ALREADY_PINNED"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7731,7 +7731,7 @@ TupleDataPinProperties EnumUtil::FromString(const char * if (StringUtil::Equals(value, "ALREADY_PINNED")) { return TupleDataPinProperties::ALREADY_PINNED; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7750,7 +7750,7 @@ const char* EnumUtil::ToChars(UndoFlags value) { case UndoFlags::SEQUENCE_VALUE: return "SEQUENCE_VALUE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7774,7 +7774,7 @@ UndoFlags EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SEQUENCE_VALUE")) { return UndoFlags::SEQUENCE_VALUE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7793,7 +7793,7 @@ const char* EnumUtil::ToChars(UnionInvalidReason value) { case UnionInvalidReason::NULL_TAG: return "NULL_TAG"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7817,7 +7817,7 @@ UnionInvalidReason EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "NULL_TAG")) { return UnionInvalidReason::NULL_TAG; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7826,7 +7826,7 @@ const char* EnumUtil::ToChars(VectorAuxiliaryDataType v case VectorAuxiliaryDataType::ARROW_AUXILIARY: return "ARROW_AUXILIARY"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7835,7 +7835,7 @@ VectorAuxiliaryDataType EnumUtil::FromString(const char if (StringUtil::Equals(value, "ARROW_AUXILIARY")) { return VectorAuxiliaryDataType::ARROW_AUXILIARY; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7862,7 +7862,7 @@ const char* EnumUtil::ToChars(VectorBufferType value) { case VectorBufferType::ARRAY_BUFFER: return "ARRAY_BUFFER"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7898,7 +7898,7 @@ VectorBufferType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "ARRAY_BUFFER")) { return VectorBufferType::ARRAY_BUFFER; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7915,7 +7915,7 @@ const char* EnumUtil::ToChars(VectorType value) { case VectorType::SEQUENCE_VECTOR: return "SEQUENCE_VECTOR"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7936,7 +7936,7 @@ VectorType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "SEQUENCE_VECTOR")) { return VectorType::SEQUENCE_VECTOR; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -7963,7 +7963,7 @@ const char* EnumUtil::ToChars(VerificationType value) { case VerificationType::INVALID: return "INVALID"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -7999,7 +7999,7 @@ VerificationType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "INVALID")) { return VerificationType::INVALID; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -8012,7 +8012,7 @@ const char* EnumUtil::ToChars(VerifyExistenceType value) { case VerifyExistenceType::DELETE_FK: return "DELETE_FK"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -8027,7 +8027,7 @@ VerifyExistenceType EnumUtil::FromString(const char *value) if (StringUtil::Equals(value, "DELETE_FK")) { return VerifyExistenceType::DELETE_FK; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -8088,7 +8088,7 @@ const char* EnumUtil::ToChars(WALType value) { case WALType::WAL_FLUSH: return "WAL_FLUSH"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -8175,7 +8175,7 @@ WALType EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "WAL_FLUSH")) { return WALType::WAL_FLUSH; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -8188,7 +8188,7 @@ const char* EnumUtil::ToChars(WindowAggregationMode value case WindowAggregationMode::SEPARATE: return "SEPARATE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -8203,7 +8203,7 @@ WindowAggregationMode EnumUtil::FromString(const char *va if (StringUtil::Equals(value, "SEPARATE")) { return WindowAggregationMode::SEPARATE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -8228,7 +8228,7 @@ const char* EnumUtil::ToChars(WindowBoundary value) { case WindowBoundary::EXPR_FOLLOWING_RANGE: return "EXPR_FOLLOWING_RANGE"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -8261,7 +8261,7 @@ WindowBoundary EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "EXPR_FOLLOWING_RANGE")) { return WindowBoundary::EXPR_FOLLOWING_RANGE; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } template<> @@ -8276,7 +8276,7 @@ const char* EnumUtil::ToChars(WindowExcludeMode value) { case WindowExcludeMode::TIES: return "TIES"; default: - throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%d' not implemented in ToChars", value)); } } @@ -8294,7 +8294,7 @@ WindowExcludeMode EnumUtil::FromString(const char *value) { if (StringUtil::Equals(value, "TIES")) { return WindowExcludeMode::TIES; } - throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented", value)); + throw NotImplementedException(StringUtil::Format("Enum value: '%s' not implemented in FromString", value)); } } diff --git a/src/duckdb/src/function/table/version/pragma_version.cpp b/src/duckdb/src/function/table/version/pragma_version.cpp index 083c1863..189b4186 100644 --- a/src/duckdb/src/function/table/version/pragma_version.cpp +++ b/src/duckdb/src/function/table/version/pragma_version.cpp @@ -1,5 +1,5 @@ #ifndef DUCKDB_PATCH_VERSION -#define DUCKDB_PATCH_VERSION "1-dev64" +#define DUCKDB_PATCH_VERSION "1-dev100" #endif #ifndef DUCKDB_MINOR_VERSION #define DUCKDB_MINOR_VERSION 1 @@ -8,10 +8,10 @@ #define DUCKDB_MAJOR_VERSION 1 #endif #ifndef DUCKDB_VERSION -#define DUCKDB_VERSION "v1.1.1-dev64" +#define DUCKDB_VERSION "v1.1.1-dev100" #endif #ifndef DUCKDB_SOURCE_ID -#define DUCKDB_SOURCE_ID "e2b177b759" +#define DUCKDB_SOURCE_ID "9af117f0e6" #endif #include "duckdb/function/table/system_functions.hpp" #include "duckdb/main/database.hpp" diff --git a/src/duckdb/src/include/duckdb.h b/src/duckdb/src/include/duckdb.h index b66253fc..e2ece7aa 100644 --- a/src/duckdb/src/include/duckdb.h +++ b/src/duckdb/src/include/duckdb.h @@ -866,8 +866,8 @@ Returns the number of rows present in the result object. * @return The number of rows present in the result object. */ DUCKDB_API idx_t duckdb_row_count(duckdb_result *result); -#endif +#endif /*! Returns the number of rows changed by the query stored in the result. This is relevant only for INSERT/UPDATE/DELETE queries. For other queries the rows_changed will be 0. @@ -898,9 +898,7 @@ printf("Data for row %d: %d\n", row, data[row]); * @return The column data of the specified column. */ DUCKDB_API void *duckdb_column_data(duckdb_result *result, idx_t col); -#endif -#ifndef DUCKDB_API_NO_DEPRECATED /*! **DEPRECATED**: Prefer using `duckdb_result_get_chunk` instead. @@ -923,8 +921,8 @@ if (nullmask[row]) { * @return The nullmask of the specified column. */ DUCKDB_API bool *duckdb_nullmask_data(duckdb_result *result, idx_t col); -#endif +#endif /*! Returns the error message contained within the result. The error is only set if `duckdb_query` returns `DuckDBError`. @@ -990,6 +988,7 @@ Returns the number of data chunks present in the result. */ DUCKDB_API idx_t duckdb_result_chunk_count(duckdb_result result); +#endif /*! Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on error @@ -998,7 +997,6 @@ Returns the return_type of the given result, or DUCKDB_RETURN_TYPE_INVALID on er */ DUCKDB_API duckdb_result_type duckdb_result_return_type(duckdb_result result); -#endif //===--------------------------------------------------------------------===// // Safe Fetch Functions //===--------------------------------------------------------------------===// @@ -1663,8 +1661,8 @@ Note that the result must be freed with `duckdb_destroy_result`. */ DUCKDB_API duckdb_state duckdb_execute_prepared_streaming(duckdb_prepared_statement prepared_statement, duckdb_result *out_result); -#endif +#endif //===--------------------------------------------------------------------===// // Extract Statements //===--------------------------------------------------------------------===// @@ -1754,8 +1752,8 @@ Note that after calling `duckdb_pending_prepared_streaming`, the pending result */ DUCKDB_API duckdb_state duckdb_pending_prepared_streaming(duckdb_prepared_statement prepared_statement, duckdb_pending_result *out_result); -#endif +#endif /*! Closes the pending result and de-allocates all memory allocated for the result. @@ -4038,8 +4036,8 @@ It is not known beforehand how many chunks will be returned by this result. * @return The resulting data chunk. Returns `NULL` if the result has an error. */ DUCKDB_API duckdb_data_chunk duckdb_stream_fetch_chunk(duckdb_result result); -#endif +#endif /*! Fetches a data chunk from a duckdb_result. This function should be called repeatedly until the result is exhausted. diff --git a/src/duckdb/src/include/duckdb/main/config.hpp b/src/duckdb/src/include/duckdb/main/config.hpp index 15ba0286..162109ba 100644 --- a/src/duckdb/src/include/duckdb/main/config.hpp +++ b/src/duckdb/src/include/duckdb/main/config.hpp @@ -245,7 +245,7 @@ struct DBConfigOptions { //! The peak allocation threshold at which to flush the allocator after completing a task (1 << 27, ~128MB) idx_t allocator_flush_threshold = 134217728ULL; //! If bulk deallocation larger than this occurs, flush outstanding allocations (1 << 30, ~1GB) - idx_t allocator_bulk_deallocation_flush_threshold = 1073741824ULL; + idx_t allocator_bulk_deallocation_flush_threshold = 536870912ULL; //! Whether the allocator background thread is enabled bool allocator_background_threads = false; //! DuckDB API surface diff --git a/src/duckdb/src/include/duckdb/main/extension.hpp b/src/duckdb/src/include/duckdb/main/extension.hpp index 766faf0a..15408048 100644 --- a/src/duckdb/src/include/duckdb/main/extension.hpp +++ b/src/duckdb/src/include/duckdb/main/extension.hpp @@ -50,6 +50,7 @@ struct ParsedExtensionMetaData { string duckdb_capi_version; string extension_version; string signature; + string extension_abi_metadata; bool AppearsValid() { return magic_value == EXPECTED_MAGIC_VALUE; diff --git a/src/duckdb/src/include/duckdb/main/extension_helper.hpp b/src/duckdb/src/include/duckdb/main/extension_helper.hpp index d9e2b86e..22b0e1b2 100644 --- a/src/duckdb/src/include/duckdb/main/extension_helper.hpp +++ b/src/duckdb/src/include/duckdb/main/extension_helper.hpp @@ -124,7 +124,7 @@ class ExtensionHelper { static bool CheckExtensionSignature(FileHandle &handle, ParsedExtensionMetaData &parsed_metadata, const bool allow_community_extensions); - static ParsedExtensionMetaData ParseExtensionMetaData(const char *metadata); + static ParsedExtensionMetaData ParseExtensionMetaData(const char *metadata) noexcept; static ParsedExtensionMetaData ParseExtensionMetaData(FileHandle &handle); //! Get the extension url template, containing placeholders for version, platform and extension name diff --git a/src/duckdb/src/include/duckdb/main/settings.hpp b/src/duckdb/src/include/duckdb/main/settings.hpp index 538a75b8..f3f7ab6d 100644 --- a/src/duckdb/src/include/duckdb/main/settings.hpp +++ b/src/duckdb/src/include/duckdb/main/settings.hpp @@ -506,7 +506,7 @@ struct HTTPProxyUsername { }; struct HTTPProxyPassword { - static constexpr const char *Name = "http_proxy"; + static constexpr const char *Name = "http_proxy_password"; static constexpr const char *Description = "Password for HTTP proxy"; static constexpr const LogicalTypeId InputType = LogicalTypeId::VARCHAR; static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value ¶meter); @@ -596,7 +596,9 @@ struct StreamingBufferSize { struct MaximumTempDirectorySize { static constexpr const char *Name = "max_temp_directory_size"; static constexpr const char *Description = - "The maximum amount of data stored inside the 'temp_directory' (when set) (e.g. 1GB)"; + "The maximum amount of data stored inside the 'temp_directory' (when set). If the `temp_directory` is set to " + "an existing directory, this option defaults to the available disk space on " + "that drive. Otherwise, it defaults to 0 (implying that the temporary directory is not used)."; static constexpr const LogicalTypeId InputType = LogicalTypeId::VARCHAR; static void SetGlobal(DatabaseInstance *db, DBConfig &config, const Value ¶meter); static void ResetGlobal(DatabaseInstance *db, DBConfig &config); diff --git a/src/duckdb/src/include/duckdb/storage/buffer/buffer_pool.hpp b/src/duckdb/src/include/duckdb/storage/buffer/buffer_pool.hpp index bf26f80b..955f1aa4 100644 --- a/src/duckdb/src/include/duckdb/storage/buffer/buffer_pool.hpp +++ b/src/duckdb/src/include/duckdb/storage/buffer/buffer_pool.hpp @@ -41,7 +41,7 @@ class BufferPool { friend class StandardBufferManager; public: - explicit BufferPool(idx_t maximum_memory, bool track_eviction_timestamps); + BufferPool(idx_t maximum_memory, bool track_eviction_timestamps, idx_t allocator_bulk_deallocation_flush_threshold); virtual ~BufferPool(); //! Set a new memory limit to the buffer pool, throws an exception if the new limit is too low and not enough diff --git a/src/duckdb/src/main/database.cpp b/src/duckdb/src/main/database.cpp index 0d13aece..4308c4a0 100644 --- a/src/duckdb/src/main/database.cpp +++ b/src/duckdb/src/main/database.cpp @@ -2,29 +2,29 @@ #include "duckdb/catalog/catalog.hpp" #include "duckdb/common/virtual_file_system.hpp" +#include "duckdb/execution/index/index_type_set.hpp" #include "duckdb/execution/operator/helper/physical_set.hpp" #include "duckdb/function/cast/cast_function_set.hpp" #include "duckdb/function/compression_function.hpp" #include "duckdb/main/attached_database.hpp" #include "duckdb/main/client_context.hpp" #include "duckdb/main/connection_manager.hpp" +#include "duckdb/main/database_file_opener.hpp" #include "duckdb/main/database_manager.hpp" #include "duckdb/main/database_path_and_type.hpp" +#include "duckdb/main/db_instance_cache.hpp" #include "duckdb/main/error_manager.hpp" #include "duckdb/main/extension_helper.hpp" #include "duckdb/main/secret/secret_manager.hpp" #include "duckdb/parallel/task_scheduler.hpp" #include "duckdb/parser/parsed_data/attach_info.hpp" +#include "duckdb/planner/collation_binding.hpp" #include "duckdb/planner/extension_callback.hpp" #include "duckdb/storage/object_cache.hpp" #include "duckdb/storage/standard_buffer_manager.hpp" #include "duckdb/storage/storage_extension.hpp" #include "duckdb/storage/storage_manager.hpp" #include "duckdb/transaction/transaction_manager.hpp" -#include "duckdb/execution/index/index_type_set.hpp" -#include "duckdb/main/database_file_opener.hpp" -#include "duckdb/planner/collation_binding.hpp" -#include "duckdb/main/db_instance_cache.hpp" #ifndef DUCKDB_NO_THREADS #include "duckdb/common/thread.hpp" @@ -436,7 +436,8 @@ void DatabaseInstance::Configure(DBConfig &new_config, const char *database_path config.buffer_pool = std::move(new_config.buffer_pool); } else { config.buffer_pool = make_shared_ptr(config.options.maximum_memory, - config.options.buffer_manager_track_eviction_timestamps); + config.options.buffer_manager_track_eviction_timestamps, + config.options.allocator_bulk_deallocation_flush_threshold); } } diff --git a/src/duckdb/src/main/extension.cpp b/src/duckdb/src/main/extension.cpp index db150a3e..7eba4e48 100644 --- a/src/duckdb/src/main/extension.cpp +++ b/src/duckdb/src/main/extension.cpp @@ -62,7 +62,7 @@ string ParsedExtensionMetaData::GetInvalidMetadataError() { DUCKDB_EXTENSION_API_VERSION_MINOR, DUCKDB_EXTENSION_API_VERSION_PATCH); } } else { - throw InternalException("Unknown ABI type for extension: " + EnumUtil::ToString(abi_type)); + throw InternalException("Unknown ABI type for extension: " + extension_abi_metadata); } if (engine_platform != platform) { diff --git a/src/duckdb/src/main/extension/extension_load.cpp b/src/duckdb/src/main/extension/extension_load.cpp index d7168ff9..c0a37ea9 100644 --- a/src/duckdb/src/main/extension/extension_load.cpp +++ b/src/duckdb/src/main/extension/extension_load.cpp @@ -173,7 +173,7 @@ static string FilterZeroAtEnd(string s) { return s; } -ParsedExtensionMetaData ExtensionHelper::ParseExtensionMetaData(const char *metadata) { +ParsedExtensionMetaData ExtensionHelper::ParseExtensionMetaData(const char *metadata) noexcept { ParsedExtensionMetaData result; vector metadata_field; @@ -194,12 +194,18 @@ ParsedExtensionMetaData ExtensionHelper::ParseExtensionMetaData(const char *meta result.extension_version = FilterZeroAtEnd(metadata_field[3]); - result.abi_type = EnumUtil::FromString(FilterZeroAtEnd(metadata_field[4])); + auto extension_abi_metadata = FilterZeroAtEnd(metadata_field[4]); - if (result.abi_type == ExtensionABIType::C_STRUCT) { + if (extension_abi_metadata == "C_STRUCT") { + result.abi_type = ExtensionABIType::C_STRUCT; result.duckdb_capi_version = FilterZeroAtEnd(metadata_field[2]); - } else if (result.abi_type == ExtensionABIType::CPP) { + } else if (extension_abi_metadata == "CPP" || extension_abi_metadata.empty()) { + result.abi_type = ExtensionABIType::CPP; result.duckdb_version = FilterZeroAtEnd(metadata_field[2]); + } else { + result.abi_type = ExtensionABIType::UNKNOWN; + result.duckdb_version = "unknown"; + result.extension_abi_metadata = extension_abi_metadata; } result.signature = string(metadata, ParsedExtensionMetaData::FOOTER_SIZE - ParsedExtensionMetaData::SIGNATURE_SIZE); diff --git a/src/duckdb/src/optimizer/join_order/relation_manager.cpp b/src/duckdb/src/optimizer/join_order/relation_manager.cpp index 319c88e2..0cc72024 100644 --- a/src/duckdb/src/optimizer/join_order/relation_manager.cpp +++ b/src/duckdb/src/optimizer/join_order/relation_manager.cpp @@ -85,6 +85,7 @@ static bool OperatorNeedsRelation(LogicalOperatorType op_type) { case LogicalOperatorType::LOGICAL_PROJECTION: case LogicalOperatorType::LOGICAL_EXPRESSION_GET: case LogicalOperatorType::LOGICAL_GET: + case LogicalOperatorType::LOGICAL_UNNEST: case LogicalOperatorType::LOGICAL_DELIM_GET: case LogicalOperatorType::LOGICAL_AGGREGATE_AND_GROUP_BY: case LogicalOperatorType::LOGICAL_WINDOW: @@ -269,6 +270,20 @@ bool RelationManager::ExtractJoinRelations(JoinOrderOptimizer &optimizer, Logica AddAggregateOrWindowRelation(input_op, parent, operator_stats, op->type); return true; } + case LogicalOperatorType::LOGICAL_UNNEST: { + // optimize children of unnest + RelationStats child_stats; + auto child_optimizer = optimizer.CreateChildOptimizer(); + op->children[0] = child_optimizer.Optimize(std::move(op->children[0]), &child_stats); + // the extracted cardinality should be set for window + if (!datasource_filters.empty()) { + child_stats.cardinality = LossyNumericCast(static_cast(child_stats.cardinality) * + RelationStatisticsHelper::DEFAULT_SELECTIVITY); + } + ModifyStatsIfLimit(limit_op.get(), child_stats); + AddRelation(input_op, parent, child_stats); + return true; + } case LogicalOperatorType::LOGICAL_COMPARISON_JOIN: { auto &join = op->Cast(); // Adding relations of the left side to the current join order optimizer diff --git a/src/duckdb/src/planner/binder.cpp b/src/duckdb/src/planner/binder.cpp index fa490303..ea751bad 100644 --- a/src/duckdb/src/planner/binder.cpp +++ b/src/duckdb/src/planner/binder.cpp @@ -6,6 +6,7 @@ #include "duckdb/common/enum_util.hpp" #include "duckdb/common/helper.hpp" #include "duckdb/main/config.hpp" +#include "duckdb/main/database.hpp" #include "duckdb/parser/expression/function_expression.hpp" #include "duckdb/parser/expression/subquery_expression.hpp" #include "duckdb/parser/parsed_expression_iterator.hpp" @@ -21,7 +22,6 @@ #include "duckdb/planner/operator/logical_sample.hpp" #include "duckdb/planner/query_node/list.hpp" #include "duckdb/planner/tableref/list.hpp" -#include "duckdb/main/database.hpp" #include @@ -134,10 +134,8 @@ BoundStatement Binder::BindWithCTE(T &statement) { } MoveCorrelatedExpressions(*tail.child_binder); - // extract operator below root operation - auto plan = std::move(bound_statement.plan->children[0]); - bound_statement.plan->children.clear(); - bound_statement.plan->children.push_back(CreatePlan(*bound_cte, std::move(plan))); + auto plan = std::move(bound_statement.plan); + bound_statement.plan = CreatePlan(*bound_cte, std::move(plan)); } else { bound_statement = Bind(statement.template Cast()); } diff --git a/src/duckdb/src/planner/binder/statement/bind_copy_database.cpp b/src/duckdb/src/planner/binder/statement/bind_copy_database.cpp index 34b61528..0c53ea78 100644 --- a/src/duckdb/src/planner/binder/statement/bind_copy_database.cpp +++ b/src/duckdb/src/planner/binder/statement/bind_copy_database.cpp @@ -54,7 +54,7 @@ unique_ptr Binder::BindCopyDatabaseData(Catalog &source_catalog ExportEntries entries; PhysicalExport::ExtractEntries(context, source_schemas, entries); - unique_ptr result; + vector> insert_nodes; for (auto &table_ref : entries.tables) { auto &table = table_ref.get().Cast(); // generate the insert statement @@ -82,17 +82,10 @@ unique_ptr Binder::BindCopyDatabaseData(Catalog &source_catalog insert_stmt.select_statement = std::move(select_stmt); auto bound_insert = Bind(insert_stmt); auto insert_plan = std::move(bound_insert.plan); - if (result) { - // use UNION ALL to combine the individual copy statements into a single node - auto copy_union = - make_uniq(GenerateTableIndex(), 1U, std::move(insert_plan), std::move(result), - LogicalOperatorType::LOGICAL_UNION, true, false); - result = std::move(copy_union); - } else { - result = std::move(insert_plan); - } + insert_nodes.push_back(std::move(insert_plan)); } - if (!result) { + unique_ptr result; + if (insert_nodes.empty()) { vector result_types; result_types.push_back(LogicalType::BIGINT); vector> expression_list; @@ -101,6 +94,23 @@ unique_ptr Binder::BindCopyDatabaseData(Catalog &source_catalog expressions.push_back(std::move(expression_list)); result = make_uniq(GenerateTableIndex(), std::move(result_types), std::move(expressions)); result->children.push_back(make_uniq(GenerateTableIndex())); + } else { + // use UNION ALL to combine the individual copy statements into a single node + while (insert_nodes.size() > 1) { + vector> new_nodes; + for (idx_t i = 0; i < insert_nodes.size(); i += 2) { + if (i + 1 == insert_nodes.size()) { + new_nodes.push_back(std::move(insert_nodes[i])); + } else { + auto copy_union = make_uniq( + GenerateTableIndex(), 1U, std::move(insert_nodes[i]), std::move(insert_nodes[i + 1]), + LogicalOperatorType::LOGICAL_UNION, true, false); + new_nodes.push_back(std::move(copy_union)); + } + } + insert_nodes = std::move(new_nodes); + } + result = std::move(insert_nodes[0]); } return result; } diff --git a/src/duckdb/src/storage/buffer/buffer_pool.cpp b/src/duckdb/src/storage/buffer/buffer_pool.cpp index 76382fdf..3e7e11c4 100644 --- a/src/duckdb/src/storage/buffer/buffer_pool.cpp +++ b/src/duckdb/src/storage/buffer/buffer_pool.cpp @@ -194,8 +194,11 @@ void EvictionQueue::PurgeIteration(const idx_t purge_size) { total_dead_nodes -= actually_dequeued - alive_nodes; } -BufferPool::BufferPool(idx_t maximum_memory, bool track_eviction_timestamps) - : maximum_memory(maximum_memory), track_eviction_timestamps(track_eviction_timestamps), +BufferPool::BufferPool(idx_t maximum_memory, bool track_eviction_timestamps, + idx_t allocator_bulk_deallocation_flush_threshold) + : maximum_memory(maximum_memory), + allocator_bulk_deallocation_flush_threshold(allocator_bulk_deallocation_flush_threshold), + track_eviction_timestamps(track_eviction_timestamps), temporary_memory_manager(make_uniq()) { queues.reserve(FILE_BUFFER_TYPE_COUNT); for (idx_t i = 0; i < FILE_BUFFER_TYPE_COUNT; i++) { @@ -283,6 +286,9 @@ BufferPool::EvictionResult BufferPool::EvictBlocksInternal(EvictionQueue &queue, bool found = false; if (memory_usage.GetUsedMemory(MemoryUsageCaches::NO_FLUSH) <= memory_limit) { + if (Allocator::SupportsFlush() && extra_memory > allocator_bulk_deallocation_flush_threshold) { + Allocator::FlushAll(); + } return {true, std::move(r)}; }