|
229 | 229 | function => 'SHA1',
|
230 | 230 | tbl_struct => $t,
|
231 | 231 | ),
|
232 |
| - q{`film_id`, `title`, `description`, `release_year`, `language_id`, `original_language_id`, `rental_duration`, `rental_rate`, `length`, `replacement_cost`, `rating`, `special_features`, `last_update` + 0 AS `last_update`, } |
| 232 | + q{`film_id`, `title`, CRC32(`description`) AS `description`, `release_year`, `language_id`, `original_language_id`, `rental_duration`, `rental_rate`, `length`, `replacement_cost`, `rating`, `special_features`, `last_update` + 0 AS `last_update`, } |
233 | 233 | . q{SHA1(CONCAT_WS('#', }
|
234 |
| - . q{`film_id`, `title`, `description`, `release_year`, `language_id`, } |
| 234 | + . q{`film_id`, `title`, CRC32(`description`), `release_year`, `language_id`, } |
235 | 235 | . q{`original_language_id`, `rental_duration`, `rental_rate`, `length`, }
|
236 | 236 | . q{`replacement_cost`, `rating`, `special_features`, `last_update` + 0, }
|
237 | 237 | . q{CONCAT(ISNULL(`description`), ISNULL(`release_year`), }
|
|
245 | 245 | function => 'FNV_64',
|
246 | 246 | tbl_struct => $t,
|
247 | 247 | ),
|
248 |
| - q{`film_id`, `title`, `description`, `release_year`, `language_id`, `original_language_id`, `rental_duration`, `rental_rate`, `length`, `replacement_cost`, `rating`, `special_features`, `last_update` + 0 AS `last_update`, } |
| 248 | + q{`film_id`, `title`, CRC32(`description`) AS `description`, `release_year`, `language_id`, `original_language_id`, `rental_duration`, `rental_rate`, `length`, `replacement_cost`, `rating`, `special_features`, `last_update` + 0 AS `last_update`, } |
249 | 249 | . q{FNV_64(}
|
250 |
| - . q{`film_id`, `title`, `description`, `release_year`, `language_id`, } |
| 250 | + . q{`film_id`, `title`, CRC32(`description`), `release_year`, `language_id`, } |
251 | 251 | . q{`original_language_id`, `rental_duration`, `rental_rate`, `length`, }
|
252 | 252 | . q{`replacement_cost`, `rating`, `special_features`, `last_update` + 0)},
|
253 | 253 | 'FNV_64 query for sakila.film',
|
|
490 | 490 | q{SELECT /*PROGRESS_COMMENT*//*CHUNK_NUM*/ COUNT(*) AS cnt, }
|
491 | 491 | . q{COALESCE(RIGHT(MAX(@crc := CONCAT(LPAD(@cnt := @cnt + 1, 16, '0'), }
|
492 | 492 | . q{SHA1(CONCAT(@crc, SHA1(CONCAT_WS('#', }
|
493 |
| - . q{`film_id`, `title`, `description`, `release_year`, `language_id`, } |
| 493 | + . q{`film_id`, `title`, CRC32(`description`), `release_year`, `language_id`, } |
494 | 494 | . q{`original_language_id`, `rental_duration`, `rental_rate`, `length`, }
|
495 | 495 | . q{`replacement_cost`, `rating`, `special_features`, `last_update` + 0, }
|
496 | 496 | . q{CONCAT(ISNULL(`description`), ISNULL(`release_year`), }
|
|
514 | 514 | q{SELECT /*PROGRESS_COMMENT*//*CHUNK_NUM*/ COUNT(*) AS cnt, }
|
515 | 515 | . q{COALESCE(RIGHT(MAX(@crc := CONCAT(LPAD(@cnt := @cnt + 1, 16, '0'), }
|
516 | 516 | . q{CONV(CAST(FNV_64(CONCAT(@crc, FNV_64(}
|
517 |
| - . q{`film_id`, `title`, `description`, `release_year`, `language_id`, } |
| 517 | + . q{`film_id`, `title`, CRC32(`description`), `release_year`, `language_id`, } |
518 | 518 | . q{`original_language_id`, `rental_duration`, `rental_rate`, `length`, }
|
519 | 519 | . q{`replacement_cost`, `rating`, `special_features`, `last_update` + 0}
|
520 | 520 | . q{))) AS UNSIGNED), 10, 16))), 16), 0) AS crc }
|
|
559 | 559 | . q{SELECT ?, ?, /*CHUNK_NUM*/ ?, COUNT(*) AS cnt, }
|
560 | 560 | . q{COALESCE(RIGHT(MAX(@crc := CONCAT(LPAD(@cnt := @cnt + 1, 16, '0'), }
|
561 | 561 | . q{SHA1(CONCAT(@crc, SHA1(CONCAT_WS('#', }
|
562 |
| - . q{`film_id`, `title`, `description`, `release_year`, `language_id`, } |
| 562 | + . q{`film_id`, `title`, CRC32(`description`), `release_year`, `language_id`, } |
563 | 563 | . q{`original_language_id`, `rental_duration`, `rental_rate`, `length`, }
|
564 | 564 | . q{`replacement_cost`, `rating`, `special_features`, `last_update` + 0, }
|
565 | 565 | . q{CONCAT(ISNULL(`description`), ISNULL(`release_year`), }
|
|
0 commit comments