You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/10/12 23:07:53 UTC

[incubator-datasketches-postgresql] 01/02: adjusted to use the latest code

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch aod_sketch
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-postgresql.git

commit cf40e8ee076db2f73f07639bfbc5bb4f92ab91fb
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Mon Oct 12 15:43:57 2020 -0700

    adjusted to use the latest code
---
 src/aod_sketch_c_adapter.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/aod_sketch_c_adapter.cpp b/src/aod_sketch_c_adapter.cpp
index 69d2022..7db6b8f 100644
--- a/src/aod_sketch_c_adapter.cpp
+++ b/src/aod_sketch_c_adapter.cpp
@@ -33,8 +33,6 @@
 #include <boost/accumulators/statistics/variance.hpp>
 #include <boost/math/distributions/students_t.hpp>
 
-using vector_double = std::vector<double, palloc_allocator<double>>;
-
 using update_aod_sketch_pg = datasketches::update_array_of_doubles_sketch_alloc<palloc_allocator<double>>;
 using compact_aod_sketch_pg = datasketches::compact_array_of_doubles_sketch_alloc<palloc_allocator<double>>;
 using aod_union_pg = datasketches::array_of_doubles_union_alloc<palloc_allocator<double>>;
@@ -42,7 +40,7 @@ using aod_union_pg = datasketches::array_of_doubles_union_alloc<palloc_allocator
 using aod_intersection_pg = datasketches::array_of_doubles_intersection<datasketches::array_of_doubles_union_policy_alloc<palloc_allocator<double>>, palloc_allocator<double>>;
 using aod_a_not_b_pg = datasketches::array_of_doubles_a_not_b_alloc<palloc_allocator<double>>;
 
-std::ostream& operator<<(std::ostream& os, const vector_double& v) {
+std::ostream& operator<<(std::ostream& os, const datasketches::aod<palloc_allocator<double>>& v) {
   os << "(";
   for (size_t i = 0; i < v.size(); ++i) {
     if (i != 0) os << ", ";


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org