Skip to content
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

outputCollection and outputType of MapReduceOptions not work [DATAMONGO-2027] #2896

Closed
spring-projects-issues opened this issue Jul 15, 2018 · 0 comments

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Jul 15, 2018

bird-frank opened DATAMONGO-2027 and commented

I call MongoTemplate.mapReduce method with these codes:

MapReduceResults<Bar> results =
mongoTemplate.mapReduce(query,
"fooCollection",
"classpath:mongo/rpt_drone_monthly_map.js",
"classpath:mongo/rpt_drone_monthly_reduce.js",
mapReduceOption,
Bar.class);

 

But I found in log file of mongodb, the mapReduce command was run with option { out: { inline: 1} ...}

 

I read the source code of mapReduce function, MongoTemplate, and found that the mapReduceOptions parameter was not used to create MapReduceIterable object, and outputCollection and outputType of mapReduceOptions has never been processed.

 


Affects: 2.0.8 (Kay SR8)

Referenced from: pull request #588

Backported to: 2.0.10 (Kay SR10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants