13-bounded-memory.sql 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. CREATE OR REPLACE VIEW v_bounded_memory_minimal_config AS
  10. SELECT
  11. bj.build_id,
  12. bmc.build_job_id,
  13. bmc.framework_version,
  14. bmc.scenario_name,
  15. bmc.minimization_target,
  16. min(bmc.tested_memory_mz_in_gb) AS min_tested_memory_mz_in_gb,
  17. min(bmc.tested_memory_clusterd_in_gb) AS min_tested_memory_clusterd_in_gb,
  18. status
  19. FROM bounded_memory_config bmc
  20. INNER JOIN build_job bj
  21. ON bmc.build_job_id = bj.build_job_id
  22. GROUP BY
  23. bj.build_id,
  24. bmc.build_job_id,
  25. bmc.framework_version,
  26. bmc.scenario_name,
  27. bmc.minimization_target,
  28. bmc.status
  29. ;
  30. ALTER VIEW v_bounded_memory_minimal_config OWNER TO qa;