-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
File "/opt/wikia/index-digest/indexdigest/linters/linter_0028_data_too_old.py", line 86, in check_data_too_old
1. * (metadata['data_size'] + metadata['index_size']) / 1024 / 1024
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
>show full tables;
+--------------------------------+------------+
| Tables_in_discussion_migration | Table_type |
+--------------------------------+------------+
| delete_ids | BASE TABLE |
| migrate_batch | BASE TABLE |
| migrated | VIEW |
| site_status | BASE TABLE |
| to_migrate | VIEW |
+--------------------------------+------------+
--
>SELECT ENGINE, TABLE_ROWS, DATA_LENGTH, INDEX_LENGTH FROM information_schema.TABLES WHERE TABLE_SCHEMA='discussion_migration' AND TABLE_NAME='migrated';
+--------+------------+-------------+--------------+
| ENGINE | TABLE_ROWS | DATA_LENGTH | INDEX_LENGTH |
+--------+------------+-------------+--------------+
| NULL | NULL | NULL | NULL |
+--------+------------+-------------+--------------+Test case
mysql> CREATE TABLE t (qty INT, price INT);
mysql> INSERT INTO t VALUES(3, 50);
mysql> CREATE VIEW v AS SELECT qty, price, qty*price AS value FROM t;
mysql> SELECT * FROM v;
+------+-------+-------+
| qty | price | value |
+------+-------+-------+
| 3 | 50 | 150 |
+------+-------+-------+Reactions are currently unavailable