logging.td 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. # This test only verifies that the log relations are published, not that they
  10. # have any specific output.
  11. # In case the environment has other replicas
  12. > SET cluster_replica = r1
  13. $ set-regex match=s\d+ replacement=SID
  14. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_addresses);
  15. 1
  16. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_channel_operators);
  17. 1
  18. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_channels);
  19. 1
  20. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_operator_dataflows);
  21. 1
  22. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_operator_parents);
  23. 1
  24. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_operator_reachability);
  25. 1
  26. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflow_operators);
  27. 1
  28. > SELECT count(*) FROM (SELECT count(*) FROM mz_introspection.mz_dataflows);
  29. 1
  30. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_scheduling_elapsed);
  31. 1
  32. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_scheduling_parks_histogram);
  33. 1
  34. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_compute_operator_durations_histogram);
  35. 1
  36. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_arrangement_sharing);
  37. 1
  38. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_arrangement_sizes);
  39. 1
  40. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_compute_exports);
  41. 1
  42. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_compute_frontiers);
  43. 1
  44. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_compute_import_frontiers);
  45. 1
  46. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_compute_error_counts);
  47. 1
  48. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_active_peeks);
  49. 1
  50. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_peek_durations_histogram);
  51. 1
  52. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_dataflow_shutdown_durations_histogram);
  53. 1
  54. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_records_per_dataflow);
  55. 1
  56. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_records_per_dataflow_operator);
  57. 1
  58. > SELECT count(*) FROM (SELECT count (*) FROM mz_introspection.mz_message_counts);
  59. 1
  60. ! DROP SCHEMA mz_introspection
  61. contains:cannot drop schema mz_introspection because it is required by the database system
  62. ! DROP VIEW mz_introspection.mz_compute_frontiers
  63. contains:cannot drop view mz_introspection.mz_compute_frontiers because it is required by the database system
  64. ! DROP SOURCE mz_introspection.mz_compute_frontiers_per_worker
  65. contains:cannot drop source mz_introspection.mz_compute_frontiers_per_worker because it is required by the database system
  66. > SELECT mz_columns.id, mz_columns.name, position, type
  67. FROM mz_views JOIN mz_columns USING (id)
  68. WHERE mz_views.name = 'mz_peek_durations_histogram_per_worker'
  69. ORDER BY position
  70. id name position type
  71. --------------------------------------
  72. SID worker_id 1 uint8
  73. SID type 2 text
  74. SID duration_ns 3 uint8
  75. SID count 4 bigint
  76. > SELECT mz_columns.id, mz_columns.name, position, type
  77. FROM mz_views JOIN mz_columns USING (id)
  78. WHERE mz_views.name = 'mz_scheduling_elapsed_per_worker'
  79. ORDER BY position
  80. id name position type
  81. --------------------------------------
  82. SID id 1 uint8
  83. SID worker_id 2 uint8
  84. SID elapsed_ns 3 bigint
  85. > SELECT mz_columns.id, mz_columns.name, position, type
  86. FROM mz_views JOIN mz_columns USING (id)
  87. WHERE mz_views.name = 'mz_compute_operator_durations_histogram_per_worker'
  88. ORDER BY position
  89. id name position type
  90. --------------------------------------
  91. SID id 1 uint8
  92. SID worker_id 2 uint8
  93. SID duration_ns 3 uint8
  94. SID count 4 bigint
  95. > SELECT mz_columns.id, mz_columns.name, position, type
  96. FROM mz_views JOIN mz_columns USING (id)
  97. WHERE mz_views.name = 'mz_scheduling_parks_histogram_per_worker'
  98. ORDER BY position
  99. id name position type
  100. -----------------------------------------
  101. SID worker_id 1 uint8
  102. SID slept_for_ns 2 uint8
  103. SID requested_ns 3 uint8
  104. SID count 4 bigint
  105. > SELECT mz_columns.id, mz_columns.name, position, type
  106. FROM mz_views JOIN mz_columns USING (id)
  107. WHERE mz_views.name = 'mz_message_counts_per_worker'
  108. ORDER BY position
  109. id name position type
  110. --------------------------------------------
  111. SID channel_id 1 uint8
  112. SID from_worker_id 2 uint8
  113. SID to_worker_id 3 uint8
  114. SID sent 4 bigint
  115. SID received 5 bigint
  116. SID batch_sent 6 bigint
  117. SID batch_received 7 bigint
  118. > SELECT mz_columns.id, mz_columns.name, position, type
  119. FROM mz_views JOIN mz_columns USING (id)
  120. WHERE mz_views.name = 'mz_dataflow_operator_reachability_per_worker'
  121. ORDER BY position
  122. id name position type
  123. --------------------------------------
  124. SID id 1 uint8
  125. SID worker_id 2 uint8
  126. SID port 3 uint8
  127. SID update_type 4 text
  128. SID time 5 mz_timestamp
  129. SID count 6 bigint
  130. > SELECT mz_columns.id, mz_columns.name, position, type
  131. FROM mz_views JOIN mz_columns USING (id)
  132. WHERE mz_views.name = 'mz_arrangement_sizes_per_worker'
  133. ORDER BY position
  134. id name position type
  135. --------------------------------------
  136. SID operator_id 1 uint8
  137. SID worker_id 2 uint8
  138. SID records 3 bigint
  139. SID batches 4 bigint
  140. SID size 5 bigint
  141. SID capacity 6 bigint
  142. SID allocations 7 bigint
  143. > SELECT mz_columns.id, mz_columns.name, position, type
  144. FROM mz_views JOIN mz_columns USING (id)
  145. WHERE mz_views.name = 'mz_arrangement_sharing_per_worker'
  146. ORDER BY position
  147. id name position type
  148. --------------------------------------
  149. SID operator_id 1 uint8
  150. SID worker_id 2 uint8
  151. SID count 3 bigint
  152. > SELECT mz_columns.id, mz_columns.name, position, mz_columns.type
  153. FROM mz_sources JOIN mz_columns USING (id)
  154. WHERE mz_sources.name = 'mz_compute_import_frontiers_per_worker'
  155. ORDER BY position
  156. id name position type
  157. --------------------------------------
  158. SID export_id 1 text
  159. SID import_id 2 text
  160. SID worker_id 3 uint8
  161. SID time 4 mz_timestamp
  162. > SELECT mz_columns.id, mz_columns.name, position, type
  163. FROM mz_views JOIN mz_columns USING (id)
  164. WHERE mz_views.name = 'mz_compute_error_counts_per_worker'
  165. ORDER BY position
  166. id name position type
  167. --------------------------------------
  168. SID export_id 1 text
  169. SID worker_id 2 uint8
  170. SID count 3 bigint