File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -829,6 +829,7 @@ impl Parseable {
829
829
Some ( first_event_at. to_string ( ) )
830
830
}
831
831
832
+ /// Updates schema by merging schemas stored by ingestors when running in Query mode
832
833
pub async fn update_schema_when_distributed (
833
834
& self ,
834
835
tables : & Vec < String > ,
Original file line number Diff line number Diff line change @@ -538,6 +538,7 @@ impl Stream {
538
538
Schema :: try_merge ( vec ! [ schema, current_schema] ) . unwrap ( )
539
539
}
540
540
541
+ /// Stores updated schema in-memory
541
542
pub fn commit_schema ( & self , schema : Schema ) -> Result < ( ) , StagingError > {
542
543
let mut metadata = self . metadata . write ( ) . expect ( LOCK_EXPECT ) ;
543
544
let current_schema = Schema :: new ( metadata. schema . values ( ) . cloned ( ) . collect :: < Fields > ( ) ) ;
Original file line number Diff line number Diff line change @@ -870,6 +870,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
870
870
Ok ( ( ) )
871
871
}
872
872
873
+ /// Stores updated schema into storage
873
874
async fn commit_schema (
874
875
& self ,
875
876
stream_name : & str ,
You can’t perform that action at this time.
0 commit comments