You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/01/02 21:36:08 UTC

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

     [ https://issues.apache.org/jira/browse/CALCITE-2115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde updated CALCITE-2115:
---------------------------------
    Component/s: mongodb

> Fix broken tests for mongodb adapter
> ------------------------------------
>
>                 Key: CALCITE-2115
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2115
>             Project: Calcite
>          Issue Type: Bug
>          Components: mongodb
>            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)