Github user kaspersorensen commented on a diff in the pull request:

    https://github.com/apache/metamodel/pull/139#discussion_r95316508
  
    --- Diff: 
core/src/main/java/org/apache/metamodel/query/OperatorTypeImpl.java ---
    @@ -75,40 +75,44 @@ public static OperatorType convertOperatorType(String 
sqlType) {
             if (sqlType != null) {
                 sqlType = sqlType.trim().toUpperCase();
                 switch (sqlType) {
    -            case "=":
    -            case "==":
    -            case "EQ":
    -            case "EQUALS_TO":
    -                return OperatorType.EQUALS_TO;
    -            case "<>":
    -            case "!=":
    -            case "NE":
    -            case "NOT_EQUAL":
    -            case "NOT_EQUAL_TO":
    -            case "NOT_EQUALS":
    -            case "NOT_EQUALS_TO":
    -            case "DIFFERENT_FROM":
    -                return OperatorType.DIFFERENT_FROM;
    -            case ">":
    -            case "GT":
    -            case "GREATER_THAN":
    -                return OperatorType.GREATER_THAN;
    -            case ">=":
    -            case "=>":
    -            case "GREATER_THAN_OR_EQUAL":
    -                return OperatorType.GREATER_THAN_OR_EQUAL;
    -            case "IN":
    -                return OperatorType.IN;
    -            case "<":
    -            case "LT":
    -            case "LESS_THAN":
    -                return OperatorType.LESS_THAN;
    -            case "<=":
    -            case "=<":
    -            case "LESS_THAN_OR_EQUAL":
    -                return OperatorType.LESS_THAN_OR_EQUAL;
    -            case "LIKE":
    -                return OperatorType.LIKE;
    +                case "=":
    +                case "==":
    +                case "EQ":
    +                case "EQUALS_TO":
    +                    return OperatorType.EQUALS_TO;
    +                case "<>":
    +                case "!=":
    +                case "NE":
    +                case "NOT_EQUAL":
    +                case "NOT_EQUAL_TO":
    +                case "NOT_EQUALS":
    +                case "NOT_EQUALS_TO":
    +                case "DIFFERENT_FROM":
    +                    return OperatorType.DIFFERENT_FROM;
    +                case ">":
    +                case "GT":
    +                case "GREATER_THAN":
    +                    return OperatorType.GREATER_THAN;
    +                case ">=":
    +                case "=>":
    +                case "GREATER_THAN_OR_EQUAL":
    +                    return OperatorType.GREATER_THAN_OR_EQUAL;
    +                case "NOT IN":
    +                    return OperatorType.NOT_IN;
    +                case "IN":
    +                    return OperatorType.IN;
    +                case "<":
    +                case "LT":
    +                case "LESS_THAN":
    +                    return OperatorType.LESS_THAN;
    +                case "<=":
    +                case "=<":
    +                case "LESS_THAN_OR_EQUAL":
    +                    return OperatorType.LESS_THAN_OR_EQUAL;
    +                case "LIKE":
    +                    return OperatorType.LIKE;
    +                case "NOT_LIKE":
    --- End diff --
    
    We should definately add "NOT LIKE" here also (with space instead of 
underscore).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to