10-feature-benchmark.sql 1.8 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. -- result of individual benchmark scenarios
  10. CREATE TABLE feature_benchmark_result (
  11. build_job_id TEXT NOT NULL,
  12. framework_version TEXT NOT NULL,
  13. scenario_name TEXT NOT NULL,
  14. scenario_group TEXT, -- nullable for now to not break earlier versions
  15. scenario_version TEXT NOT NULL,
  16. cycle INT, -- nullable for now to not break earlier versions
  17. scale TEXT NOT NULL,
  18. is_regression BOOL, -- nullable for now to not break earlier versions (introduced with data version 21)
  19. wallclock DOUBLE,
  20. messages INT,
  21. memory_mz DOUBLE,
  22. memory_clusterd DOUBLE,
  23. wallclock_min DOUBLE,
  24. wallclock_max DOUBLE,
  25. wallclock_mean DOUBLE,
  26. wallclock_variance DOUBLE
  27. );
  28. -- This table holds results of runs that were discarded.
  29. CREATE TABLE feature_benchmark_discarded_result (
  30. build_job_id TEXT NOT NULL,
  31. scenario_name TEXT NOT NULL,
  32. cycle INT NOT NULL,
  33. is_regression BOOL, -- nullable for now to not break earlier versions (introduced with data version 21)
  34. wallclock DOUBLE,
  35. messages INT,
  36. memory_mz DOUBLE,
  37. memory_clusterd DOUBLE,
  38. wallclock_min DOUBLE,
  39. wallclock_max DOUBLE,
  40. wallclock_mean DOUBLE,
  41. wallclock_variance DOUBLE
  42. );
  43. ALTER TABLE feature_benchmark_result OWNER TO qa;
  44. ALTER TABLE feature_benchmark_discarded_result OWNER TO qa;
  45. GRANT SELECT, INSERT, UPDATE ON TABLE feature_benchmark_result TO "hetzner-ci";
  46. GRANT SELECT, INSERT, UPDATE ON TABLE feature_benchmark_discarded_result TO "hetzner-ci";