diff --git a/test/sqllogictest/retain_history.slt b/test/sqllogictest/retain_history.slt index c40765e66e7e3..95b5ce2310f62 100644 --- a/test/sqllogictest/retain_history.slt +++ b/test/sqllogictest/retain_history.slt @@ -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 @@ -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 @@ -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)