Skip to content

Commit

Permalink
Add lcc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Nov 27, 2024
1 parent 8d5a8d2 commit 12dee72
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/core/utils/duckpgq_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ unique_ptr<SelectNode> CreateSelectNode(const shared_ptr<PropertyGraphTable> &ed
select_expression.emplace_back(std::move(addition_function));
select_node->select_list = std::move(select_expression);

auto src_base_ref = make_uniq<BaseTableRef>();
src_base_ref->table_name = edge_pg_entry->source_reference;
auto src_base_ref = edge_pg_entry->source_pg_table->CreateBaseTableRef();

auto temp_cte_select_subquery = CreateCountCTESubquery();

Expand Down
16 changes: 15 additions & 1 deletion test/sql/create_pg/attach_pg.test
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,18 @@ did:plc:7qqkrwwec4qeujs6hthlgpbe did:plc:22mof5hzsrituokdxsnoi7qi
did:plc:7qqkrwwec4qeujs6hthlgpbe did:plc:22nbqn2zjp2pobu6cwquhjuu
did:plc:7qqkrwwec4qeujs6hthlgpbe did:plc:22qt6jzmwtgyxzft57kvwut6
did:plc:7qqkrwwec4qeujs6hthlgpbe did:plc:22u3xlfdxqxyzva2fsljotcy
did:plc:7qqkrwwec4qeujs6hthlgpbe did:plc:23df55poeztue4terk3s5ain
did:plc:7qqkrwwec4qeujs6hthlgpbe did:plc:23df55poeztue4terk3s5ain

query II
from local_clustering_coefficient(bluesky, account, follows) limit 10;
----
did:plc:rsfoi33e4iya2rd7jw52nfmo 0.11904762
did:plc:btsulrw4wcqdai23fkl5qwm5 0.12508735
did:plc:z72i7hdynmk6r22z27h6tvur 0.028301887
did:plc:twcatus5xoa7jaeysmrhzcpv 0.15726179
did:plc:wptnzi6wyzqltbenxapqa5qd 0.07191316
did:plc:edglm4muiyzty2snc55ysuqx 0.117788464
did:plc:sc6ieuzeygvm55vv2bjubkgt 0.102591224
did:plc:g5gf5ho5yn3n5anprzf45hvm 0.103670634
did:plc:cwcykfexwbxozuxhpuud63qa 0.35714287
did:plc:c5ccfcya6zez3rhry6gluup4 0.07952872

0 comments on commit 12dee72

Please sign in to comment.