query-without-default-cluster.td 1016 B

123456789101112131415161718192021222324252627282930313233
  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. $ postgres-connect name=mz_system url=postgres://mz_system:materialize@${testdrive.materialize-internal-sql-addr}
  10. $ postgres-execute connection=mz_system
  11. DROP CLUSTER quickstart CASCADE
  12. > SELECT 0
  13. 0
  14. > SELECT 1 as id
  15. 1
  16. > SELECT 1 from (select mz_now(), now())
  17. 1
  18. # filtering isn't supported as a simple query today
  19. ! SELECT * FROM (VALUES (1), (2)) where column1 > 1
  20. contains:unknown cluster 'quickstart'
  21. ! SELECT generate_series(0, 10)
  22. contains:unknown cluster 'quickstart'
  23. # to make it easier to run the test again, let's recreate the quickstart cluster
  24. $ postgres-execute connection=mz_system
  25. CREATE CLUSTER quickstart REPLICAS ()