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

allow conditions like ts < expr(now()) in temporal filter #17630

Closed
Tracked by #14085
stdrc opened this issue Jul 9, 2024 · 2 comments · Fixed by #17745
Closed
Tracked by #14085

allow conditions like ts < expr(now()) in temporal filter #17630

stdrc opened this issue Jul 9, 2024 · 2 comments · Fixed by #17745
Milestone

Comments

@stdrc
Copy link
Member

stdrc commented Jul 9, 2024

No description provided.

@github-actions github-actions bot added this to the release-1.10 milestone Jul 9, 2024
@stdrc stdrc changed the title for condition such as ts < expr(now()) the expression should maintain the monotonicity allow conditions like ts < expr(now()) in temporal filter Jul 9, 2024
@stdrc
Copy link
Member Author

stdrc commented Jul 10, 2024

Actually this is already done after #11454 and #14098.

@stdrc stdrc closed this as completed Jul 10, 2024
@st1page
Copy link
Contributor

st1page commented Jul 18, 2024

dev=> explain create materialized view mv as     select * from t1 where ts + interval '1 hour' < date_trunc('DAY',now());
ERROR:  Failed to run the query

Caused by:
  Conditions containing now must be of the form `input_expr cmp now() [+- const_expr]` or `now() [+- const_expr] cmp input_expr`, where `input_expr` references a column and contains no `now()`.

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