alamb commented on issue #27950: URL: https://github.com/apache/datafusion/issues/27950#issuecomment-7378529796
> Heyyy [@alamb](https://github.com/alamb) this looks like a nice one, I'd love to take it if you're not already planning to do it yourself. Thanks -- I am not planning to do it myself > I went through exec.rs and my plan is basically what you described: add execute_statement to CliSessionContext with a default that just awaits the future, then wrap the StatementExecutor::execute call in exec_and_print so it runs once per statement. > That should cover planning, execution and printing, and the S3 retry too. I'd add a small test that records the calls, plus docs on the new method. I think it would also be nice to refactor datafusion-cli to use the new API (e.g. for its own statement timing) so this isn't dead code in the main tree > would you rather the hook gets the parsed Statement or the SQL text? I was leaning towards Statement since it prints as SQL anyway, but I'm happy to go whichever way you prefer. I agree parsed statement makes the most send -- 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]
