Make --explain cummulative. Update char_chunking.t. Reword checksum query comments.

This commit is contained in:
Daniel Nichter
2011-10-12 11:22:13 -06:00
parent 271cd850d6
commit 083fb1b8ca
6 changed files with 232 additions and 56 deletions

View File

@@ -1,9 +1,17 @@
test ascii SELECT /*test.ascii:1/8*/ 0 AS chunk_num, COUNT(*) AS cnt, COALESCE(LOWER(CONV(BIT_XOR(CAST(CRC32(CONCAT_WS('#', `i`, `c`)) AS UNSIGNED)), 10, 16)), 0) AS crc FROM `test`.`ascii` FORCE INDEX (`c`) WHERE (`c` < ')')
test ascii `c` < ')'
test ascii `c` >= ')' AND `c` < '1'
test ascii `c` >= '1' AND `c` < '9'
test ascii `c` >= '9' AND `c` < 'A'
test ascii `c` >= 'A' AND `c` < 'I'
test ascii `c` >= 'I' AND `c` < 'Q'
test ascii `c` >= 'Q' AND `c` < 'Y'
test ascii `c` >= 'Y'
--
-- test.ascii
--
REPLACE INTO `percona`.`checksums` (db, tbl, chunk, chunk_index, lower_boundary, upper_boundary, this_cnt, this_crc) SELECT ?, ?, ?, ?, ?, ?, COUNT(*) AS cnt, COALESCE(LOWER(CONV(BIT_XOR(CAST(CRC32(CONCAT_WS('#', `i`, `c`)) AS UNSIGNED)), 10, 16)), 0) AS crc FROM `test`.`ascii` FORCE INDEX(`c`) WHERE ((`c` >= ?)) AND ((`c` <= ?)) ORDER BY `c` /*checksum chunk*/
SELECT /*!40001 SQL_NO_CACHE */ `c` FROM `test`.`ascii` FORCE INDEX(`c`) WHERE ((`c` >= ?)) ORDER BY `c` LIMIT ?, 2 /*next chunk boundary*/
1 burt
2 Cameron Frances
3 Fred jane
4 jayne kirk
5 Kirsten Mr. Rogers
6 Natalie Sean
7 sidney Zesus!
8 Zesus!! ZESUS!!!

View File

@@ -1,9 +1,2 @@
DATABASE TABLE CHUNK HOST ENGINE COUNT CHECKSUM TIME WAIT STAT LAG
test ascii 0 127.1 MyISAM 1 25e3643f 0 0 NULL NULL
test ascii 1 127.1 MyISAM 2 1eb24fbb 0 0 NULL NULL
test ascii 2 127.1 MyISAM 0 NULL 0 0 NULL NULL
test ascii 3 127.1 MyISAM 2 fb3ab74d 0 0 NULL NULL
test ascii 4 127.1 MyISAM OVERSIZE NULL NULL NULL NULL NULL
test ascii 5 127.1 MyISAM OVERSIZE NULL NULL NULL NULL NULL
test ascii 6 127.1 MyISAM 31 77958122 0 0 NULL NULL
test ascii 7 127.1 MyISAM 5 3c0ef0c2 0 0 NULL NULL
ERRORS DIFFS ROWS CHUNKS SKIPPED TABLE
0 0 142 8 0 test.ascii