mz_recent_storage_usage.slt 1007 B

12345678910111213141516171819202122232425
  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. # Ensure that querying `mz_recent_storage_usage` by ID is a point lookup.
  11. query T multiline
  12. EXPLAIN OPTIMIZED PLAN WITH (humanized expressions) AS VERBOSE TEXT FOR SELECT * FROM mz_recent_storage_usage WHERE object_id = 'just checking explain plan; this value does not matter'
  13. ----
  14. Explained Query (fast path):
  15. Project (#0{object_id}, #1{size_bytes})
  16. ReadIndex on=mz_catalog.mz_recent_storage_usage mz_recent_storage_usage_ind=[lookup value=("just checking explain plan; this value does not matter")]
  17. Used Indexes:
  18. - mz_catalog.mz_recent_storage_usage_ind (lookup)
  19. Target cluster: mz_catalog_server
  20. EOF