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

Support PrimitiveBooleanPhoenixArray when creating PhoenixArray from Boolean[]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: