Skip to content

Tags: IvorySQL/ivydocumentdb

Tags

v0.106-0

Toggle v0.106-0's commit message
Merged PR 1751683: [User-Experience] Enhancing error message experien…

…ce for output stages

### 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
[User-Experience] Enhancing Merge error message experience for unsupported cases

----
#### AI description  (iteration 1)
#### PR Classification
This pull request addresses a bug fix by enhancing the user experience for unsupported $merge stage scenarios with clearer error messages.

#### PR Summary
The changes introduce more specific error reporting when the $merge aggregation stage is used with mutable functions and unsupported stages, and update related test outputs accordingly.
- `oss/pg_documentdb/src/aggregation/bson_aggregation_output_pipeline.c`: Added checks for specific function IDs (e.g., system_rows, random, and empty data table functions) and updated error messages for unsupported $merge with $sample and missing collections, as well as changing the return type of `ValidatePreOutputStages` from bool to void.
- Test files under `oss/internal/pg_documentdb_distributed` and `pgmongo/src/test/docdb_compat`: Updated expected outputs to align with the revised error messages for unsupported aggregation scenarios.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

v0.105-0

Toggle v0.105-0's commit message
Merged PR 1713127: Provide the correct codeName on error and codegen …

…for error codes and mapping

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

Added code generation to create all error codes off of shared csv definition files as well as the means to map an i64 to an error code. Also, if we have a known error code, fetch the proper error string, if exists, or None

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to correctly convert error codes to text strings.

#### PR Summary
This pull request fixes the misassignment of error code and message, ensuring that error codes are properly converted to their text representation.
- `src/responses/error.rs`: Reordered parameters in the `CommandError::new` call to swap the error code and message.
- `src/responses/pg.rs`: Updated error handling to use `ErrorCode::from_i64` for converting error codes to text and added a dependency on `num_traits::FromPrimitive`.
- `src/error.rs`: Added the `IndexNotFound` error variant with corresponding mapping in the `FromPrimitive` implementation.
- `tests/test_search_tests.rs`: Introduced a test to validate that a text query fails with the expected "text index required for $text query" error message.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->

Related work items: #4293767

v0.104-0

Toggle v0.104-0's commit message
creating tag for 104 release

v0.103-0

Toggle v0.103-0's commit message
Release version 0.103-0

v0.102-0

Toggle v0.102-0's commit message
v0.102-0 release

v0.101-0

Toggle v0.101-0's commit message
DocumentDB 0.101-0 Release

see change log for details:
https://github.com/microsoft/documentdb/blob/main/CHANGELOG.md

v0.100-0

Toggle v0.100-0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Editing ReadMe to remove catalog schema reference (documentdb#12)