mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-07 19:42:46 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Refactoring ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) Yes ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Porting udfs into documentdb ---- #### AI description (iteration 1) #### PR Classification Code cleanup and feature enhancement. #### PR Summary This pull request continues the porting of UDFs into DocumentDB, updating and including various SQL files for better functionality and organization. - Updated `documentdb--0.24-0.sql` to include new UDFs and operators, replacing old function references. - Added new UDFs for query, projection, geospatial, aggregation, metadata, schema management, index management, CRUD commands, user management, schema validation, telemetry, TTL, vector search, extension version, diagnostic, and RBAC metadata. - Removed outdated function definitions and replaced them with updated SQL includes.
44 lines
1.8 KiB
SQL
44 lines
1.8 KiB
SQL
CREATE OR REPLACE AGGREGATE __API_SCHEMA_INTERNAL_V2__.BSONCOVARIANCEPOP(__CORE_SCHEMA__.bson, __CORE_SCHEMA__.bson)
|
|
(
|
|
SFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_transition,
|
|
FINALFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_final,
|
|
MSFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_transition,
|
|
MFINALFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_final,
|
|
MINVFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_invtransition,
|
|
stype = bytea,
|
|
mstype = bytea,
|
|
COMBINEFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_combine,
|
|
PARALLEL = SAFE
|
|
);
|
|
|
|
|
|
CREATE OR REPLACE AGGREGATE __API_SCHEMA_INTERNAL_V2__.BSONCOVARIANCESAMP(__CORE_SCHEMA__.bson, __CORE_SCHEMA__.bson)
|
|
(
|
|
SFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_transition,
|
|
FINALFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_samp_final,
|
|
MSFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_transition,
|
|
MFINALFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_samp_final,
|
|
MINVFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_invtransition,
|
|
stype = bytea,
|
|
mstype = bytea,
|
|
COMBINEFUNC = __API_SCHEMA_INTERNAL_V2__.bson_covariance_pop_samp_combine,
|
|
PARALLEL = SAFE
|
|
);
|
|
|
|
|
|
CREATE OR REPLACE AGGREGATE __API_SCHEMA_INTERNAL_V2__.BSONDERIVATIVE(__CORE_SCHEMA__.bson, __CORE_SCHEMA__.bson, bigint)
|
|
(
|
|
SFUNC = __API_SCHEMA_INTERNAL_V2__.bson_derivative_transition,
|
|
FINALFUNC = __API_SCHEMA_INTERNAL_V2__.bson_integral_derivative_final,
|
|
stype = bytea,
|
|
PARALLEL = SAFE
|
|
);
|
|
|
|
|
|
CREATE OR REPLACE AGGREGATE __API_SCHEMA_INTERNAL_V2__.BSONINTEGRAL(__CORE_SCHEMA__.bson, __CORE_SCHEMA__.bson, bigint)
|
|
(
|
|
SFUNC = __API_SCHEMA_INTERNAL_V2__.bson_integral_transition,
|
|
FINALFUNC = __API_SCHEMA_INTERNAL_V2__.bson_integral_derivative_final,
|
|
stype = bytea,
|
|
PARALLEL = SAFE
|
|
); |