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

    https://github.com/apache/incubator-hawq/pull/981#discussion_r85998628
  
    --- Diff: src/backend/access/external/pxffilters.c ---
    @@ -357,6 +393,46 @@ pxf_serialize_filter_list(List *expressionItems)
     
                switch (tag)
                {
    +                   case T_Var:
    +                   {
    +                           elog(DEBUG1, "pxf_serialize_filter_list: node 
tag %d (T_Var)", tag);
    +                           PxfFilterDesc *filter = (PxfFilterDesc *) 
palloc0(sizeof(PxfFilterDesc));
    +                           Var *var = (Var *) node;
    +                           if (var_to_pxffilter(var, filter))
    +                           {
    +                                   PxfOperand l = filter->l;
    +                                   PxfOperand r = filter->r;
    +                                   PxfOperatorCode o = filter->op;
    +                                   if (pxfoperand_is_attr(l) && 
pxfoperand_is_scalar_const(r))
    --- End diff --
    
    Can we have a scenario which is left operand is scalar const and right 
operand is attirbute ?


---
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