Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shuiyisong committed Mar 8, 2024
1 parent 8044345 commit 891e8e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/query/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,22 @@ pub mod prelude;
mod signature;
use sqlparser_derive::{Visit, VisitMut};

/// new Output struct with output data(previously Output) and output meta
#[derive(Debug)]
pub struct Output {
pub data: OutputData,
pub meta: OutputMeta,
}

// sql output
/// Original Output struct
/// carrying result data to response/client/user interface
pub enum OutputData {
AffectedRows(usize),
RecordBatches(RecordBatches),
Stream(SendableRecordBatchStream),
}

/// OutputMeta stores meta information produced/generated during the execution
#[derive(Debug, Default)]
pub struct OutputMeta {
pub plan: Option<Arc<dyn PhysicalPlan>>,
Expand Down

0 comments on commit 891e8e2

Please sign in to comment.