Skip to content

feat(core): hints for handling histogram out of bounds error for approx_percentile()/approx_median()#6446

Merged
bluestreak01 merged 2 commits intoquestdb:masterfrom
peter007-cmd:peter-fix_add_err_hints_hist
Dec 3, 2025
Merged

feat(core): hints for handling histogram out of bounds error for approx_percentile()/approx_median()#6446
bluestreak01 merged 2 commits intoquestdb:masterfrom
peter007-cmd:peter-fix_add_err_hints_hist

Conversation

@peter007-cmd
Copy link
Copy Markdown
Contributor

This PR provides the user with hints to resolve the Histogram out of Bounds error which occurs during the approx_median(d) query,when the inserted values exceed the allowed range for the Histogram.In this case the default precision value for median is set to be 1.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Nov 25, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

.put(" is out of bounds for histogram, current covered range [")
.put(currentLowestValueInAutoRange).put(", ").put(currentHighestValueLimitInAutoRange)
.put(") cannot be extended any further.\nCaused by: ").put(ex.getMessage());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: redundant newline here and on L1282

@puzpuzpuz puzpuzpuz changed the title feat(core): Add hints for handling histogram out of bounds error feat(core): hints for handling histogram out of bounds error for approx_percentile()/approx_median() Dec 3, 2025
@bluestreak01 bluestreak01 merged commit 1ae7ee2 into questdb:master Dec 3, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants