Open vikramsubramanian opened 4 months ago
Summary: Error occurs when using REL TABLE GROUP
with multiple rel labels or bound by multiple node labels in Cypher.
Based on the provided information, the issue seems to be related to the CREATE REL TABLE GROUP
functionality, which does not support creating relationships with multiple labels or relationships that are bound by nodes with multiple labels. To resolve this issue, follow these steps:
bindCreateRelTableGroupInfo
function in src/binder/bind/bind_ddl.cpp
to check for duplicate relationship labels or node labels in the srcDstTablePairs
before creating the relationship group.BinderException
with a clear message indicating that creating a relationship group with multiple identical relationship labels or node labels is not supported.CREATE REL TABLE GROUP
logic.transformCreateRelTableGroup
function in src/parser/transform/transform_ddl.cpp
correctly parses and transforms the CREATE REL TABLE GROUP
statement to handle multiple labels if the design is changed to support them.CreateRelTableGroup::executeDDLInternal
method in src/include/processor/operator/ddl/create_rel_table_group.h
to execute the DDL operation according to the new logic.test/ddl/e2e_ddl_test.cpp
to cover cases where multiple labels are used with CREATE REL TABLE GROUP
to ensure that the new functionality works as expected or that the appropriate error is thrown if not supported.Remember to follow the project's coding standards and guidelines for naming, error handling, and testing when making these changes.
src/parser/transform/transform_ddl.cpp
This snippet contains the transformation logic for creating a REL TABLE GROUP, which is directly related to the issue reported.
src/binder/bind/bind_updating_clause.cpp
This snippet contains the binder logic that throws the exception mentioned in the issue when trying to create a relationship with multiple labels or bound by multiple node labels.
This snippet contains the binding logic for creating a REL TABLE GROUP, which may need to be reviewed to ensure that the creation process aligns with the expected behavior.
Version: v0.1.0
REL TABLE GROUP
seems not equivalent to separately definedREL
s.This errors:
This works:
)