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

refactor(e2e): use __NOW__ substitution in e2e test for generate_series ends with now() #17527

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions e2e_test/streaming_now/now.slt → e2e_test/streaming/now.slt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
system ok
./risedev psql -c "
control substitution on

statement ok
create materialized view mv as
select * from generate_series(
to_timestamp($(date +%s)) - interval '10 second',
-- $__NOW__ is in nanoseconds, `to_timestamp` expects seconds
to_timestamp($__NOW__ / 1000.0 / 1000.0 / 1000.0) - interval '10 second',
now(),
interval '1 second'
);
"

statement ok
flush;
Expand Down
1 change: 0 additions & 1 deletion e2e_test/streaming_now/README

This file was deleted.

Loading