Skip to content

Conversation

@liamzwbao
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Encapsulate s3 region retry logic into StatementExecutor

Are these changes tested?

Already covered by existing tests as this PR is to refactor logic

Are there any user-facing changes?

No

@liamzwbao liamzwbao force-pushed the issue-16559-refactor-cli-exec branch from f97946b to a69240c Compare July 1, 2025 14:02
@liamzwbao liamzwbao marked this pull request as ready for review July 1, 2025 14:56
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @liamzwbao ❤️

for statement in statements {
let adjusted =
AdjustedPrintOptions::new(print_options.clone()).with_statement(&statement);
StatementExecutor::new(statement)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is much nicer ❤️

@alamb alamb merged commit 1cc67ab into apache:main Jul 3, 2025
27 checks passed
@alamb
Copy link
Contributor

alamb commented Jul 3, 2025

Thanks again @liamzwbao -- keeping the code clean 💯

@liamzwbao liamzwbao deleted the issue-16559-refactor-cli-exec branch August 7, 2025 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor statement execution logic in datafusion-cli

2 participants