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

Skip properties that are not part of the result [DATACASS-638] #807

Closed
spring-projects-issues opened this issue Mar 12, 2019 · 0 comments
Closed
Assignees

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Mar 12, 2019

Mark Paluch opened DATACASS-638 and commented

With introducing projection support that limits the field selection, we need to skip absent properties.

Currently, we get the following exception for absent properties:

 

java.lang.IllegalArgumentException: Column [id] does not exist in table

	at org.springframework.util.Assert.isTrue(Assert.java:118)
	at org.springframework.data.cassandra.core.convert.ColumnReader.getColumnIndex(ColumnReader.java:163)
	at org.springframework.data.cassandra.core.convert.ColumnReader.get(ColumnReader.java:64)
	at org.springframework.data.cassandra.core.convert.ColumnReader.get(ColumnReader.java:56)
	at org.springframework.data.cassandra.core.convert.BasicCassandraRowValueProvider.getPropertyValue(BasicCassandraRowValueProvider.java:81)
	at org.springframework.data.cassandra.core.convert.BasicCassandraRowValueProvider.getPropertyValue(BasicCassandraRowValueProvider.java:34)

 

Referenced from: commits e295e61

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