-
Notifications
You must be signed in to change notification settings - Fork 192
Specific message for string queries that do not project __id and __cas. #1114
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
Specific message for string queries that do not project __id and __cas. #1114
Conversation
Closes #1105. Co-authored-by: mikereiche <[email protected]>
It was present on non-Reactive, but missing from reactive. Closes #1096. Original pull request #1108. Co-authored-by: mikereiche <[email protected]>
Add QueryCriteria arrayContaining which maps to n1ql array_containing. Closes #1073. Original pull request #1109. Co-authored-by: mikereiche <[email protected]>
Support enum in AbstractCouchbaseConverter.convertForWriteIfNeeded() and also call that from MappingCouchbaseConverter.getPotentiallyConvertedSimpleWrite() Closes #1069. Original pull request #1112. Co-authored-by: mikereiche <[email protected]>
* Add QueryCriteria arrayContaining. Add QueryCriteria arrayContaining which maps to n1ql array_containing. Closes #1073. Original pull request #1109. * Support enum parameters to repository queries. Support enums in AbstractCouchbaseConverter.convertForWriteIfNeeded(). Closes #1069. Original pull request #1110. Co-authored-by: mikereiche <[email protected]>
src/main/java/org/springframework/data/couchbase/core/ReactiveFindByQueryOperationSupport.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/couchbase/core/ReactiveFindByQueryOperationSupport.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/couchbase/core/ReactiveFindByQueryOperationSupport.java
Outdated
Show resolved
Hide resolved
also @mikereiche is this needed for analytics as well? |
75723ca
to
302e6db
Compare
Yes, also needed in Analytics. |
302e6db
to
7854edd
Compare
ef9c5f4
to
d16bbff
Compare
String id = ""; | ||
long cas = 0; | ||
if (row.getString(TemplateUtils.SELECT_ID) == null) { | ||
throw new CouchbaseException("query did not project " + TemplateUtils.SELECT_ID |
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.
nit: should probably say in both exceptions "analytics query did not project".. to distinguish from a n1ql query in the logs if seen
@@ -0,0 +1,6 @@ | |||
package org.springframework.data.couchbase.domain; |
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.
needs a license header?
package org.springframework.data.couchbase.domain; | ||
|
||
public enum Iata { | ||
vie, |
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.
should they be VIE and XXX since we write enums upper caps?
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.
minor nits, otherwise looks good to me
9d455a8
to
749f437
Compare
…base into datacouch_1097_specific_message_for_string_queries_that_dont_project_cas_id
749f437
to
1bbf9e7
Compare
fixed "analytics query ..." message. |
Closes #1097.
Original pull request: #1114.