| 1 |
-- source ../include/ps_truncate_all_tables.inc |
| 2 |
# Tests for sys schema |
| 3 |
# Verify the sys.metrics and sys.metrics_56 views |
| 4 |
|
| 5 |
# TODO: Bug#30760026. |
| 6 |
# View metadata updates make the view columns after |
| 7 |
# the first server restart different from what they look |
| 8 |
# like after an upgrade, because the view meta data update |
| 9 |
# triggered by the storing of the DD meta data for the |
| 10 |
# underlying entities is done using sql_mode=0, which |
| 11 |
# is different from the sql_mode used during CREATE |
| 12 |
# (i.e. the default sql_mode). |
| 13 |
# |
| 14 |
# As a short term fix, to avoid noise from test runs, |
| 15 |
# we mask the values that become different in order to |
| 16 |
# get deterministic results. This short term fix should |
| 17 |
# be removed when the underlying issue is fixed. |
| 18 |
--replace_column 3 X 5 X |
| 19 |
|
| 20 |
# Ensure structure changes don't slip in |
| 21 |
DESC sys.metrics; |
| 22 |
|
| 23 |
# Make sure view select does not error, but ignore results |
| 24 |
--disable_result_log |
| 25 |
SELECT * FROM sys.metrics; |
| 26 |
--enable_result_log |