Closed Dtenwolde closed 11 months ago
You should be able to use the table_alias, but maybe it's best to translate this under the hood as soon as possible to reference the real table name. We should keep track of what aliases have been registered and upon seeing new tables, check if their source/destination references match an alias. In that case, don't use the alias but register the real table name.
During CREATE
only an edge table can reference a vertex table with an alias. ~During MATCH
both ()
and []
can use an alias. In both cases, we should catch this in the transformer and translate.~
In this case we have a table student, having the alias student_alias. The alias should then be able to be used in the source and destination key definition.
Current behaviour:
Binder Error: Referenced vertex table Student_alias does not exist.
Expected behaviour: No error