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

Support PrimitiveBooleanPhoenixArray when creating PhoenixArray from Boolean[]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: None
    • Labels:
    • Flags:
      Patch

      Description

      Currently, when phoenix array is created from a boolean array, PhoenixArray in instantiated instead of PrimitiveBooleanPhoenixArray.

      PArrayDataType.instantiatePhoenixArray(type, Boolean[] {true, false});

      Other scalar/primitive types implement PhoenixArrayFactory to take advantage of primitive arrays. E.g.

      PArrayDataType.instantiatePhoenixArray(type, Integer[] {1,2});

      returns PrimitiveIntPhoenixArray.

        Attachments

          Activity

            People

            • Assignee:
              iwritecode Alex Warshavsky
              Reporter:
              iwritecode Alex Warshavsky
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: