code: func (joins *TableJoinMap) ActivateRequiredJoins() error {
  	for k, join := range *joins {
  		if !join.Active {
  			continue
  		}
  
  		for _, name := range join.ActivateOtherJoins {
  			other, exists := (*joins)[name]
  			if !exists {
  				return errs.Errorf(`join "%s" not found for "%s" join`, name, k)
  			}
  
  			// Check if dependend join is already active
  			if other.Active {
  				continue
  			}
  
  			other.Active = true
  			if err := joins.ActivateRequiredJoins(); err != nil {
  				return errs.Wrapf(err, `failed to activate required joins for "%s" join`, k)
  			}
  		}
  	}
  	return nil
  }
docs: // ActivateRequiredJoins recursively walks over all given joins potentially
  // multiple times and activates all other required joins.