Skip to content

Commit 58b0db2

Browse files
author
Devdutt Shenoi
committed
doc: explain methods
1 parent ebfcc97 commit 58b0db2

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/parseable/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ impl Parseable {
829829
Some(first_event_at.to_string())
830830
}
831831

832+
/// Updates schema by merging schemas stored by ingestors when running in Query mode
832833
pub async fn update_schema_when_distributed(
833834
&self,
834835
tables: &Vec<String>,

src/parseable/streams.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ impl Stream {
538538
Schema::try_merge(vec![schema, current_schema]).unwrap()
539539
}
540540

541+
/// Stores updated schema in-memory
541542
pub fn commit_schema(&self, schema: Schema) -> Result<(), StagingError> {
542543
let mut metadata = self.metadata.write().expect(LOCK_EXPECT);
543544
let current_schema = Schema::new(metadata.schema.values().cloned().collect::<Fields>());

src/storage/object_storage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
870870
Ok(())
871871
}
872872

873+
/// Stores updated schema into storage
873874
async fn commit_schema(
874875
&self,
875876
stream_name: &str,

0 commit comments

Comments
 (0)