{{ message }}
Repository navigation
Fix Issue #202: Add $bitAnd operator expression compatibility tests - #662
Open
krishnasai453 wants to merge 51 commits into
Open
krishnasai453 wants to merge 51 commits into
krishnasai453 wants to merge 51 commits into
Conversation
Author
Signed-off-by: krishnasai453 <krishnasai453@gmail.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: krishnasai453 <krishnasai453@gmail.com>
Signed-off-by: krishnasai453 <krishnasai453@gmail.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Victor Tsang <vitsangp@amazon.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Ian Forster <forstaia@amazon.com> Signed-off-by: Victor Tsang <vitsangp@amazon.com> Co-authored-by: Victor Tsang <vitsangp@amazon.com>
Signed-off-by: Victor Tsang <vitsangp@amazon.com>
Signed-off-by: Ian Forster <forstaia@amazon.com> Signed-off-by: Victor Tsang <vitsangp@amazon.com> Co-authored-by: Victor Tsang <vitsangp@amazon.com>
…umentdb#625) Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Victor [C] Tsang <vitsangp@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Victor [C] Tsang <vitsangp@amazon.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: Victor [C] Tsang <vitsangp@amazon.com>
…ocumentdb#665) Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Victor [C] Tsang <vitsangp@amazon.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Victor [C] Tsang <vitsangp@amazon.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Alina (Xi) Li <Alina.Li@improving.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: PatersonProjects <keldonhoff@gmail.com>
krishnasai453
force-pushed
the
fix-issue-202-add_bitAnd_compatibility_test
branch
from
July 8, 2026 05:25
795d3c0 to
740bc4e
Compare
Signed-off-by: Daniel Frankcom <frankcom@amazon.com> Signed-off-by: krishnasai453 <krishnasai453@gmail.com>
krishnasai453
force-pushed
the
fix-issue-202-add_bitAnd_compatibility_test
branch
from
August 5, 2026 23:51
740bc4e to
e48274a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR resolves failing compatibility tests for the
$bitAndoperator intest_expression_bitAnd_additional.py.Why this is needed
Under MongoDB and DocumentDB specifications, the
$bitAndaggregation operator only supportsintandlongoperands. Passing an array expression (such as[["$a", "$b"], 3]) or an object expression (such as[{"x": "$a", "y": "$b"}, 0]) evaluates to array/object structures, which are non-numeric types. These operations should fail with a type mismatch rather than succeed.What changed
ARRAY_EXPRESSION_TESTSandOBJECT_EXPRESSION_TESTSintest_expression_bitAnd_additional.pyto expectTYPE_MISMATCH_ERROR(code14) instead of assuming successful evaluation.error_codeparameter toassert_expression_resultintest_bitAnd_expression_additional.test_expression_bitAnd_testing_strategy.txt.How to test
Run the bitwise operator tests locally: