Skip to content

Commit

Permalink
Use correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Mar 7, 2024
1 parent fcc6a75 commit 6833842
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ void PhysicalPathFinding::LocalCompressedSparseRow::Sink(
auto &src = input.data[0];
auto &dst = input.data[1];


auto v_size = global_csr.v_size;
auto *v = (int64_t *)global_csr.v;
vector<int64_t> &e = global_csr.e;
Expand All @@ -133,9 +134,9 @@ void PhysicalPathFinding::LocalCompressedSparseRow::Sink(
UnifiedVectorFormat vdata_dst;
src.ToUnifiedFormat(input.size(), vdata_src);
dst.ToUnifiedFormat(input.size(), vdata_dst);
auto src_data = vdata_src.data;
auto dst_data = vdata_dst.data;
Vector result = Vector(LogicalTypeId::BIGINT);
auto src_data = (int32_t*)vdata_src.data;
auto dst_data = (int32_t*)vdata_dst.data;
Vector result = Vector(src.GetType());
ValidityMask &result_validity = FlatVector::Validity(result);
result.SetVectorType(VectorType::FLAT_VECTOR);
auto result_data = FlatVector::GetData<int64_t>(result);
Expand Down

0 comments on commit 6833842

Please sign in to comment.