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

Streaming generate_series should work with unknown as start #18729

Closed
stdrc opened this issue Sep 26, 2024 · 0 comments · Fixed by #18786
Closed

Streaming generate_series should work with unknown as start #18729

stdrc opened this issue Sep 26, 2024 · 0 comments · Fixed by #18786
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@stdrc
Copy link
Member

stdrc commented Sep 26, 2024

Seems we cannot correctly infer streaming generate_series with now() when the start argument is an unknown, as found by @kwannoel here: https://github.com/risingwavelabs/risingwave-docs/pull/2637#issuecomment-2373942740

dev=> create materialized view m1 as SELECT time::timestamptz FROM generate_series(
  '2020-01-01 00:00:00',
  now(),
  interval '1 hour'
) t(time);
ERROR:  Failed to run the query

Caused by:
  function generate_series(unknown, timestamp with time zone, interval) does not exist

Users have to do casting like '2020-01-01 00:00:00'::timestamptz.

This is not intended, should be fixed.

@stdrc stdrc added the type/bug Something isn't working label Sep 26, 2024
@stdrc stdrc self-assigned this Sep 26, 2024
@github-actions github-actions bot added this to the release-2.1 milestone Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
1 participant