jmalkin commented on code in PR #63: URL: https://github.com/apache/datasketches-postgresql/pull/63#discussion_r1176862723
########## sql/datasketches--1.5.0--1.6.0.sql: ########## @@ -0,0 +1,1350 @@ +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you under the Apache License, Version 2.0 (the +-- "License"); you may not use this file except in compliance +-- with the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, +-- software distributed under the License is distributed on an +-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +-- KIND, either express or implied. See the License for the +-- specific language governing permissions and limitations +-- under the License. + +CREATE OR REPLACE FUNCTION cpc_sketch_in(cstring) RETURNS cpc_sketch + AS '$libdir/datasketches', 'pg_sketch_in' + LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE; + +CREATE OR REPLACE FUNCTION cpc_sketch_out(cpc_sketch) RETURNS cstring + AS '$libdir/datasketches', 'pg_sketch_out' + LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE; + +CREATE OR REPLACE FUNCTION cpc_sketch_build_agg(internal, anyelement) RETURNS internal + AS '$libdir/datasketches', 'pg_cpc_sketch_build_agg' + LANGUAGE C IMMUTABLE PARALLEL SAFE; + +CREATE OR REPLACE FUNCTION cpc_sketch_build_agg(internal, anyelement, int) RETURNS internal + AS '$libdir/datasketches', 'pg_cpc_sketch_build_agg' + LANGUAGE C IMMUTABLE PARALLEL SAFE; + +CREATE OR REPLACE FUNCTION cpc_sketch_from_internal(internal) RETURNS cpc_sketch Review Comment: Nevermind, it's pretty clearly something around state management for distinct counting in particular. I'm sure it'll make more sense when I review the specific code around the implementation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
