-DATASET CSV tinysnb

--

-CASE SpecialProjectedGraph
-LOAD_DYNAMIC_EXTENSION algo
-STATEMENT CALL PROJECT_GRAPH('empty', [], []);
---- ok
-STATEMENT CALL weakly_connected_components('empty') RETURN *;
---- 0
-STATEMENT CALL k_core_decomposition('empty') RETURN *;
---- 0
-STATEMENT CALL page_rank('empty') RETURN *;
---- 0
-STATEMENT CALL PROJECT_GRAPH('n', ['person'], []);
---- ok
-STATEMENT CALL weakly_connected_components('n') RETURN node.ID, group_id;
---- 8
0|0
2|1
3|2
5|3
7|4
8|5
9|6
10|7
-STATEMENT CALL k_core_decomposition('n') RETURN node.ID, k_degree;
---- 8
0|0
2|0
3|0
5|0
7|0
8|0
9|0
10|0
-STATEMENT CALL page_rank('n') RETURN node.ID, rank;
---- 8
0|0.018750
2|0.018750
3|0.018750
5|0.018750
7|0.018750
8|0.018750
9|0.018750
10|0.018750
-STATEMENT CALL PROJECT_GRAPH('err', ['person'], ['studyAt']);
---- error
Binder exception: organisation is connected to studyAt but not projected.
-STATEMENT CALL PROJECT_GRAPH('err', true, 'studyAt');
---- error
Binder exception: Argument True has data type BOOL. LIST or STRUCT was expected.
-STATEMENT CALL PROJECT_GRAPH('err', ['person'], 'studyAt');
---- error
Binder exception: Argument studyAt has data type STRING. LIST or STRUCT was expected.
-STATEMENT CALL PROJECT_GRAPH('err', ['person'], {'knows': ['filter']});
---- error
Binder exception: [filter] has data type STRING[] but STRING was expected.
-STATEMENT CALL PROJECT_GRAPH('err', ['person'], [{'knows': {'dummy': 'r.date > date("1999-01-01")'}}]);
---- error
Binder exception: {knows: {dummy: r.date > date("1999-01-01")}} has data type STRUCT(knows STRUCT(dummy STRING)) but STRING was expected.
-STATEMENT CALL PROJECT_GRAPH('err', ['person'], {'knows': 'r.dummy > date("1999-01-01")'});
---- error
Binder exception: Cannot find property dummy for r.
-STATEMENT CALL PROJECT_GRAPH('err', ['person'], {'knows': 'r.comments > date("1999-01-01")'});
---- error
Binder exception: Type Mismatch: Cannot compare types STRING[] and DATE
-STATEMENT CALL PROJECT_GRAPH('G', ['person'], ['knows']);
---- ok
-STATEMENT DROP TABLE knows;
---- ok
-STATEMENT CALL weakly_connected_components('G') RETURN node.ID, group_id;
---- error
Binder exception: knows is not a REL table.
