Commit Graph
30 Commits
Author SHA1 Message Date
Lucas Borges Fernandes 533dc34b1a Merged PR 1347886: Moving $addToSet to 1.15-1
Adding $addToSet in 1.15-1.
Removing it from 1.14-7.
2024-05-13 13:23:03 +03:00
Lucas Borges Fernandes 51042e6473 Merged PR 1334895: AddToSet accumulator for group by aggregation stage
### Description
Implementation of the $addToSet group accumulator.

Reference: https://www.mongodb.com/docs/manual/reference/operator/aggregation/addToSet/

Related work items: #2988403
2024-05-13 13:23:03 +03:00
Javier Figueroa 01d68d4efa Merged PR 1343345: Commit 7e3533e6: Bumping schema for 1.17 release
### Does this PR have any customer impact?
No

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

### 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

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
No

### Description
Commit 7e3533e6: Bumping schema for 1.17 release
2024-05-03 13:34:41 +03:00
Vinod Sridharan d4d9f5cda9 Merged PR 1333485: [Negation] Add support for pushdown of the $not operator sometimes
### 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)
Yes

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
Adds index pushdown for $not operators
### Description
Adds index pushdown for $not operators
2024-04-26 16:19:32 +03:00
Vinod Sridharan cf88b82fe7 Merged PR 1332248: Selectivity Part 1: Implement operator statistics behind a flag
### Does this PR have any customer impact?
No

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

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

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
N/A
### Description
Implement statistics for bson Dollar functions behind a feature flag. This uses the default Postgres operator statistics using Most Common Value and Histogram stats if available to compute.

As a fallback it also uses operator data to provide default values if needed.

Sets up an ANALYZE function on bson so that this can be improved (since the ANALYZE is not there yet). This will be done in a subsequent change.
2024-04-26 16:19:32 +03:00
Vinod Sridharan 8c7173a2d9 Merged PR 1325613: Lookup Index pushdown
### 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)

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Lookup Index pushdown: Allow index pushdown of lookup queries for both left and right queries.
For _id joins, push to the B-tree index and use the object_id column.
For RUM indexes, introduce a new function and support that allows pushing to the index based on the specified path rather than the document itself.

This caused a customer $lookup query to go from taking 45+ mins and timing out to finishing in under 3 mins
2024-04-19 12:03:52 +03:00
Deepak Bisht 58afe0aa8f Merged PR 1275776: [Pgmongo] - Part 1 GeoNear aggregation stage, add documentation and necessary operators and functions
### Does this PR have any customer impact?
No

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

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

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
Support $geoNear aggregation stage

### Description
Add the design doc and necessary operators and functions needed for $geoNear

Also,
1-  Implement the $geoNear aggregation stage skeleton and support all options.
     - `distanceField`,
     - `near` (both legacy, geojson point)
     -`includeLocs`,
     -`minDistance` & `maxDistance`
     - `distanceMultiplier`
     - `key`
2- Support index pushdown of the stage to `2d` and `2dspher` index.
    - spherical / non-spherical distance support for `2d` index.
    - spherical distance support for `2dsphere` index

Things still a TODO.
1- ~~Update the mongo explain plans for geonear stage~~.
2- Make the stage require an index always, currently it can be executed without index too.
3- Fix projection for nested array fields.
4- Make common test setup for running $geoNear queries in JSTests which don't require key in mongo.
5- More testing and validations with other stages that can use $geoNear.
6- Test batching and cursor support.
7- Overall testing and validations

Related work items: #3000189, #3065270
2024-04-19 12:03:52 +03:00
Mehmet Yilmaz 1151d0fcdc Merged PR 1318097: [OSS] Move coll_stats func
### 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)
UDF

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Move coll_stats funcs to oss
2024-04-19 12:03:52 +03:00
Vinod Sridharan 2da6633812 Merged PR 1314099: Colocation Support Part 2
### 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)

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
2024-04-05 13:43:51 +03:00
Santiago Fernandez Madero 2ad7381f79 Merged PR 1291973: Add inverseMatch aggregation stage
### 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)

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description

Add inverseMatch aggregation stage

Currently it supports a spec like:
```
{ path: <path>, input: <doc or array of docs/path expression>, defaultResult: [optional | <bool> ]}
```

So if we want to fetch the input to the document query from an external collection, a lookup stage would need to be added prior to the inverseMatch.

The next stage of this feature is to support a spec like:
```
{ path: <path>, fromCollection: <coll>, pipelines: [$match/$project/$limit], defaultResult: [optional | <bool> ]}
```
2024-03-29 10:49:37 +03:00
Vinod Sridharan 1f8b17e477 Merged PR 1311551: [Part 1: API] Reduce OSS Public API surface
### Does this PR have any customer impact?
No
### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
OSS
### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
Yes
### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
N/A
### Description
Start bringing down the Public surface area with back compat for helio_api
2024-03-29 10:49:37 +03:00
Manish Gaur bb2655dcba Merged PR 1303061: Version update for next release
### 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)

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
2024-03-22 11:28:50 +03:00
Lucas Borges Fernandes 2b7b1706af Merged PR 1302307: Supporting group $push in 1.13/1.14 clusters
### Description
2024-03-22 11:28:50 +03:00
Lucas Borges Fernandes ab11777a85 Merged PR 1290864: $push accumulator for $group pipeline stage
### Description
Implementation of the $push accumulator for $group pipeline stage.

Related work items: #2988400
2024-03-22 11:28:50 +03:00
Santiago Fernandez Madero a770e351e6 Merged PR 1289897: Add inverse match UDF to 1.14 schema to be able to use it sooner in prod
Add inverse match UDF to 1.14 schema to be able to use it sooner in prod

This UDF will be used for the new $inverseMatch aggregation stage which will take the document to apply the match on, the path where the document defines the query and the input value to evaluate the query against.

Since we need a UDF to do this against every document in a query like so:

```
SELECT document FROM mongo_data.documents_1_102045 collection WHERE helio_api.bson_dollar_inverse_match(document,{ "path": "a", "input" : [ { "foo" : { "$numberInt" : "3" } } ] }'::mongo_catalog.bson)
```

This is schema dependent, let's add a no-op UDF so that we can use the 1.14 train and that way in the 1.15 branch it will be already available to be used by the binary since we ship schema n-1 always.
2024-03-08 14:01:20 +03:00
Santiago Fernandez Madero dba20f6b85 Merged PR 1288356: Move main to 1.15 binary and 1.14 schema and fix rename collection version
### Description

Move main to 1.15 binary and 1.14 schema and fix rename collection version

Rename collection PR went in after we forked the 1.14 release branch but before main was bumped to the new schema and binary version, so fix that in this PR as well.
2024-03-04 09:53:14 +03:00
Lucas Borges Fernandes b635c244d8 Merged PR 1249041: [OSS] Adding C impl for rename_collection UDF 2024-03-04 09:53:14 +03:00
Tanvi Bhandari 8d461c2b27 Merged PR 1271218: CurrentOp showing the progress for Index Build in background
### Does this PR have any customer impact?
No

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

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

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Issue:
Since the owner of scheduled cron job for index build background is admin user i.e. 'postgres' in prod, the CREATE INDEX CONCURRETLY queries are owned by 'postgres' user in pg_stat_activity.
And non-admin user who requests for currentOp to get progress of running indexes, does not have enough privilege to read queries owned by admin user in pg_stat_activity.

Solutions:
From inside running cron-job, create LibPQ connection as the non-admin user for CREATE INDEX CONCURRENTLY. The pre-requisite for this approach is that we have the information of user-oid who has submitted the request in queue. I.e. This needs user_name column in index_queue table.

Related work items: #2961369
2024-03-01 17:24:28 +03:00
Vinod Sridharan 3b6e07f30f Merged PR 1281490: Query operator native support part 1: Enable expansion of the query operator
### Does this PR have any customer impact?
No

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

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

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Today in OSS the query operator was evaluated at runtime - move this to expansion of hte operator at planning time using the simplify function.
2024-03-01 17:24:28 +03:00
Mehmet Yilmaz 1224a287d6 Merged PR 1269280: [OSS] Move auth_scram functions to OSS
### 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)
No

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Move auth_scram functions to OSS
2024-02-23 14:49:18 +03:00
Mehmet Yilmaz e329534b27 Merged PR 1265532: [OSS] Refactor some pgmongo references in OSS
### 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)
No

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Refactor some pgmongo references in OSS
2024-02-16 13:49:10 +03:00
Santiago Fernandez Madero e67907c67d Merged PR 1271505: Bump main to 1.14
Bump main to 1.14
2024-02-14 11:28:20 +03:00
Lucas Borges Fernandes 0a88ba774d Merged PR 1269659: [OSS] Changing helio major version to 1 for compatibility
### Description

Bumping major version to 1 in order to prevent future errors with version check utility functions.
2024-02-14 11:28:20 +03:00
Mehmet Yilmaz cb797d3eae Merged PR 1261782: [OSS] Move drop_database function to OSS
### 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)
UDF

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Move drop_database function to OSS
2024-02-07 23:20:07 +03:00
Manish Gaur ac6ae0a7c6 Merged PR 1259477: Updating version for 1.12 release
### 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)

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description

Updating version for 1.12 release
2024-02-07 23:20:07 +03:00
Mehmet Yilmaz e2f438d8ba Merged PR 1244566: Refactor allow_nested_distributed_execution conf in oss
Refactor allow_nested_distributed_execution conf in oss
2024-01-31 12:06:30 +03:00
Mehmet Yilmaz dc0f79ce70 Merged PR 1234831: [OSS] Move drop indexes procedure to OSS
Move drop indexes procedure to oss
2024-01-31 12:06:30 +03:00
Vinod Sridharan 628c576d6f Merged PR 1250361: Modify more references for OSS
Remove more references  in code that match the contract with the OSS extension.
2024-01-17 22:08:45 +03:00
Gledis Zeneli ffa180741a Merged PR 1205625: Migrate drop_collection to C 2024-01-17 22:08:45 +03:00
Vinod Sridharan d8671eb379 Initial commit for HelioDB 2024-01-12 19:10:20 +00:00