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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
