-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve tryParsePropertyGraphElementKeys
- Loading branch information
Showing
8 changed files
with
521 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
testdata/input/ddl/create_or_replace_property_graph_fingraph_verbose.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
CREATE OR REPLACE PROPERTY GRAPH FinGraph | ||
NODE TABLES ( | ||
Account AS Account -- element_alias | ||
KEY (id) -- element_key in node_element_key in element_keys | ||
-- label_and_property_list | ||
LABEL DetailedAccount -- LABEL label_name in element_label | ||
PROPERTIES (create_time, is_blocked, nick_name AS name) -- derived_property_list | ||
DEFAULT LABEL -- DEFAULT LABEL in element_label | ||
NO PROPERTIES -- NO PROPERTIES in element_properties | ||
, | ||
Person | ||
-- no element_keys | ||
-- no element_label because of direct element_properties | ||
PROPERTIES ARE ALL COLUMNS EXCEPT (city) -- properties_are | ||
) | ||
EDGE TABLES ( | ||
PersonOwnAccount AS PersonOwnAccount | ||
KEY (id, account_id) | ||
SOURCE KEY (id) REFERENCES Person -- source_key without column_name_list | ||
DESTINATION KEY (account_id) REFERENCES Account -- destination_key without column_name_list | ||
LABEL Owns | ||
PROPERTIES ALL COLUMNS, | ||
AccountTransferAccount | ||
SOURCE KEY (id) REFERENCES Account (id) -- source_key | ||
DESTINATION KEY (to_id) REFERENCES Account (id) -- destination_key | ||
LABEL Transfers -- LABEL label_name in element_label | ||
-- without element_properties | ||
) |
2 changes: 1 addition & 1 deletion
2
...te_or_replace_property_graph_fingraph.sql → ...property_graph_if_not_exists_fingraph.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
testdata/input/ddl/create_property_graph_if_not_exists_fingraph_verbose.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.