verify-data.td 1010 B

123456789101112131415161718192021222324252627282930
  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 COUNT(*) FROM t1;
  10. 500000
  11. > SELECT COUNT(*) FROM t2;
  12. 500000
  13. # We can encounter different errors here:
  14. # - encounter an alter table error if the NOT NULL constraint dropped
  15. # - a NULL decoding failure if the NOT NULL constraint is re-instated
  16. # after being dropped and MZ reboots.
  17. ! SELECT * FROM alter_fail_drop_constraint;
  18. contains:Source error
  19. ! SELECT * FROM alter_fail_drop_col;
  20. contains:incompatible schema change
  21. # Ensure non-definite errors are cleared.
  22. > SELECT COUNT(*) = 0 FROM mz_internal.mz_source_statuses WHERE error LIKE '%Connection refused%';
  23. true
  24. ! SELECT * FROM t0
  25. contains:unknown catalog item 't0'