Jefffrey commented on PR #19916:
URL: https://github.com/apache/datafusion/pull/19916#issuecomment-3823537314

   Why does this PR remove the logic to wrap children based on operator 
precedence in `Display`? It feels like an odd choice, with the reasoning 
provided as:
   
   > This simplifies the previous precedence-based logic and avoids ambiguity
   
   The previous logic was already quite simple; and were there cases where it 
was leading to ambiguity?
   
   If anything I feel `SqlDisplay` logic should follow suit in using precedence 
to decide when to use parentheses, to avoid needing to wrap every binary 
operator with them 🤔 


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

Reply via email to