v.20.4New Feature
Added isConstant function for checking constant expressions
Added function isConstant. This function checks whether its argument is constant expression and returns 1 or 0. It is intended for development, debugging and demonstration purposes. #10198 (alexey-milovidov)Why it matters
This feature helps users and developers verify whether a given expression is constant, aiding in development, debugging, and demonstration by providing insight into expression evaluation.How to use it
Use the function by passing any expression as an argument toisConstant. It will return 1 if the expression is constant and 0 otherwise, for example: SELECT isConstant(123) returns 1.