Litedb: [QUESTION] Why are the tests for GROUP BY commented out

Created on 10 Jul 2020  路  3Comments  路  Source: mbdavid/LiteDB

https://github.com/mbdavid/LiteDB/blob/master/LiteDB.Tests/Query/GroupBy_Tests.cs#L49

I am especially interested in the GROUP BY and SUM from expressions calls

question

All 3 comments

@dangershony I believe these tests were made for a possible implementation of grouping expressions in Linq, which are not currently available in LiteDB. Personally, I don't think it makes much sense to use Linq expressions with GROUP BY: Linq expressions are meant for "typed" collections, where there is a fixed structure to the documents (defined by the LiteDB mapper), and grouping modifies the structure of the documents.

You can still use GROUP BY with Bson expressions and with the SQL syntax.

thanks @lbnascimento

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghiboz picture ghiboz  路  4Comments

kuiperzone picture kuiperzone  路  4Comments

nightroman picture nightroman  路  3Comments

shamork picture shamork  路  4Comments

GW-FUB picture GW-FUB  路  3Comments