@LiteralParameters({"p", "s"}) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType("decimal(p, s)") Slice value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.BIGINT) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.TINYINT) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(ColorType.NAME) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.BOOLEAN) boolean value, @IsNull boolean isNull) { return isNull; }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.INTERVAL_DAY_TO_SECOND) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.TIME_WITH_TIME_ZONE) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.SMALLINT) long value, @IsNull boolean isNull) { return isNull; }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.REAL) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.INTERVAL_YEAR_TO_MONTH) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.DOUBLE) double value, @IsNull boolean isNull) { return isNull; }
@LiteralParameters({"p", "s"}) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType("decimal(p, s)") long value, @IsNull boolean isNull) { return isNull; }
@ScalarOperator(INDETERMINATE) @SqlType(BOOLEAN) public static boolean indeterminate(@SqlType(JSON) Slice value, @IsNull boolean isNull) { return isNull; }
@LiteralParameters("x") @ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType("char(x)") Slice value, @IsNull boolean isNull) { return isNull; } }
@LiteralParameters("x") @ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType("varchar(x)") Slice value, @IsNull boolean isNull) { return isNull; } }
@ScalarFunction @SqlType(StandardTypes.BIGINT) public static long bad(ConnectorSession session, @IsNull boolean isNull) { return 0; } }
@ScalarFunction("test_is_null_void") @SqlType(StandardTypes.BOOLEAN) public static boolean testIsNullVoid(@SqlType("unknown") boolean value, @IsNull boolean isNull) { return isNull; }
@ScalarFunction("test_is_null_simple") @SqlType(StandardTypes.BIGINT) public static long testIsNullSimple(@SqlType(StandardTypes.BIGINT) long value, @IsNull boolean isNull) { if (isNull) { return 100; } return 2 * value; }
@ScalarFunction @SqlType(StandardTypes.BIGINT) public static long bad(@SqlType(StandardTypes.BIGINT) long value, @IsNull int isNull) { return 0; } }