mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 19:59:54 -05:00
Merged PR 1629302: [Composite POC] Fix up operators and type bracketing
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### 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? ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description 1) Fix up the remaining operators - implementations are sub-optimal 2) Add type bracketing options for all types and use them in operators 3) Add support for truncation of terms TODO: - Support recheck on the index for operators than just bounds - Support N boundaries for index terms. ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses issues with operators and type bracketing in BSON composite indexes. - Added `bson_gin_index_types_core.c` to manage BSON type bounds for indexes. - Updated `bson_gin_composite_entrypoint.c` to fix operator handling and apply type bracketing for various BSON index strategies. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
This commit is contained in:
1 parent
4bc38f75c6
commit
5ad889feeb
11 files changed
+1028
-89
No files matched your search
@@ -3108,7 +3108,9 @@ static void
|
||||
PopulateRangeStateFromQuery(DollarRangeParams *params, const
|
||||
pgbson *filter)
|
||||
{
|
||||
*params = *ParseQueryDollarRange((pgbson *) filter);
|
||||
pgbsonelement filterElement = { 0 };
|
||||
PgbsonToSinglePgbsonElement(filter, &filterElement);
|
||||
*params = *ParseQueryDollarRange(&filterElement);
|
||||
Assert(params != NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user