You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the split-time validation thats happening for row splits is brittle in a way that it shouldn't be, and is running afoul of a buglet in add_combo_facet
Specifically, add_combo_facet seems to be creating a split result object whose labels component is missing the name (name is "") for the added facet. This is a bug, but not a very important one, because as you can see in the columns case, the core tabulation machinery doesn't care about the names on the labels vector (apparently).
Something is tripping it up in .checkvarsok, though.
As a side note, it seems that all our tests and examples only use add_combo_facet in column splits...
also, @cicdguy it said in the form that the log output portion would be formatted as code, but that didn't seem to have worked properly when the output starts with ">"
(as things copied from an R session are wont to do).
I was wrong about (harmless, it turns out) buglet being related to the error. .fixupvals does indeed fail to correctly name the label portion of the split result, but as I had initially expected, that doesn't actually cause any problems in practice.
The real culprit is that unlike add_combo_levels, add_combo_facet is not currently smart enough to handle the AllLevelsSentinel value.
Because add_overall_facet just calls directly down to add_combo_facet with the levels value of select_all_levels (ie the sentinel), it fails to do anything, resulting in a partition that has no data, thus causing all the downstream problems.
There are 2 solutions to this: fix add_combo_facet so it is checking for the sentinel and doing the right thing in that case, or decoupling add_overall_facet from add_combo_facet and implementing the behavior directly there.
I prefer the former from a design perspective but it doesn't really matter much in practice.
The behavior itself is trivial in both cases (modulo an if statement) because post-processing behavior functions accept fulldf as one of their arguments:
What happened?
Some of the split-time validation thats happening for row splits is brittle in a way that it shouldn't be, and is running afoul of a buglet in add_combo_facet
Specifically, add_combo_facet seems to be creating a split result object whose labels component is missing the name (name is "") for the added facet. This is a bug, but not a very important one, because as you can see in the columns case, the core tabulation machinery doesn't care about the names on the labels vector (apparently).
Something is tripping it up in .checkvarsok, though.
As a side note, it seems that all our tests and examples only use add_combo_facet in column splits...
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: