-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongodb backend uses wrong pipeline order, sums aggregate field name instead of measure (physical) field name #336
Comments
miraculixx
added a commit
to miraculixx/cubes
that referenced
this issue
Jan 20, 2016
Are there any changes in model.json when mongodb is used instead of sqlite ? |
I am getting error "Unknown stores extension mongo". Help please. |
Moved to DataBrewery/cubes-mongo#2 as the backends were separated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on the tutorial I converted the tutorial dataset to MongoDB, using the cube with the mongo backend. After fixing the mongo backend it almost works, except that the MongoBrowser creates a pipeline that returns wrong results:
As you can see the amount_sum fields are 0, which is wrong. Looking at the pipeline generated reveals why:
when the two problems are fixed manually and the aggregation directly run against mongodb the results are correct:
The problem probably occurs within the mapping code. Any hints?
Data ready to import into mongodb: https://gist.github.com/miraculixx/5ffc89241478e8b09883
MongoDB: 3.2
cubes: release-1.0.1 with fix for mongodb applied as per above
The text was updated successfully, but these errors were encountered: