max_result_size.slt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. mode cockroach
  10. simple conn=mz_system,user=mz_system
  11. ALTER SYSTEM SET max_result_size TO 1;
  12. ----
  13. db error: ERROR: parameter "max_result_size" cannot have value "1B": only supports values in range ByteSize(1048576)..
  14. simple conn=mz_system,user=mz_system
  15. ALTER SYSTEM SET max_result_size TO '1MB';
  16. ----
  17. COMPLETE 0
  18. simple conn=mz_system,user=mz_system
  19. ALTER SYSTEM SET enable_compute_peek_response_stash TO 'false';
  20. ----
  21. COMPLETE 0
  22. statement ok
  23. CREATE CLUSTER c1 SIZE 'mem-2';
  24. query I
  25. SELECT workers FROM mz_catalog.mz_cluster_replica_sizes JOIN mz_cluster_replicas USING (size) JOIN mz_clusters ON mz_cluster_replicas.cluster_id = mz_clusters.id WHERE mz_clusters.name != 'quickstart';
  26. ----
  27. 2
  28. 2
  29. 2
  30. 8
  31. statement ok
  32. CREATE TABLE t1 (a int, b text);
  33. statement ok
  34. INSERT INTO t1 SELECT * FROM generate_series(1, 10000), repeat('a', 100);
  35. statement ok
  36. SET cluster TO 'c1';
  37. # Note: 'total' in the error message here is important because it indicates we failed when
  38. # aggregating the result from multiple workers, as opposed to on any single worker.
  39. query error db error: ERROR: total result exceeds max size of 1048.6 KB
  40. SELECT * FROM t1;