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/12/24 21:24:38 UTC
[incubator-datasketches-postgresql] 01/01: Merge pull request #30
from apache/aod_sketch
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-postgresql.git
commit 4c771ca245f9d02cadd2364f1effb76f590503de
Merge: c6ea528 7657273
Author: Alexander Saydakov <13...@users.noreply.github.com>
AuthorDate: Thu Dec 24 13:24:31 2020 -0800
Merge pull request #30 from apache/aod_sketch
array of doubles sketch
Makefile | 19 +-
sql/datasketches_aod_sketch.sql | 191 +++++++++++
src/allocator.h | 7 +-
src/aod_sketch_c_adapter.cpp | 393 +++++++++++++++++++++
src/aod_sketch_c_adapter.h | 69 ++++
src/aod_sketch_pg_functions.c | 587 ++++++++++++++++++++++++++++++++
src/cpc_sketch_c_adapter.h | 7 +-
src/frequent_strings_sketch_c_adapter.h | 7 +-
src/hll_sketch_c_adapter.h | 7 +-
src/kll_float_sketch_c_adapter.h | 9 +-
src/kll_float_sketch_pg_functions.c | 1 -
src/ptr_with_size.h | 28 ++
src/theta_sketch_c_adapter.h | 7 +-
13 files changed, 1295 insertions(+), 37 deletions(-)
diff --cc Makefile
index 06b2ce0,0faccce..41bf70c
--- a/Makefile
+++ b/Makefile
@@@ -43,17 -52,8 +52,17 @@@ PG_CONFIG = pg_confi
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
+# fix LLVM JIT compilation error
+ifeq ($(with_llvm), yes)
+ COMPILE.cxx.bc = $(CLANG) -xc++ -Wno-ignored-attributes $(BITCODE_CXXFLAGS) $(CPPFLAGS) -emit-llvm -c
+endif
+
+%.bc : %.cpp
+ $(COMPILE.cxx.bc) -o $@ $<
+ if [ "$(with_llvm)" = "yes" ]; then $(LLVM_BINPATH)/opt -module-summary -f $@ -o $@; fi
+
# generate combined sql
- $(SQL_INSTALL): $(sort $(SQL_MODULES))
+ $(SQL_INSTALL): $(SQL_MODULES)
cat $^ > $@
install: $(SQL_INSTALL)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org