Files
documentdb/internal/pg_documentdb_distributed
Cornelius Boateng f6a67cec94 Merged PR 1654888: [engine][collation] Support for $indexOfArray
### Does this PR have any customer impact? No

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

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

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

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

### Description
Support collation with `$indexOfArray`

 `$indexOfBytes, $indexOfCP, $strcasecmp` are collation-agnostic. They do not respect collation.

`$let` and `$zip` respect collation.
----
#### AI description  (iteration 1)
#### PR Classification
New feature: This pull request adds support for collation in string and array operators, specifically for `$indexOfBytes`, `$indexOfCP`, and `$indexOfArray`.

#### PR Summary
This pull request introduces collation support to enhance string and array operations, allowing for locale-aware comparisons in `$indexOfBytes`, `$indexOfCP`, and `$indexOfArray` operators.
- Modified `bson_expression_string_operators.c` to include collation handling in string comparison functions and updated function signatures to accept collation strings.
- Updated `bson_expression_array_operators.c` to support collation in array index operations, including changes to function signatures and argument handling.
- Introduced new structures `StringCompareArguments` and `IndexOfArrayArguments` to manage collation strings and arguments for the respective operations.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-05-09 14:08:53 +08:00
..