alamb commented on issue #1634:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/issues/1634#issuecomment-2571390419

   I don't understand the usecase for preserving the original formatting after 
`Display` the AST.
   
   Specifically, to preserve the original SQL for error messages you could also 
keep the actual original SQL string somewhere and on error construct the error 
message using the orignal SQL (and the locations that are now in Spans)
   
   I think you could take that approach today without any additional work.
   
   As you hint in this description, trying to preserve the original formatting 
would likely be a very large undertaking (and thus I suspect practically 
infeasible given the amount of engineering we have available)
   


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