github-8257.slt 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 database-issues#8257.
  10. statement ok
  11. CREATE CLUSTER test REPLICAS(
  12. r1 (SIZE '1'),
  13. r2 (SIZE '1')
  14. )
  15. statement ok
  16. DROP CLUSTER REPLICA test.r1;
  17. statement ok
  18. CREATE SOURCE counter IN CLUSTER test FROM LOAD GENERATOR COUNTER
  19. query I
  20. SELECT min(counter) FROM counter
  21. ----
  22. 1
  23. statement ok
  24. DROP CLUSTER test CASCADE
  25. statement ok
  26. CREATE CLUSTER test REPLICAS(
  27. r1 (SIZE '1'),
  28. r2 (SIZE '1')
  29. )
  30. statement ok
  31. DROP CLUSTER REPLICA test.r2;
  32. statement ok
  33. CREATE SOURCE counter IN CLUSTER test FROM LOAD GENERATOR COUNTER
  34. query I
  35. SELECT min(counter) FROM counter
  36. ----
  37. 1