mohitgurav20 commented on issue #27950:
URL: https://github.com/apache/datafusion/issues/27950#issuecomment-7356038324

   Heyyy @alamb this looks like a nice one, I'd love to take it if you're not 
already planning to do it yourself.
   
   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.
   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.


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