Files
documentdb/pg_documentdb/sql/documentdb--0.101-0--0.102-0.sql
T
Cornelius Boateng 8bf9489e33 Merged PR 1592819: [engine][collation] Support for redact
### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Are you introducing any new config? If yes, do you have tests with and without them being set?

### ChangeLog (Refer [Template](../oss/CHANGELOG.md))

### Description

more

----
#### AI description  (iteration 1)
#### PR Classification
New feature

#### PR Summary
This pull request adds support for collation in the redact function.
- `bson_project.c`: Added handling for an additional collation string argument in the `bson_dollar_redact` function.
- `bson_aggregation_redact--0.24-0.sql` and `bson_aggregation_redact--latest.sql`: Updated to include the new collation string parameter in the `bson_dollar_redact` function definition.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

Related work items: #3919400
2025-03-18 21:57:32 -07:00

16 lines
689 B
PL/PgSQL

#include "udfs/metadata/list_databases--0.102-0.sql"
#include "udfs/ttl/ttl_support_functions--0.102-0.sql"
#include "udfs/commands_diagnostic/current_op--0.102-0.sql"
#include "udfs/query/bson_query_match--0.102-0.sql"
#include "udfs/aggregation/bson_aggregation_redact--0.102-0.sql"
#include "udfs/aggregation/bson_merge_functions--0.102-0.sql"
-- Schedule TTL Cron job to prune TTL indexes on every documentdb instance.
DO LANGUAGE plpgsql $cmd$
BEGIN
IF NOT EXISTS(SELECT 1 FROM cron.job where jobname = 'documentdb_ttl_task') THEN
PERFORM cron.schedule('documentdb_ttl_task', '* * * * *', $$CALL documentdb_api_internal.delete_expired_rows();$$);
END IF;
END;
$cmd$;