mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 17:28:12 +00:00
feat(s3select): improve SelectObjectContent streaming (#3072)
* feat(s3select): improve SelectObjectContent streaming * fix(s3select): reject empty select expressions * fix(s3select): address streaming review feedback --------- Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
@@ -31,6 +31,7 @@ use datafusion::{
|
||||
},
|
||||
error::Result as DFResult,
|
||||
execution::{RecordBatchStream, SendableRecordBatchStream},
|
||||
sql::sqlparser::parser::ParserError,
|
||||
};
|
||||
use futures::{Stream, StreamExt};
|
||||
use rustfs_s3select_api::{
|
||||
@@ -106,7 +107,11 @@ impl QueryDispatcher for SimpleQueryDispatcher {
|
||||
|
||||
let stmt = match statements.front() {
|
||||
Some(stmt) => stmt.clone(),
|
||||
None => return Ok(None),
|
||||
None => {
|
||||
return Err(QueryError::Parser {
|
||||
source: ParserError::ParserError("empty SQL expression".to_string()),
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
let logical_plan = self
|
||||
|
||||
Reference in New Issue
Block a user