Skip to content

may need better support for CASTing in the future. See sqlCast() in this file. #676

Description

@github-actions

may need better support for CASTing in the future. See sqlCast() in this file.

// TODO: may need better support for CASTing in the future. See sqlCast() in this file.

                case OR -> input.stream().anyMatch(obj -> Boolean.class.cast(obj).booleanValue());
                case MINUS -> widenToDouble.apply(input.get(0)) - widenToDouble.apply(input.get(1));
                case PLUS -> widenToDouble.apply(input.get(0)) + widenToDouble.apply(input.get(1));
                // TODO: may need better support for CASTing in the future. See sqlCast() in this file.
                case CAST -> input.get(0) instanceof Number ? widenToDouble.apply(input.get(0)) : ensureComparable.apply(input.get(0));
                case SEARCH -> {
                    if (input.get(0) instanceof final ImmutableRangeSet range) {
                        assert input.get(1) instanceof Comparable

574e6ce855e095df10910a104022003f75d4c82c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions