github-3374.slt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/3374.
  10. mode cockroach
  11. simple conn=mz_system,user=mz_system
  12. ALTER SYSTEM SET unsafe_enable_unorchestrated_cluster_replicas = true;
  13. ----
  14. COMPLETE 0
  15. statement ok
  16. create cluster c replicas (r1 (STORAGECTL ADDRESSES ['s:1'], STORAGE ADDRESSES ['st:1'], COMPUTECTL ADDRESSES ['c:1'], COMPUTE ADDRESSES ['ct:1']))
  17. statement ok
  18. set cluster = c
  19. statement ok
  20. create table t1 (f1 integer, f2 integer)
  21. statement ok
  22. create index i1 on t1 (f2)
  23. statement ok
  24. set cluster = quickstart
  25. statement ok
  26. begin;
  27. # The original github issue would panic here.
  28. query II
  29. select * from t1
  30. ----