@@ -225,10 +225,10 @@ def test_partition_period_seven_days(self):
225225 [
226226 "INFO:partition:Evaluating Table partitioned_last_week "
227227 "(duration=7 days, 0:00:00)" ,
228- "DEBUG:partition:Table partitioned_last_week has no pending SQL updates." ,
228+ "DEBUG:partition:Table partitioned_last_week has no pending SQL updates." , # noqa: E501
229229 "INFO:partition:Evaluating Table partitioned_yesterday "
230230 "(duration=7 days, 0:00:00)" ,
231- "DEBUG:partition:Table partitioned_yesterday has no pending SQL updates." ,
231+ "DEBUG:partition:Table partitioned_yesterday has no pending SQL updates." , # noqa: E501
232232 ]
233233 ),
234234 )
@@ -494,26 +494,26 @@ def test_migrate_cmd_in(self):
494494 "partitioned_yesterday" : [
495495 "DROP TABLE IF EXISTS partitioned_yesterday_new_20210421;" ,
496496 "CREATE TABLE partitioned_yesterday_new_20210421 "
497- + "LIKE partitioned_yesterday;" ,
497+ "LIKE partitioned_yesterday;" ,
498498 "ALTER TABLE partitioned_yesterday_new_20210421 "
499- + "REMOVE PARTITIONING;" ,
499+ "REMOVE PARTITIONING;" ,
500500 "ALTER TABLE partitioned_yesterday_new_20210421 "
501- + "PARTITION BY RANGE (id) (" ,
501+ "PARTITION BY RANGE (id) (" ,
502502 "\t PARTITION p_assumed VALUES LESS THAN MAXVALUE" ,
503503 ");" ,
504504 "ALTER TABLE `partitioned_yesterday_new_20210421` WAIT 6 "
505- + "REORGANIZE PARTITION `p_assumed` INTO (PARTITION "
506- + "`p_20210421` VALUES LESS THAN (150), PARTITION "
507- + "`p_20210521` VALUES LESS THAN (300), PARTITION "
508- + "`p_20210620` VALUES LESS THAN MAXVALUE);" ,
505+ "REORGANIZE PARTITION `p_assumed` INTO (PARTITION "
506+ "`p_20210421` VALUES LESS THAN (150), PARTITION "
507+ "`p_20210521` VALUES LESS THAN (300), PARTITION "
508+ "`p_20210620` VALUES LESS THAN MAXVALUE);" ,
509509 "CREATE OR REPLACE TRIGGER copy_inserts_from_"
510- + "partitioned_yesterday_to_partitioned_yesterday" ,
510+ "partitioned_yesterday_to_partitioned_yesterday" ,
511511 "\t AFTER INSERT ON partitioned_yesterday FOR EACH ROW" ,
512512 "\t \t INSERT INTO partitioned_yesterday_new_20210421 SET" ,
513513 "\t \t \t `id` = NEW.`id`," ,
514514 "\t \t \t `serial` = NEW.`serial`;" ,
515515 "CREATE OR REPLACE TRIGGER copy_updates_from_"
516- + "partitioned_yesterday_to_partitioned_yesterday" ,
516+ "partitioned_yesterday_to_partitioned_yesterday" ,
517517 "\t AFTER UPDATE ON partitioned_yesterday FOR EACH ROW" ,
518518 "\t \t UPDATE partitioned_yesterday_new_20210421 SET" ,
519519 "\t \t \t `serial` = NEW.`serial`" ,
@@ -527,16 +527,16 @@ def test_migrate_cmd_in(self):
527527 "\t PARTITION p_assumed VALUES LESS THAN MAXVALUE" ,
528528 ");" ,
529529 "ALTER TABLE `two_new_20210421` WAIT 6 REORGANIZE PARTITION "
530- + "`p_assumed` INTO (PARTITION `p_20210421` VALUES "
531- + "LESS THAN (150), PARTITION `p_20210521` VALUES LESS "
532- + "THAN (375), PARTITION `p_20210620` VALUES LESS THAN "
533- + "MAXVALUE);" ,
534- "CREATE OR REPLACE TRIGGER copy_inserts_from_two_to_two_new_20210421" ,
530+ "`p_assumed` INTO (PARTITION `p_20210421` VALUES "
531+ "LESS THAN (150), PARTITION `p_20210521` VALUES LESS "
532+ "THAN (375), PARTITION `p_20210620` VALUES LESS THAN "
533+ "MAXVALUE);" ,
534+ "CREATE OR REPLACE TRIGGER copy_inserts_from_two_to_two_new_20210421" , # noqa: E501
535535 "\t AFTER INSERT ON two FOR EACH ROW" ,
536536 "\t \t INSERT INTO two_new_20210421 SET" ,
537537 "\t \t \t `id` = NEW.`id`," ,
538538 "\t \t \t `serial` = NEW.`serial`;" ,
539- "CREATE OR REPLACE TRIGGER copy_updates_from_two_to_two_new_20210421" ,
539+ "CREATE OR REPLACE TRIGGER copy_updates_from_two_to_two_new_20210421" , # noqa: E501
540540 "\t AFTER UPDATE ON two FOR EACH ROW" ,
541541 "\t \t UPDATE two_new_20210421 SET" ,
542542 "\t \t \t `serial` = NEW.`serial`" ,
@@ -583,22 +583,22 @@ def test_migrate_cmd_in_unpartitioned_with_override(self):
583583 "DROP TABLE IF EXISTS unpartitioned_new_20210421;" ,
584584 "CREATE TABLE unpartitioned_new_20210421 LIKE unpartitioned;" ,
585585 "ALTER TABLE unpartitioned_new_20210421 REMOVE PARTITIONING;" ,
586- "ALTER TABLE unpartitioned_new_20210421 PARTITION BY RANGE (id) (" ,
586+ "ALTER TABLE unpartitioned_new_20210421 PARTITION BY RANGE (id) (" , # noqa: E501
587587 "\t PARTITION p_assumed VALUES LESS THAN MAXVALUE" ,
588588 ");" ,
589589 "ALTER TABLE `unpartitioned_new_20210421` WAIT 6 REORGANIZE "
590- + "PARTITION `p_assumed` INTO (PARTITION `p_20210421` "
591- + "VALUES LESS THAN (150), PARTITION `p_20210521` VALUES "
592- + "LESS THAN (300), PARTITION `p_20210620` VALUES LESS "
593- + "THAN MAXVALUE);" ,
590+ "PARTITION `p_assumed` INTO (PARTITION `p_20210421` "
591+ "VALUES LESS THAN (150), PARTITION `p_20210521` VALUES "
592+ "LESS THAN (300), PARTITION `p_20210620` VALUES LESS "
593+ "THAN MAXVALUE);" ,
594594 "CREATE OR REPLACE TRIGGER copy_inserts_from_"
595- + "unpartitioned_to_unpartitioned_new_20210421" ,
595+ "unpartitioned_to_unpartitioned_new_20210421" ,
596596 "\t AFTER INSERT ON unpartitioned FOR EACH ROW" ,
597597 "\t \t INSERT INTO unpartitioned_new_20210421 SET" ,
598598 "\t \t \t `id` = NEW.`id`," ,
599599 "\t \t \t `serial` = NEW.`serial`;" ,
600600 "CREATE OR REPLACE TRIGGER copy_updates_from_"
601- + "unpartitioned_to_unpartitioned_new_20210421" ,
601+ "unpartitioned_to_unpartitioned_new_20210421" ,
602602 "\t AFTER UPDATE ON unpartitioned FOR EACH ROW" ,
603603 "\t \t UPDATE unpartitioned_new_20210421 SET" ,
604604 "\t \t \t `serial` = NEW.`serial`" ,
0 commit comments