&& literalValue(call.getOperands().get(1)) != null) { value = literalValue(call.getOperands().get(1)); } else if (call.getOperands().get(1) instanceof RexInputRef && literalValue(call.getOperands().get(0)) != null) { value = literalValue(call.getOperands().get(0)); } else { return null; if (literalValue(call.getOperands().get(2)) != null && literalValue(call.getOperands().get(3)) != null) { value1 = literalValue(call.getOperands().get(2)); value2 = literalValue(call.getOperands().get(3)); } else { return null; ImmutableList.builder(); for (RexNode operand : Util.skip(call.operands)) { final Long element = literalValue(operand); if (element == null) { return null;
|| SqlTypeName.TIMESTAMP == rhsLiteral.getTypeName() || SqlTypeName.DATE == rhsLiteral.getTypeName()) { Long millisSinceEpoch = DruidDateTimeUtils.literalValue(rexNode); if (millisSinceEpoch == null) { throw new AssertionError(
&& literalValue(call.getOperands().get(1), timeZone) != null) { value = literalValue(call.getOperands().get(1), timeZone); } else if (call.getOperands().get(1) instanceof RexInputRef && literalValue(call.getOperands().get(0), timeZone) != null) { value = literalValue(call.getOperands().get(0), timeZone); } else { return null; if (literalValue(call.getOperands().get(2), timeZone) != null && literalValue(call.getOperands().get(3), timeZone) != null) { value1 = literalValue(call.getOperands().get(2), timeZone); value2 = literalValue(call.getOperands().get(3), timeZone); } else { return null; ImmutableList.builder(); for (RexNode operand : Util.skip(call.operands)) { final TimestampString element = literalValue(operand, timeZone); if (element == null) { return null;
.literalValue(e, TimeZone.getTimeZone(timeZone)); if (timestampString == null) { throw new AssertionError(
|| SqlTypeName.TIME_WITH_LOCAL_TIME_ZONE == sqlTypeName) { return DruidExpressions.numberLiteral( DruidDateTimeUtils.literalValue(rexNode)); } else if (SqlTypeName.BOOLEAN == sqlTypeName) { return DruidExpressions.numberLiteral(RexLiteral.booleanValue(rexNode) ? 1 : 0);
&& callType.isNullable() && !operandType.isNullable()) { return literalValue(operand);
&& callType.isNullable() && !operandType.isNullable()) { return literalValue(operand, timeZone);