-
Type: Task
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Component/s: Unified Test Runner
-
Needed
-
Summary
The $$type operator is intended to support all types for the server's $type query operator. I recently discovered that PHPLIB never added support for the "number" alias and considered that other drivers might have forgotten as well.
The alias doesn't appear in the documentation's main table of supported types but is instead discussed below in prose:
$type supports the number alias, which will match against the following BSON types:
- double
- 32-bit integer
- 64-bit integer
- decimal
I'd like to add a regression test for this behavior in the unified test format's directory of "valid" spec tests. This would ensure any future tests that may utilize the "number" alias can run on all drivers without requiring unexpected changes.
Motivation
Who is the affected end user?
Drivers.
How does this affect the end user?
Spec test runners may not support all values for the $$type operator.
How likely is it that this problem or use case will occur?
Has yet to occur but may in the future.
If the problem does occur, what are the consequences and how severe are they?
Drivers might encounter an unexpected error when syncing a future spec test that utilizes the alias.
Is this issue urgent?
No.
Is this ticket required by a downstream team?
No.
Is this ticket only for tests?
Yes.
- related to
-
PHPLIB-1001 Support "number" alias for $$type spec test operators
- Closed
- split to
-
NODE-6490 Regression test for "number" alias in $$type operator
- Needs Triage
-
CDRIVER-5787 Regression test for "number" alias in $$type operator
- Backlog
-
CSHARP-5391 Regression test for "number" alias in $$type operator
- Backlog
-
CXX-3159 Regression test for "number" alias in $$type operator
- Backlog
-
GODRIVER-3409 Regression test for "number" alias in $$type operator
- Backlog
-
JAVA-5682 Regression test for "number" alias in $$type operator
- Backlog
-
PYTHON-4937 Regression test for "number" alias in $$type operator
- Backlog
-
RUBY-3581 Regression test for "number" alias in $$type operator
- Backlog
-
RUST-2084 Regression test for "number" alias in $$type operator
- Backlog
-
MOTOR-1401 Regression test for "number" alias in $$type operator
- Closed
-
PHPLIB-1579 Regression test for "number" alias in $$type operator
- Closed