after-restart.td 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. > SELECT true
  10. FROM mz_internal.mz_source_statuses
  11. WHERE
  12. name = 'schema_test' AND status = 'running';
  13. true
  14. # TODO: redesign ceased status database-issues#7687
  15. # # dummy subsource is put into error state
  16. # > SELECT true
  17. # FROM mz_internal.mz_source_statuses
  18. # WHERE
  19. # name = 'dummy' AND status = 'ceased'
  20. # AND
  21. # error ILIKE 'incompatible schema change%';
  22. # true
  23. # other table still has data
  24. > SELECT count(*) FROM other;
  25. 3
  26. $ mysql-connect name=mysql url=mysql://root@mysql password=${arg.mysql-root-password}
  27. $ mysql-execute name=mysql
  28. USE public
  29. INSERT INTO other VALUES (4), (5);
  30. > SELECT count(*) FROM OTHER;
  31. 5
  32. # Drop the source + subsources because some tests expect
  33. # all remaining sources at the end of the test to be
  34. # healthy.
  35. > DROP SOURCE schema_test CASCADE;