You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "izveigor (via GitHub)" <gi...@apache.org> on 2023/03/31 19:29:49 UTC

[GitHub] [arrow-datafusion] izveigor opened a new issue, #5815: feat: add optimization support to LOG and POWER functions

izveigor opened a new issue, #5815:
URL: https://github.com/apache/arrow-datafusion/issues/5815

   ### Is your feature request related to a problem or challenge?
   
   I want to suggest implementing rules to LOG and POWER functions in the optimizer. These are scalar functions like `concat` and `concat_ws`, which can be optimized by the application right now.
   
   These changes can be useful for users, who usually use mathematical formulas and calculations in their work.
   
   ### Describe the solution you'd like
   
   I would like to add the next rules for LOG and POWER functions optimization:
   
   Power:
   1) Power(a, 1) = a
   2) Power(a, 0) = 1
   3) Power(a, Log(a, b)) = b
   
   Log:
   1) Log(a, 1) = 0
   2) Log(a, a) = 1
   3) Log(a, Power(a, b)) => b
   
   All rules obey the laws of mathematics
   
   ### Describe alternatives you've considered
   
   If these functions are statistically rare used by users, this feature may be excess.
   
   ### Additional context
   
   _No response_


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

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb closed issue #5815: feat: add optimization support to LOG and POWER functions

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5815: feat: add optimization support to LOG and POWER functions
URL: https://github.com/apache/arrow-datafusion/issues/5815


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

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org