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

    https://github.com/apache/incubator-hawq/pull/906#discussion_r83097391
  
    --- Diff: 
pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/FilterParser.java ---
    @@ -396,4 +387,12 @@ private Operation reverseOp(Operation operation) {
             operatorTranslationMap.put(8, Operation.HDOP_LIKE);
             return operatorTranslationMap;
         }
    +
    +    static private Map<Integer, LogicalOperation> 
initLogicalOperatorTransMap() {
    +        Map<Integer, LogicalOperation> integerLogicalOperationMap = new 
HashMap<>();
    --- End diff --
    
    I think we'll need to go with an array. I haven't found a way to do a 
reverse lookup of a Enum based on `int` values. Enum.valueOf() takes a String.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to