File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed 
packages/compass-data-modeling/src/store Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export function startAnalysis(
233233                    cancelController . signal , 
234234                    ( err )  =>  { 
235235                      logger . log . warn ( 
236-                         mongoLogId ( 1_001_000_357 ) , 
236+                         mongoLogId ( 1_001_000_371 ) , 
237237                        'DataModeling' , 
238238                        'Failed when identifying relationship for the collection' , 
239239                        {  ns,  error : err . message  } 
Original file line number Diff line number Diff line change @@ -171,6 +171,10 @@ export async function inferForeignToLocalRelationshipsForCollection(
171171              . flatMap ( ( doc )  =>  { 
172172                return  getValuesFromPath ( doc ,  propPath ) ; 
173173              } ) 
174+               . filter ( ( doc )  =>  { 
175+                 // remove missing values from the data sample 
176+                 return  doc  !==  undefined  &&  doc  !==  null ; 
177+               } ) 
174178              // in case sample data is an array that contains a lot of values, 
175179              // we limit the amount of samples to reduce the matching time 
176180              . slice ( 0 ,  100 ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments