yanlin-Lynn opened a new pull request #1396: [CALCITE-3278] Simplify the use to 
translate RexNode to Expression for evaluating.
URL: https://github.com/apache/calcite/pull/1396
 
 
   Currently, the method **forAggregation** of **RexToLixTranslator** is 
designed to work for translating aggregate functions, with some parameters that 
we actually do not need, if we just want to translate a single RexNode. And, 
the translated expression is a ParameterExpression, not fit for evaluating.
   
   This PR in an improvement to smplify the use of RexToLixTranslator.
   
   Changes:
   * Add a more universal create instance method for RexToLixTranslator to 
simplify the use.
   * Add a translate method to just return the raw expression, do not wrap it 
to ParameterExpression.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to