if (node.isStateless()) {
boolean isDeterministic = true;
for (int i = 0; i < children.size(); i++) {
Expression child = children.get(i);
isDeterministic &= child.isDeterministic();
child.evaluate(null, ptr);
Object value = arrayElemDataType.toObject(ptr, child.getDataType(), child.getColumnModifier());
elements[i] = LiteralExpression.newConstant(value, child.getDataType(), child.isDeterministic()).getValue();
}
Object value = PArrayDataType.instantiatePhoenixArray(arrayElemDataType, elements);
return LiteralExpression.newConstant(value,