alamb commented on code in PR #7076:
URL: https://github.com/apache/arrow-datafusion/pull/7076#discussion_r1272677484
##########
datafusion-cli/src/exec.rs:
##########
@@ -88,7 +88,8 @@ pub async fn exec_from_lines(
}
// run the left over query if the last statement doesn't contain ‘;’
- if !query.is_empty() {
+ // ignore if it only consists of '\n'
+ if query.contains(|c| c != '\n') {
Review Comment:
maybe we could also check for spaces?
```suggestion
if query.contains(|c| c != '\n' && c != ' ') {
```
--
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]