Skip to content

Commit

Permalink
Revert "tests: slt: harden retain_history.slt"
Browse files Browse the repository at this point in the history
This reverts commit 9bfaac4.
  • Loading branch information
rjobanp committed Oct 17, 2024
1 parent dd64a2a commit be5fa3a
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions test/sqllogictest/retain_history.slt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ idx_c FOR 240000
# Test subsource propagation. Test sources with and without subsources and view dependencies to
# ensure the alter code correctly ignores the views.
statement ok
CREATE SOURCE auction_house FROM LOAD GENERATOR AUCTION WITH (RETAIN HISTORY = FOR '1m')
CREATE SOURCE auction_house FROM LOAD GENERATOR AUCTION
----

statement ok
Expand Down Expand Up @@ -130,22 +130,13 @@ CREATE VIEW counter_view AS SELECT * FROM counter
----

query TTT
SELECT o.name, h.strategy, h.value
FROM mz_internal.mz_history_retention_strategies h
SELECT o.name, h.strategy, h.value FROM mz_internal.mz_history_retention_strategies h
JOIN mz_objects o ON o.id = h.id
LEFT OUTER JOIN mz_sources s ON s.id = o.id
LEFT OUTER JOIN mz_tables t ON t.id = o.id
WHERE o.id LIKE 'u%'
AND (
o.oid IN (SELECT oid FROM mz_sources)
OR o.oid IN (SELECT oid FROM mz_tables WHERE source_id IN (SELECT id FROM mz_sources WHERE name = 'auction_house'))
OR o.oid IN (SELECT oid FROM mz_indexes WHERE on_id IN (SELECT id FROM mz_views WHERE id like 'u%'))
OR o.name = 'tab_a'
)
ORDER BY o.name
----
accounts FOR 1000
auction_house FOR 60000
auction_house FOR 1000
auction_house_progress FOR 1000
auctions FOR 1000
bids FOR 1000
Expand All @@ -172,19 +163,19 @@ JOIN mz_objects o ON o.id = h.id
WHERE o.id LIKE 'u%'
ORDER BY o.name
----
accounts FOR 1000
accounts FOR 60000
auction_house FOR 60000
auction_house_progress FOR 1000
auctions FOR 1000
bids FOR 1000
auctions FOR 60000
bids FOR 60000
counter FOR 60000
counter_progress FOR 1000
idx_a FOR 420000
idx_b FOR 360000
idx_c FOR 240000
organizations FOR 1000
organizations FOR 60000
tab_a FOR 1000
users FOR 1000
users FOR 60000

statement ok
ALTER SOURCE counter RESET (RETAIN HISTORY)
Expand Down

0 comments on commit be5fa3a

Please sign in to comment.