Skip to content

Test Duration in aggregation fuzz tests #16111

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

alamb
Copy link
Contributor

@alamb alamb commented May 20, 2025

Which issue does this PR close?

Rationale for this change

I noticed there was no coverage for Duration in the aggregation fuzz tests

What changes are included in this PR?

Add support for Durations

Are these changes tested?

Yes, in CI

Are there any user-facing changes?

No, test only

@alamb alamb changed the title Test Duration in fuzz tests Test Duration in aggregation fuzz tests May 20, 2025
Copy link
Contributor

@zhuqi-lucas zhuqi-lucas left a comment

Choose a reason for hiding this comment

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

LGTM Thanks @alamb !

@@ -100,6 +106,15 @@ impl RandomNativeData for IntervalMonthDayNanoType {
}
}

// Restrict Duration(Seconds) to i64::MIN / 1000 to i64::MAX / 1000 to
// avoid panics on pretty printing. See
// https://github.com/apache/arrow-rs/issues/7533
Copy link
Contributor

Choose a reason for hiding this comment

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

A good doc for it, thanks @alamb .

@alamb alamb marked this pull request as ready for review May 20, 2025 13:34
Copy link
Contributor

@2010YOUY01 2010YOUY01 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@alamb alamb merged commit febc77e into apache:main May 21, 2025
27 of 28 checks passed
@alamb
Copy link
Contributor Author

alamb commented May 21, 2025

Thank you @zhuqi-lucas and @2010YOUY01 for the reviews

@alamb alamb deleted the alamb/duration_in_agg_fuzz branch May 21, 2025 12:42
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