dilovancelik commented on code in PR #1790: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1790#discussion_r2025384167
########## src/ast/mod.rs: ########## @@ -5407,14 +5410,20 @@ impl fmt::Display for Statement { source, on, clauses, + output, } => { write!( f, "MERGE{int} {table} USING {source} ", int = if *into { " INTO" } else { "" } )?; write!(f, "ON {on} ")?; - write!(f, "{}", display_separated(clauses, " ")) + write!(f, "{}", display_separated(clauses, " "))?; + if output.is_some() { + let out = output.clone().unwrap(); + write!(f, " {out}")?; + } Review Comment: Yeah, that makes a lot of sense, it also looks a lot cleaner -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org