| 9 | namespace binder { |
| 10 | |
| 11 | std::string ScalarFunctionExpression::toStringInternal() const { |
| 12 | if (function->name.starts_with("CAST")) { |
| 13 | return std::format("CAST({}, {})", ExpressionUtil::toString(children), |
| 14 | bindData->resultType.toString()); |
| 15 | } |
| 16 | return std::format("{}({})", function->name, ExpressionUtil::toString(children)); |
| 17 | } |
| 18 | |
| 19 | std::string ScalarFunctionExpression::getUniqueName(const std::string& functionName, |
| 20 | const expression_vector& children) { |