RDF error: Inconsistent deduction for auto return type when using .Filter

Hi Monica,

My collaborator (@skkwan) helped me figure out the issue. It seems that df.Filter doesn’t return exactly the same type as df. I’m still not sure why, but the fix is to add df.Filter to the else statement with a true statement and the code will run.

 ROOT::RDataFrame df(8); // some random rdf similar to the example provided [here](https://root.cern/doc/master/df025__RNode_8C.html)
 bool cond = False; // also try with True
 
auto function( ROOT::RDataFrame &df, bool cond) {
    if (cond){
         return df.Filter("rdf_entry < 3", "Apply filter");
     }else{     
         return df.Filter("True"; "Dummy filter, no events discarded");
     }    
}       

Thank you for your help,
Hichem