You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Vladimir Dolzhenko (JIRA)" <ji...@apache.org> on 2017/12/30 17:37:00 UTC

[jira] [Created] (CALCITE-2115) Fix broken tests for mongodb adapter

Vladimir Dolzhenko created CALCITE-2115:
-------------------------------------------

             Summary: Fix broken tests for mongodb adapter
                 Key: CALCITE-2115
                 URL: https://issues.apache.org/jira/browse/CALCITE-2115
             Project: Calcite
          Issue Type: Bug
            Reporter: Vladimir Dolzhenko
            Assignee: Julian Hyde


{code}
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
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)