-DATASET CSV fts-basic

--

-CASE InstallOfficialExtension
-SKIP
-SKIP_STATIC_LINK
-STATEMENT FORCE INSTALL algo FROM 'http://localhost/extension/repo/'
---- ok
-STATEMENT load algo
---- ok

-CASE RunALGOWithoutLoad
-SKIP_STATIC_LINK
-STATEMENT CALL k_core_decomposition('PK') RETURN node.name, k_degree;
---- error
Catalog exception: function k_core_decomposition is not defined. This function exists in the ALGO extension. You can install and load the extension by running 'INSTALL ALGO; LOAD EXTENSION ALGO;'.
-STATEMENT CALL page_rank('PK') RETURN node.fName, rank;
---- error
Catalog exception: function page_rank is not defined. This function exists in the ALGO extension. You can install and load the extension by running 'INSTALL ALGO; LOAD EXTENSION ALGO;'.
-STATEMENT CALL strongly_connected_components_kosaraju('Graph') WITH group_id, min(node.id) as sccId, count(*) as nodeCount, list_sort(collect(node.id)) as nodeIds RETURN sccId, nodeCount, nodeIds ORDER BY sccId;
---- error
Catalog exception: function strongly_connected_components_kosaraju is not defined. This function exists in the ALGO extension. You can install and load the extension by running 'INSTALL ALGO; LOAD EXTENSION ALGO;'.
-STATEMENT CALL strongly_connected_components('Graph') WITH group_id, min(node.id) as sccId, count(*) as nodeCount, list_sort(collect(node.id)) as nodeIds RETURN sccId, nodeCount, nodeIds ORDER BY sccId;
---- error
Catalog exception: function strongly_connected_components is not defined. This function exists in the ALGO extension. You can install and load the extension by running 'INSTALL ALGO; LOAD EXTENSION ALGO;'.
-STATEMENT CALL weakly_connected_components('PK') RETURN node.fName, group_id;
---- error
Catalog exception: function weakly_connected_components is not defined. This function exists in the ALGO extension. You can install and load the extension by running 'INSTALL ALGO; LOAD EXTENSION ALGO;'.

-CASE InstallExtensionInStaticLink
-SKIP_DYNAMIC_LINK
-STATEMENT INSTALL algo
---- 1
Extension algo is already statically linked with kuzu core. No need to INSTALL.
-STATEMENT load algo
---- 1
Extension algo is already statically linked with kuzu core. No need to LOAD.
