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

create_random_batch fails with timestamp types having a timezone #7161

Closed
niebayes opened this issue Feb 20, 2025 · 0 comments · Fixed by #7162
Closed

create_random_batch fails with timestamp types having a timezone #7161

niebayes opened this issue Feb 20, 2025 · 0 comments · Fixed by #7162
Labels

Comments

@niebayes
Copy link
Contributor

Describe the bug

The arrow::util module contains a create_random_batch function for testing purpose.
When given a schema containing a field having a timestamp type with a timezone, the function fails due to the schema of the generated record batch is not consistent with the provided schema.
That's because the create_random_array function ignores the timezone of a timestamp type.

To Reproduce

Call the create_random_batch function with a schema containing a field having a timestamp type with a timezone.

Expected behavior

The create_random_batch function should respect the timezone of a timestamp type.

Additional context

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

Successfully merging a pull request may close this issue.

1 participant