Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2115

Fix broken tests for mongodb adapter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • mongodb-adapter
    • None

    Description

      Failed tests: 
        MongoAdapterIT.testDistinctCount:686 expected MongoDB query not found expected:<...', STATE: '$state'}}[
      {$group: {_id: {CITY: '$CITY', STATE: '$STATE'}}}
      {$project: {_id: 0, CITY: '$_id.CITY', STATE: '$_id.STATE'}}
      {$group: {_id: '$STATE', CDC: {$sum: {$cond: [ {$eq: ['CITY', null]}, 0, 1]}}}}
      {$project: {STATE: '$_id', CDC: '$CDC'}}
      {$sort: {STATE: 1}}]> but was:<...', STATE: '$state'}}[]>
        MongoAdapterIT.testProject:738 expected MongoDB query not found expected:<{$project: {[CITY: '$city', STATE: '$state'}}
      {$sort: {STATE: 1, CITY: 1}}
      {$project: {STATE: 1, CITY: 1, ZERO: {$literal: 0}]}}> but was:<{$project: {[STATE: '$state', CITY: '$city', ZERO: {$literal: 0}}}
      {$sort: {STATE: 1, CITY: 1]}}>
      Tests in error: 
        MongoAdapterIT.testAndLiteralPlan:440 ยป Runtime exception while executing [sel...
      
      Tests run: 34, Failures: 2, Errors: 1, Skipped: 4
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladimir.dolzhenko Vladimir Dolzhenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: