Files
documentdb/internal/pg_documentdb_distributed
Parag Jain d41253c91a Merged PR 1585948: [Bug-Fix] Update when query spec has regex, right match
### 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
[Bug-Fix] Update when query spec has regex.
While iterating query spec to find out if query has NonId filters, there was a bug due to that we were not using @@ filter in selectCandidate leads to incorrect match. Fixed Now

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to address issues with query specifications involving regex and right match.

#### PR Summary
This pull request fixes a bug related to handling regex in query specifications and updates.
- Added test cases in `commands_update.out` and `commands_update.sql` to verify regex operator and update functionality.
- Modified `bson_query.c` to correctly process filter functions involving regex patterns.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-02-25 22:09:25 -08:00
..