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

generate_series hangs indefinitely when providing a step of less than 1 day #11823

Closed
Abdullahsab3 opened this issue Aug 5, 2024 · 2 comments · Fixed by #11907
Closed

generate_series hangs indefinitely when providing a step of less than 1 day #11823

Abdullahsab3 opened this issue Aug 5, 2024 · 2 comments · Fixed by #11907
Labels
bug Something isn't working

Comments

@Abdullahsab3
Copy link
Contributor

Describe the bug

When using dates for generate_series and providing a step of less than 1 day, Datafusion hangs indefinitely without any failures/successes (or maybe I didn't wait long enough :-) )

To Reproduce

select generate_series(date '2023-01-01', date '2023-02-01', interval '1 hour');

Expected behavior

Return the grouping, or an error to indicate it may not be implemented/expected

Additional context

No response

@tshauck
Copy link
Contributor

tshauck commented Aug 6, 2024

Edit: understand a little bit better what is happening. Comment below is out of date.

I took a quick look here, and I think the root cause may be in arrow.

For one, the generate series uses a Date32, I tried to change it to a ate64, but then ran into what I think is an issue with adding IntervalMonthDayNanoType to a date. See apache/arrow-rs#6198 for more info.

@alamb
Copy link
Contributor

alamb commented Aug 9, 2024

@tshauck has a PR up that fixes this ❤️ -- #11907. I expect it will be merged shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants