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

SELECT JSON does not return the correct value for empty blobs




      In an attempt to fix the side effect of a problem CASSANDRA-13868 was committed in 2.2.11, 3.0.15, 3.11.1 and trunk.
      This patch introduced an issue on how empty values were rendered by SELECT JSON queries.
      Instead of returning the correct value for the type a null value was now returned.
      A user detected that problem for text column and opened CASSANDRA-14245 to request a fix for that problem. Unfortunately, I misunderstood the problem and the fix did not solve the real problem. It only made the code return 'an empty string instead of null values.

      The proper fix is to rollback the changes made for CASSANDRA-13868 and CASSANDRA-14245.
      Some unit tests also need to be added to test the behavior.


        1. 0001-Patch-applied-successfully.patch
          3.08 MB
          Ekaterina Dimitrova
        2. Screen Shot 2019-11-27 at 9.24.23 AM.png
          304 kB
          Ekaterina Dimitrova
        3. Screen Shot 2019-11-27 at 9.25.09 AM.png
          286 kB
          Ekaterina Dimitrova
        4. Screen Shot 2019-11-27 at 9.25.37 AM.png
          187 kB
          Ekaterina Dimitrova
        5. Screen Shot 2019-11-27 at 9.26.09 AM.png
          746 kB
          Ekaterina Dimitrova
        6. Screen Shot 2019-11-27 at 9.26.20 AM.png
          123 kB
          Ekaterina Dimitrova
        7. Screen Shot 2019-11-27 at 9.26.33 AM.png
          219 kB
          Ekaterina Dimitrova



            e.dimitrova Ekaterina Dimitrova
            blerer Benjamin Lerer
            Ekaterina Dimitrova
            Benjamin Lerer
            0 Vote for this issue
            2 Start watching this issue