Movatterモバイル変換


[0]ホーム

URL:


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

No sampling over 281TB#19978

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Tmonster wants to merge2 commits intoduckdb:v1.4-andium
base:v1.4-andium
Choose a base branch
Loading
fromTmonster:fix_table_sample_reservoir

Conversation

@Tmonster
Copy link
Contributor

@TmonsterTmonster commentedNov 28, 2025
edited
Loading

Disable sampling over the Allocator::MAXIMUM_ALLOC_SIZE.

Error is thrown in the same place as what might happen if someone samples -1 rows.

Fixes#17780
Fixeshttps://github.com/duckdblabs/duckdb-internal/issues/5065

auto rows = sample_value.GetValue<int64_t>();
if (rows <0) {
throwParserException("Sample rows %lld out of range, must be bigger than or equal to 0", rows);
if (rows <0 || sample_value.GetValue<uint64_t>() >= Allocator::MAXIMUM_ALLOC_SIZE) {
Copy link
Collaborator

@MytherinMytherinNov 29, 2025
edited
Loading

Choose a reason for hiding this comment

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

The sample size is in rows but the allocator max size is in bytes - I suspect that sampling for281474976710656-1 rows will still throw the allocation error. Should we reduce the limit further / add a test for this?

Alternatively, we might want to not allocate all the space for the sample up-front if the sample size is very large - but that's obviously a larger change.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@MytherinMytherinMytherin left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Tmonster@Mytherin

[8]ページ先頭

©2009-2025 Movatter.jp