beliefer opened a new pull request, #37494: URL: https://github.com/apache/spark/pull/37494
### What changes were proposed in this pull request? Currently, V2 expressions missing the default `toString` and lead to unexpected result or duplicate code. This PR creates a new abstract class `AbstractExpression` so as we can add default `toString` using ToStringSQLBuilder. ### Why are the changes needed? The default `toString` could reuse `ToStringSQLBuilder` so that avoid duplicate code. The default `toString` also let developers no need implement `toString`, when creating a new V2 expression. ### Does this PR introduce _any_ user-facing change? 'No'. Just update the inner implementation. ### How was this patch tested? N/A -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
