-
Notifications
You must be signed in to change notification settings - Fork 68
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
Implement AFTER and GREATER_THAN keyword #144 #164
Conversation
Codecov Report
@@ Coverage Diff @@
## master #164 +/- ##
=========================================
+ Coverage 78.61% 78.7% +0.09%
=========================================
Files 38 38
Lines 921 925 +4
Branches 130 130
=========================================
+ Hits 724 728 +4
Misses 134 134
Partials 63 63
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More Integration test is required for both After and Greater_than, including boundary data.
Assert.isTrue(criteria.getSubjectValues().size() == 1, | ||
"GREATER_THAN should have only one subject value"); | ||
|
||
parameters.add(Pair.with(subject, criteria.getSubjectValues().get(0))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not very sure if it works well when date, as we will convert date type to getTime(), before store in database. like this "date": 946656000000,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it can store in database like "date": 946656000000.
# Conflicts: # src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/AbstractQueryGenerator.java # src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/Criteria.java # src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaType.java # src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/MemoRepositoryIT.java # src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/MemoRepository.java
# Conflicts: # src/main/java/com/microsoft/azure/spring/data/cosmosdb/Constants.java # src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaType.java # src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ProjectRepository.java
No description provided.