Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DATACASS-555 - minor fix to CqlTemplate #133

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

Closed
CodeSmell wants to merge 1 commit into spring-projects:master from CodeSmell:minorBug555

Conversation

@CodeSmell
Copy link
Contributor

@CodeSmell CodeSmell commented Jun 4, 2018

Allow for caching the prepared statements in the CqlTemplate if a PreparedStatementCache implementation is provided
https://jira.spring.io/browse/DATACASS-555

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Copy link
Contributor Author

CodeSmell commented Jun 4, 2018
edited
Loading

@mp911de

Created separate PR for this when saw the build failing.
Running mvn clean test locally works, but that is b/c my Cassandra version is 3.11.2.

The local time tests, when Cassandra version is 2.2.10, are failing in CassandraTypeMappingIntegrationTests on Travis CI

A quick look and can't see why these changes would impact this
operations.insert(entity);

Seems related to this
https://gist.github.com/mp911de/b61a1a24bd824d0742a6b2e31ecb4861

As the error is

nested exception is com.datastax.driver.core.exceptions.InvalidQueryException: Invalid INTEGER constant (3723000) for "localtime" of type time

any thoughts?

Copy link
Member

mp911de commented Jun 5, 2018
edited
Loading

This issue was fixed in Cassandra 3.0.8 and 3.8 with CASSANDRA-11798. We require symmetric data types and the problem with time was that reading-wise it returned a number whereas updating required a string literal. time is only supported on Cassandra versions 3.0.8/3.8 and higher.

We will remove the failing build profile from the Travis CI build to omit confusion.

See also:

Copy link
Member

mp911de commented Jun 5, 2018

I filed DATACASS-563 to address the failing tests with Cassandra 2.2.

mp911de pushed a commit that referenced this pull request Jun 5, 2018
mp911de added a commit that referenced this pull request Jun 5, 2018
Add Javadoc. Tweak Javadoc for consistency. Refactor SimpleReactivePreparedStatementCreator into newReactivePreparedStatementCreator(...) method. Reformat code.
Original pull request: #133.
mp911de pushed a commit that referenced this pull request Jun 5, 2018
mp911de added a commit that referenced this pull request Jun 5, 2018
Add Javadoc. Tweak Javadoc for consistency. Refactor SimpleReactivePreparedStatementCreator into newReactivePreparedStatementCreator(...) method. Reformat code.
Original pull request: #133.
Copy link
Member

mp911de commented Jun 5, 2018

Thanks a lot. That's merged, polished, and backported now.

CodeSmell reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /