Open MinJunKweon opened 2 years ago
This issue is still occur now.
Thank you for opening this issue. We do not exclude that this could be a bug in Spring Batch. However, we would like to validate that with a minimal complete verifiable example.
Could you please take some time to create a minimal example that reproduces the problem? To help you in reporting your issue, we have prepared a project template that you can use as a starting point. Please check the Issue Reporting Guidelines for more details about this.
Thank you for your collaboration.
Bug description When using MongoItemReader with
setQuery(Query)
,setSort(Map<String, Sort.Direction>)
,Sort
doesn't works. If you wanna usesetSort()
method, you should usesetQuery(String)
method. (If you useMongoItemReaderBuilder
, it might bejsonQuery()
)Environment Spring Batch 4.3.5
Steps to reproduce
Expected behavior I think it should work too. But If Spring Data
Query
has sorts, I thinksorts()
method should be ignored. (use Query's sort definition) If you never mind it, let me create PR about this?Minimal Complete Reproducible example Please see Steps to reproduce