Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-100757

query-correctness-tests has multiple malformed expressions for $fill

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • QO 2025-02-17

      The query-correctness-tests (1, 2, 3, 4) encountered an issue with a malformed query that was uncovered during the implementation of SERVER-99569.

       

      Below are some examples of the issues found, it's best to look at the evergreen logs for each individual failure.

       

      Issue 1:

      query-correctness-tests-1/generated_tests/lemur-1771702139027/good1-8.1

      The problem occurs because a variable in the $fill stage is both defined and referenced within the $let clause, which violates the rule that any variable used inside a $let must be defined outside of it.

       

      Issue 2:

      query-correctness-tests-1/generated_tests/shag-1771702139034/good1-8.1

      Expression $eq takes exactly 2 arguments. 1 were passed in.

       

      Patch for reference: https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_amazon_linux2_arm64_all_feature_flags_query_correctness_generated_test_1_patch_f0d30a19e5eacf7a3bbe5c1ca2f83585fad27e22_67ab5c1f8d9a1700073ce19b_25_02_11_14_18_38/tests?execution=0&sortBy=STATUS&sortDir=ASC

            Assignee:
            naafiyan.ahmed@mongodb.com Naafiyan Ahmed
            Reporter:
            lee.maguire@mongodb.com Lee Maguire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: