Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR #88539 - sql: add telemetry for statistics forecast usage #15328

Open
cockroach-teamcity opened this issue Oct 10, 2022 · 0 comments
Open

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Oct 10, 2022

Exalate commented:

Related PR: cockroachdb/cockroach#88539
Commit: cockroachdb/cockroach@ab38868


Release note (ops change): Add five new fields to the sampled_query
telemetry events:

  • ScanCount: Number of scans in the query plan.
  • ScanWithStatsCount: Number of scans using statistics (including
    forecasted statistics) in the query plan.
  • ScanWithStatsForecastCount: Number of scans using forecasted
    statistics in the query plan.
  • TotalScanRowsWithoutForecastsEstimate: Total number of rows read by
    all scans in the query, as estimated by the optimizer without using
    forecasts.
  • NanosSinceStatsForecasted: The greatest quantity of nanoseconds that
    have passed since the forecast time (or until the forecast time, if it
    is in the future, in which case it will be negative) for any table
    with forecasted stats scanned by this query.

Jira Issue: DOC-5916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants