github-795.td 932 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. # Regression test for https://github.com/MaterializeInc/database-issues/issues/795.
  10. #
  11. # Verifies that a deep stack of dependencies can be properly created.
  12. > CREATE MATERIALIZED VIEW test1 AS SELECT 1
  13. > CREATE MATERIALIZED VIEW test2 AS SELECT * FROM test1
  14. > CREATE MATERIALIZED VIEW test3 AS SELECT * FROM test2
  15. > CREATE MATERIALIZED VIEW test4 AS SELECT * FROM test3
  16. > CREATE MATERIALIZED VIEW test5 AS SELECT * FROM test4
  17. > SELECT * FROM test1
  18. 1
  19. > SELECT * FROM test2
  20. 1
  21. > SELECT * FROM test3
  22. 1
  23. > SELECT * FROM test4
  24. 1
  25. > SELECT * FROM test5
  26. 1