alamb commented on code in PR #2532:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2532#discussion_r4061447024
##########
src/ast/mod.rs:
##########
@@ -1966,7 +1966,8 @@ impl fmt::Display for Expr {
| UnaryOperator::DoubleAt
| UnaryOperator::QuestionDash
| UnaryOperator::QuestionPipe
- ) {
+ ) || (op == &UnaryOperator::Minus &&
starts_with_operator_char(expr))
Review Comment:
Same comment as
https://github.com/apache/datafusion-sqlparser-rs/pull/2533#discussion_r4061439474
-- I think if you restructured this code to match it would be easier to
undertstand the behavior and coverage
--
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]