Open sadielbartholomew opened 4 months ago
Thanks for summarising this discussion, Sadie. Would making the default verbose=2
be sufficient? Followed by a single helpful hint message if any "unaggregatable" messages were printed? I'm not too keen on highlighting when the number of fields in equals the number of fields out - that's not always an error!
(In our summit today) a user has conveyed that they would like to get explicit notification when a call to
cf.aggregate
doesn't aggregate the input any further, e.g for the case ofh
from the example below unless verbosity is set to at least level of2
/info
there is nothing that indicates that the entire FieldList was not aggregatable further, i.e. aggregation didn't work, and even at level2
you have to count the fields that are mentioned as being unaggregatable or check the length of the resultant FieldList to confirm this.I agree that the above is not ideal since lack of combination of fields from the input could easily be seen as a 'failure' outcome and therefore to me merits at least a
3
/warning
level output, with a summary line to cover the whole FieldList result and not just each field individually as per the log output from2
.Example
My suggestion is, specifically, that
h = cf.aggregate(g) # won't aggregate further
will here report a line stating something along the lines of "FieldList was not aggregatable." and perhaps we can make the suggestion of (after the previous) "Try applying further keywords to relax the aggregation conditions if you wish to try to combine the fields further.".