Open michae2 opened 2 years ago
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
Follow up from #79872: we currently support
SHOW STATISTICS ... WITH FORECAST
but thehistogram_id
field is always 0 for forecasts, andSHOW HISTOGRAM
does not work.For example:
We can show histograms of the collected statistics, but not the forecasted statistics:
As a workaround we can use
SHOW STATISTICS USING JSON ... WITH FORECAST
but it's pretty ugly:I think the trick to doing this will be to encode the table ID and column ID in the histogram_id.
Jira issue: CRDB-18713