andygrove commented on code in PR #3136:
URL: https://github.com/apache/arrow-datafusion/pull/3136#discussion_r945773975
##########
datafusion-cli/src/command.rs:
##########
@@ -72,6 +76,22 @@ impl Command {
.print_batches(&batches, now)
.map_err(|e| DataFusionError::Execution(e.to_string()))
}
+ Self::Include(filename) => {
+ if let Some(filename) = filename {
+ let file = match File::open(filename) {
Review Comment:
Could we either use `?` or `map_err` here rather than this match?
--
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]