Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-638

Skip properties that are not part of the result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2 M3 (Moore)
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true
    • Sprint:
      Lovelace SR1

      Description

      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)
      
       

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            mp911de Mark Paluch
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 21 weeks, 2 days ago