Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-1480

CFMetaData.convertToThrift makes subcomparator_type empty string instead of null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7 beta 2
    • Legacy/CQL
    • None
    • Normal

    Description

      As a result of CASSANDRA-891 adding a CFMetaData.convertToThrift method, the values such as subcomparator_type are defaulted to empty string instead of null. That makes it so, for example, in ColumnFamilyRecordReader, in its RowIterator, the check for only null is insufficient. It also needs to check for a blank value.

      After a discussion about it in IRC, Jonathan said it was probably easier to just change the creation to give a null value instead of empty string.

      Attachments

        1. 1480.txt
          2 kB
          Jon Hermes

        Issue Links

          Activity

            People

              jhermes Jon Hermes
              jeromatron Jeremy Hanna
              Jon Hermes
              Jeremy Hanna
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: