dhatchayani commented on a change in pull request #3557: [CARBONDATA-3649] Hive 
expression is pushed down to carbon
URL: https://github.com/apache/carbondata/pull/3557#discussion_r363647514
 
 

 ##########
 File path: 
hadoop/src/main/java/org/apache/carbondata/hadoop/api/CarbonInputFormat.java
 ##########
 @@ -455,7 +459,26 @@ protected DataMapFilter getFilterPredicates(Configuration 
configuration) {
     try {
       String filterExprString = configuration.get(FILTER_PREDICATE);
       if (filterExprString == null) {
-        return null;
+        String expr = configuration.get(TableScanDesc.FILTER_EXPR_CONF_STR);
+        if (expr == null) {
+          return null;
+        }
+        ExprNodeGenericFuncDesc exprNodeGenericFuncDesc =
+            Utilities.deserializeObject(expr, ExprNodeGenericFuncDesc.class);
+        LOG.debug("hive expression:" + 
exprNodeGenericFuncDesc.getGenericUDF());
 
 Review comment:
   please add isDebugEnabled() check, here and all other places

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to