Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-777

Support null value for fixed length ARRAY

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Resolution: Fixed
    • None
    • 4.4.0
    • None
    • None
    • 646

    Description

      A null value for a fixed length array can be handled with a bitset tacked on the end of the array. If an element is set to null, then the bit at that index is set. Trailing nulls are not stored and an attempt to access an array past the current size returns null.

      Current behavior,
      PBinaryArray - Throws an exception when a null is inserted.
      PBooleanArray - null is considered as false when a null is inserted.
      PCharArray - Throws an exception when a null is inserted.
      PDateArray - Throws an exception when a null is inserted.
      PDoubleArray - null is considered as 0.0 when a null is inserted.
      PFloatArray - null is considered as 0.0 when a null is inserted.
      PIntegerArray - null is considered as 0 when a null is inserted.
      PLongArray - null is considered as 0 when a null is inserted.
      PSmallIntArray - null is considered as 0 when a null is inserted.
      PTimeArray - Throws an exception when a null is inserted.
      PTimeStampArray - Throws an exception when a null is inserted.
      PTinyIntArray - null is considered as 0 when a null is inserted.

      Attachments

        1. PHOENIX-777_addendumfor_testfailure.patch
          1 kB
          ramkrishna.s.vasudevan
        2. PHOENIX-777.patch
          24 kB
          Dumindu Buddhika

        Activity

          People

            Dumindux Dumindu Buddhika
            jamestaylor James R. Taylor
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: