diff --git a/src/include/duckdb/parser/parsed_data/create_property_graph_info.hpp b/src/include/duckdb/parser/parsed_data/create_property_graph_info.hpp index c5fa3396f2d..fa1a97c6fd2 100644 --- a/src/include/duckdb/parser/parsed_data/create_property_graph_info.hpp +++ b/src/include/duckdb/parser/parsed_data/create_property_graph_info.hpp @@ -34,8 +34,6 @@ struct CreatePropertyGraphInfo : public CreateInfo { //! Dictionary to point label to vector or edge table case_insensitive_map_t> label_map; - case_insensitive_map_t table_alias_map; - public: unique_ptr Copy() const override; diff --git a/src/parser/parsed_data/create_property_graph_info.cpp b/src/parser/parsed_data/create_property_graph_info.cpp index ac619890ef2..b4af4a89aab 100644 --- a/src/parser/parsed_data/create_property_graph_info.cpp +++ b/src/parser/parsed_data/create_property_graph_info.cpp @@ -33,7 +33,6 @@ unique_ptr CreatePropertyGraphInfo::Copy() const { result->label_map[copied_edge_table->main_label] = copied_edge_table; result->edge_tables.push_back(std::move(copied_edge_table)); } - result->table_alias_map.insert(table_alias_map.begin(), table_alias_map.end()); return std::move(result); } @@ -49,7 +48,6 @@ void CreatePropertyGraphInfo::Serialize(Serializer &serializer) const { list.WriteObject([&](Serializer &obj) { entry->Serialize(obj); }); }); serializer.WriteProperty(103, "label_map", label_map); - serializer.WriteProperty(104, "table_alias_map", table_alias_map); } unique_ptr CreatePropertyGraphInfo::Deserialize(Deserializer &deserializer) { @@ -63,7 +61,6 @@ unique_ptr CreatePropertyGraphInfo::Deserialize(Deserializer &deseri }); deserializer.ReadProperty(103, "label_map", result->label_map); - deserializer.ReadProperty(104, "table_alias_map", result->table_alias_map); return std::move(result); } diff --git a/src/parser/transform/statement/transform_create_property_graph.cpp b/src/parser/transform/statement/transform_create_property_graph.cpp index 033bc7d6eaa..106c6089742 100644 --- a/src/parser/transform/statement/transform_create_property_graph.cpp +++ b/src/parser/transform/statement/transform_create_property_graph.cpp @@ -129,7 +129,7 @@ Transformer::TransformCreatePropertyGraph(duckdb_libpgquery::PGCreatePropertyGra auto info = make_uniq(); case_insensitive_set_t global_label_set; - + case_insensitive_map_t table_alias_map; auto property_graph_name = TransformQualifiedName(*stmt.name); info->property_graph_name = property_graph_name.name; @@ -141,7 +141,7 @@ Transformer::TransformCreatePropertyGraph(duckdb_libpgquery::PGCreatePropertyGra throw NotImplementedException("CreatePropertyGraphTable not implemented."); } auto graph_table = reinterpret_cast(vertex_table->data.ptr_value); - auto pg_table = TransformPropertyGraphTable(graph_table, global_label_set, info->table_alias_map); + auto pg_table = TransformPropertyGraphTable(graph_table, global_label_set, table_alias_map); for (auto &label : pg_table->sub_labels) { info->label_map[label] = pg_table; } @@ -158,7 +158,7 @@ Transformer::TransformCreatePropertyGraph(duckdb_libpgquery::PGCreatePropertyGra throw NotImplementedException("CreatePropertyGraphTable not implemented."); } auto graph_table = reinterpret_cast(edge_table->data.ptr_value); - auto pg_table = TransformPropertyGraphTable(graph_table, global_label_set, info->table_alias_map); + auto pg_table = TransformPropertyGraphTable(graph_table, global_label_set, table_alias_map); for (auto &label : pg_table->sub_labels) { info->label_map[label] = pg_table; } diff --git a/src/parser/transform/tableref/transform_match.cpp b/src/parser/transform/tableref/transform_match.cpp index cc9bd82239f..8ba8442da96 100644 --- a/src/parser/transform/tableref/transform_match.cpp +++ b/src/parser/transform/tableref/transform_match.cpp @@ -44,7 +44,7 @@ unique_ptr Transformer::TransformSubPathElement(duckdb_libpgquery::PGSu result->where_clause = TransformExpression(root->where_clause); if (root->lower > root->upper) { - throw ConstraintException("lower bound greater than upper bound"); + throw ConstraintException("Lower bound greater than upper bound"); } result->lower = root->lower; result->upper = root->upper;