File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -791,6 +791,7 @@ impl AnalyzerContext<'_> {
791791 let scopes = parent_scopes. prepend ( scope) ;
792792 let ( struct_mapping, fields_schema) = analyze_struct_mapping ( & op. input , scopes) ?;
793793 let has_auto_uuid_field = op. auto_uuid_field . is_some ( ) ;
794+ let fingerprinter = Fingerprinter :: default ( ) . with ( & fields_schema) ?;
794795 let collect_op = AnalyzedReactiveOp :: Collect ( AnalyzedCollectOp {
795796 name : reactive_op. name . clone ( ) ,
796797 has_auto_uuid_field,
@@ -801,6 +802,7 @@ impl AnalyzerContext<'_> {
801802 CollectorSchema :: from_fields ( fields_schema, has_auto_uuid_field) ,
802803 scopes,
803804 ) ?,
805+ fingerprinter,
804806 } ) ;
805807 async move { Ok ( collect_op) } . boxed ( )
806808 }
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ pub struct AnalyzedCollectOp {
9191 pub has_auto_uuid_field : bool ,
9292 pub input : AnalyzedStructMapping ,
9393 pub collector_ref : AnalyzedCollectorReference ,
94+ /// Fingerprinter of the collector's schema. Used to decide when to reuse auto-generated UUIDs.
95+ pub fingerprinter : Fingerprinter ,
9496}
9597
9698pub enum AnalyzedPrimaryKeyDef {
You can’t perform that action at this time.
0 commit comments