Error message
When this error occurs
stat_options.histogram tunes the behavior of the histogram stat. If histogram is not present in the resolved stat set for that level, the options have nothing to apply to and the server rejects the configuration.
This can happen in three scenarios:
Scenario 1: enabled_stats is present but does not include histogram
[value_count, null_value_count] — no histogram, so the options are invalid.
Scenario 2: stat_options-only at a level where the parent has no histogram
[value_count, mean] — no histogram to tune.
Scenario 3: stat_options-only at scope when defaults has an empty stat set
histogram to tune.
How to fix
Either addhistogram to enabled_stats, or remove the histogram options:
Option A: Enable the stat
Related errors
- InvalidMaxBins — max_bins value out of range

