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.