Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding decimal to documentation #242

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

Open
RaphDal wants to merge 18 commits into main
base: main
Choose a base branch
Loading
from rd_decimal
Open

Adding decimal to documentation #242

RaphDal wants to merge 18 commits into main from rd_decimal

Conversation

@RaphDal
Copy link

@RaphDal RaphDal commented Sep 24, 2025
edited
Loading

This PR adds the documentation to use the decimal type in QuestDB.

Related PR: #6068

TODO

Optional

  • Concept page

Copy link

github-actions bot commented Sep 24, 2025
edited
Loading

🚀 Build success!

Latest successful preview: https://preview-242--questdb-documentation.netlify.app/docs/

Commit SHA: 0632722

📦 Build generates a preview & updates link on each commit.

@javier javier self-requested a review October 8, 2025 09:11
Copy link
Contributor

@javier javier left a comment

Choose a reason for hiding this comment

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

A few comments, but super solid docs!


- `nanRate` is an `int` defining the frequency of occurrence of `NaN` values:
- `0`: No `NaN` will be returned.
- `1`: Will only return `NaN`.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not factual! I think it has been broken for a while also on other rnd generators as not the first time I see this. But if you execute with 1 you will see it returns only some nan, not all

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably this should be fixed in code, rather than on docs

Copy link
Author

@RaphDal RaphDal Oct 9, 2025

Choose a reason for hiding this comment

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

@puzpuzpuz I think the problem comes from the + 1 here, do you happen to know why it's there?

Copy link
Contributor

@puzpuzpuz puzpuzpuz Oct 9, 2025

Choose a reason for hiding this comment

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

I'm not aware of the initial reason to approach null rate like this in the random functions, but changing this would be a breaking change.

Copy link
Author

Choose a reason for hiding this comment

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

It would be a breaking change for other types, the decimal type hasn't been released yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the only pending point on my end to approve. If you agree this is not a decimal issue, but a problem with the current implementation, I am happy to approve

Copy link
Author

Choose a reason for hiding this comment

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

The documentation doesn't make sense with the current implementation, we should change one of them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. I am just not sure if the current behaviour is something we want to document, as I am not sure what it does

Copy link
Contributor

Choose a reason for hiding this comment

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

guess we can just approve, seeing as this is a wider problem and not related to decimal. The day (if any) it gets fixed for all other types, it will be fixed for decimal as well

@javier javier marked this pull request as ready for review October 14, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@puzpuzpuz puzpuzpuz puzpuzpuz left review comments

@javier javier javier approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /