Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions crates/executor/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use catalog_metastore::{
TableFormat as MetastoreTableFormat, TableIdent as MetastoreTableIdent, Volume, VolumeType,
models::volumes::create_object_store_from_url,
};
use datafusion::arrow::array::{Int64Array, RecordBatch};
use datafusion::arrow::array::{Int64Array, RecordBatch, StringArray};
use datafusion::arrow::datatypes::{DataType, Field, Schema as ArrowSchema, SchemaRef};
use datafusion::arrow::datatypes::{Fields, SchemaBuilder};
use datafusion::catalog::{CatalogProvider, SchemaProvider};
Expand Down Expand Up @@ -2766,7 +2766,15 @@ impl UserQuery {
false,
)]));
Ok(QueryResult::new(
vec![RecordBatch::new_empty(schema.clone())],
vec![
RecordBatch::try_new(
schema.clone(),
vec![Arc::new(StringArray::from(vec![
"Statement executed successfully.",
]))],
)
.context(ex_error::ArrowSnafu)?,
],
schema,
self.query_context.query_id,
))
Expand Down
Loading