From 09985e3e55bb48efeb87e7ec1bcb8b824133a19b Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Thu, 28 Mar 2024 13:16:29 +0100 Subject: [PATCH 1/2] Fix issue 52198, HandleColOffset was wrong. --- pkg/executor/partition_table_test.go | 23 +++++++++++++++++++++++ pkg/planner/core/find_best_task.go | 14 +++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/pkg/executor/partition_table_test.go b/pkg/executor/partition_table_test.go index 6e6f8335b1d36..ee78ddfa7c1dd 100644 --- a/pkg/executor/partition_table_test.go +++ b/pkg/executor/partition_table_test.go @@ -2407,3 +2407,26 @@ func TestIssue31024(t *testing.T) { tk2.MustExec("rollback") } + +func TestIssue52198(t *testing.T) { + store := testkit.CreateMockStore(t) + + tk := testkit.NewTestKit(t, store) + tk.MustExec("use test") + tk.MustExec(`CREATE TABLE tac6a05e5 ( + col_46 varchar(397) DEFAULT NULL, + col_47 int(11) DEFAULT NULL, + col_48 int(10) unsigned NOT NULL DEFAULT '2063908831', + col_49 varchar(217) CHARACTER SET gbk COLLATE gbk_chinese_ci DEFAULT '愃FV_灠蟟蠇驀泔N5惷cm澉痥邍H', + col_50 json DEFAULT NULL, + col_51 tinytext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + col_52 char(8) DEFAULT 'kf^n', + col_53 json DEFAULT NULL, + PRIMARY KEY (col_48) /*T![clustered_index] CLUSTERED */ + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin + PARTITION BY HASH (col_48) PARTITIONS 5`) + tk.MustExec(`INSERT INTO tac6a05e5 VALUES('oCMu',1448604706,1,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('zwN0SwW5%',1654477251,2,'tbn觼労駋AqJ姤霔N','[0.8155019522715178, 0.16543520110622545, 0.0732445195875062]','B31lod','','[\"V9YRZJN4U1SHDuXm8SLApWUYf16t4EFIkAsI40aeAGOW0uKjwSEDvOeMgKnp3qjE\", \"QSRhG2z0yFXW6HMCVlPKD9LLfkdqj1uS9DgbVh1iJihPNN2lyMlk5Hi9HkUVuftE\", \"p65MERPWqPO62Z5iFEmZoruxzupWe9KIvCuCFLoAPEdBTpJ77hxfZCGY3Nmzw2Sf\"]'),('sEB~ppF*bG',1603138437,37843307,'氽鐓+絞qjWoq阔','[0.7819687681122546, 0.08170947631899626, 0.7197072719772959, 0.2523569657879634, 0.08216294018233623]','2^hNqtMblFLM','','[\"MMbF0Kuur8dXmdmO1Gd2Mc4SvbS6ZpjSMjwchZxHfjM12nwlSzEUaazDVs5gMPdY\", \"JL3VWeT1UihVPaO63uh7R7zemDh7seRiU7QKjPPyzvTIQ8TphvmofxaNYHEjWxfo\", \"LnpNrUPqMBraxCdpi5Tm5eMUHYFC6KF4iQ0qNHXFW80BpFY6KH0M5U0CzCJYvKdB\", \"Ot4P2HNNauuCDSMM5tqMDoBPD4JuhUIRS8bxV4UZjMwHfHQ5hGmu8CKBMcyp0Gzh\", \"KJiv4wA16p3oLnB9ZBfdNFqPRArNUO1ZwrhqtHK0JXUyTT3UTLDf6wmvMNn2PwBP\"]'),('bDjWyysVr9V+c',1268099130,107687302,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('hCGC',-2147483647,250644837,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('19BA',-1091021589,271806903,'O粣妡4X頞H*篱Db堷E餵','[0.8666308004313545, 0.2621532718342127, 0.5727019210960996, 0.9270058069442341]','oJ8b','eu)','[\"p8iYl7Mi4szkkdIBjeqIBkd7ndrciScbSwCmt8pggT6pGyGpmqqaVvYMYXiw2jKL\", \"uE4Uav5pCCzt56lOaO7Uek7H1rQ1yeu2ig0Q65ux0Wj88P0OqIgPj9m5oMW3zTEO\"]'),('-JZLWy8I-ganG$',442130558,512378048,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('$tV$~%WWTFHygJ6',1226826461,620530205,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('i1EQt3_2lXj',1492754603,721824456,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('',-1667908744,748708502,'Y佑%','[0.30715052035591783, 0.171552691907414, 0.0677093832181976, 0.8662012957586579, 0.49259869656729294]','L*Yb6pn$-tI2EHXF','nr','[\"AlCN5Jtn3u5s9QarwvqjsEbc6oFxsWbGc4HhpjQ41u9ThKiX1Drrm6C5qBh97j49\", \"JLDBBVe8MZJNg7O0ZDCKNLQGkwRzWmQ4UcA89C6qHeTMF20NkTX6LOYI2WHVS1ST\"]'),(NULL,-924970232,768812216,'嘏fd+',NULL,'T4-Lr056vo','Yo%Xd','[\"rkPsyCWIKPdgN5Suocz5dBnmiIDFvmBIZ8RSRnQYP2nlvE0Pkxzg757igdNueTXg\", \"EtEH8mMgkAC9wx4STNBVYnAtGE85HsgXE8A8MtDpNVVztdl6P454b4sucHFt4nsF\", \"W57qEmVtpSRO9khiSGTSCA34GbT7pOZvbYDVdDuPCabmwITGM8eKHMELZXrDDUO1\", \"aIkvnQPwsEB3ZWxfJcOhjgvDLCMbk6Bi1aYPmIBj2TnsI2CyxdRxtnjx5Fa5Yw4S\", \"dUnmeVxENvSMYqAh4ctC7xKd2ioqAuZ9CS5w53r1Bb6tdmBsxaQdb38FWCgWCmlY\"]'),('XlRZier^C!c',-73846817,813925959,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"Lh1NYh2U5v7rKPL55wsz7AZTZ5XwZE6s4uYZRxynyD41u2HvBhP0RsvVhPwp25yq\", \"WpBnk5LAxxaqWLXDKkza32JWMAeVJD6oGygGfpfVwdIbJ2rN6fy77UTMUGO81sC2\", \"TzRlZDEtEN0UbLxeRvMe7x7VxR6c7SJO9eoiSPoZiDiXf5LoAcjO40g9nnLca5I2\", \"By8TbJkifGZtPMWBssfeCZduFjCxAm8dsljIhEgXQlyu3JugjApxuINEj0ksepN5\"]'),('W+&uZc%G092)7sUC',1067999499,826505551,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('$nv)y',-1590101037,830721406,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"wrVLpQ3OdFT2B2V0eXp3L2dXryiKhp7R69jXgHQglCrz5g58oSo5PFyJiF7mJviU\", \"oO0g1RlW5KJIqL7YEeHhjeTJjEqHzHQqTcmo9XZa8kGJ4grA5Z8tOBPeTCSAGzHI\", \"CwlhJ1WMDWBfTOpBrtcD3MXlDqypHg3AlJE5t8kQLgKkp3jzGMawaN4n0ZF4JYfr\", \"6xnWkiwnszZ9oDnXNPK0M2gFbeZBGIxMqqFCe0BCTSBLnB23Tg8bGnascKMv4yTf\", \"uYHBZXRegMswxj4hhZQP5KhfFV7ugWgHTmrUDlmvkCHK8G1scCy6F7gaKAQsbrXx\"]'),('L-Tn',1,897936682,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"rVBAVVbBfpU2f6mcgYLDbdPIaY1AEDnMqs81bLW5CPRoMybisk9L9XZKaQ3C5cPw\", \"OEWgSv3WL0IXmEB5ueH2rtKbdQKNF3rn2KDwbZYSXqLUN5SWYp5d6tj3BN5vQQ9b\", \"uIzW3uyTagsrg3qg1Hbn58tyDUffeOBBhRgq2koCo6z6qXDcBsHtOENTyKTKbdmT\", \"1zDhkf8MH44Weig9WX9RUrW1a7Rx4qRpQylUIQScQle1qo9jcjXODH2RQkb2luZQ\", \"qSVloR5puaTgwGO8IHifJe6f6ygVXUtOkdSibrv20RdNNgpkN0c6BPUmwIlf3j7e\"]'),('OJ9$7XAac',-523480678,905091218,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('~xD%*&kLp3!',345260657,1024693685,'扫秙竢(&%嘛佀AxXH曩Hmq擩B','[0.6588246973722834, 0.33667419818281447, 0.6737910959588643]','h(','@Ia5g',NULL),('W%jFY0Bu',1328990238,1154666217,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('xdr-IdRvw=8%SPiOcu',1492754603,1278792746,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('VOccAg',-2144544676,1403585041,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('09tZ#_RdeXV9Wj',276279286,1569623309,'Xvn烪0亨檗Dw鄔','[0.3070584431898418]','B31lod','','[\"EBUuXLENn6DPodo0SRf4c4g9zlqyTQxziBCYgUoQsyzYMcTCX8PpzjHiDVxyKQU0\", \"kYI4Ne100b0hmRZtKpSH3WWAAikTkXsh7QcKyyWstnQSQhkriz2AKuPSgIv1nFTK\", \"E3wHUFBJAxCNVs8rJ8UzkFZHuLG9TpYaTJVyCu8G4hF00Sb17hhbffMsPzXQXkH2\", \"BwterZRjUtu3K3YiZ0tDLu3aXasWxA6g3EAFvcnUJob2bwe1zTXvQwEdl6GAZpcH\"]'),('eHPVOFr--@!c0p-B',393228015,1575641036,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('#',-2010279253,1633630583,'NjCQw_M5戂L(銴x伋@','[0.7950291567372625, 0.42457620669002893, 0.36216355140382955, 0.5918892588635414]','s6x(bmLbZwS','','[\"SgpQmsJv3crBQjQh5uko8mdZTfHujHmjbSq3YAPnW2AYEvOnZUeH1Bv135uRbz4Y\", \"UqpWPCmV5lKG7SQajlTPIdUyJDywZQSj9FH2vUOU7qzEXEJzllV3iPtpyI2wt0RO\"]'),(NULL,NULL,2023333960,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','_h','poE','[\"Pt8sXU4MHxymtcxqfQ4d8grL8Whnd5YALkfJWoq7QM1DdFBfSKTXmrjOB0bsdW1F\", \"MUSM5yay4pKIQUtvLEEogTCdJxCBp0tLnx2yrcjQEXz2UJPLrIlSAs9eSNE57gOh\"]'),('^',1493259749,2147483648,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('Jnyym~a#kL*d',1492754603,2148978401,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('yUXo&!xbypWxpPgc_',-1104403882,2199535815,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('m#@st',1099823302,2226127359,'udl豼K鶲Y07谒','[0.9763299237180068, 0.8587852925321978, 0.2436133606576937, 0.09349551243877566]','cwLhwP','CZm','[\"bfdOzIRLjfcXN2vmC74Mn9sSN8YvyfYQGBObFSkbU8sRPty0Azx6IR462GHbWL6U\", \"cLEbiY2YQlkKNTL7k0LSjI9k7QsYL3QumqALG3M6E0xOcgo8rVv6fxHFNGgQWL47\", \"A3tAPsqCFv2kc6Ak9Oq1NYmEotRpPw8XSMSav4fHJVn8OX9eOIV0i9fruOijOW48\", \"1dXVqIdT3uTMZ8wY2eKAoOUiRwbSAX3Nxs5vVWAxxxKpgTxYbgMx7rY6cLK4CJw2\"]'),('aiHRYa8uui-',-1138400969,2289157478,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"AKLQXETK5T49GWBzdNYWrrPggF7sCU4t2leNRbFmCbARyU55kjqCkEOlDNf8lpzi\", \"zSp1XU3S43jGbkD8Fx1EPjNcCu6fPfBy1YwUWIfP4aCb345oOewAQE1l24x04Fmw\", \"u9WBsM0Fr3T2VCEXBmzkjIacq4KKaZWrhlBPkRMVRufAopftyunzwIVmrNIq7qmB\"]'),('b5gIit5AEG&JAZ',1492754603,2349910941,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('do$KxdC02L-B)',199794886,2458846104,'z埜','[0.6644051004745527, 0.5803598251538569, 0.32008427501293013, 0.779018058250839, 0.7058791783606267]','','','[\"Uk0YaRJdgMmxiXGOyPz88xOFWf1Y3gFGTqD0qlDbJ5adiNVLpR5rGizLo6Ba9QhA\", \"vjTMY5MCz8MAGIvBZa4TROAydfwkfkPluN4BEz96NXhAzcStQIMeKeYqx1uTUv6y\", \"HonN9240KDhVXnhVXhEUNr2PxBU32GAPAQlsHJXGBRrgBtQ47xXD554sMoSH0hv4\", \"Q1bamk9I1cEov5lCrlne963qrLHTApCIjuVApLvzm5HsxNx22YibVdbND3NCrYbs\", \"KpAUfIukxFR9MhL78HORCKxLEYeWm1rXeYf4FDNCruwg4xgAvtONfIpYrZMUrD3D\"]'),('FHV-6J7W',-1413993681,2497561780,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('unK',1492754603,2583730738,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('QCkn',1460747060,2694613274,'Z檖緑鈐eL设C1方&尯輸u=鋒w#','[0.4345471608455741, 0.12204309748445161, 0.06619435345939846]','TZ','','[\"dydvRi30mutx6hTOXGqNcq2gCNpKWGBkcnkL2ouqHopwDt1TEj59DFJnxkm8UWWV\", \"emQk7RkFIK74YC2KJ3GXsLtH6wFVH7OKznvipDa1ecZWDCb2B7Hi7ONVXq6MrNRF\", \"guO1fMhOp91iCDTleN9EuY3ZrJN7PNxBQfUF2B5DW6TM8DpLStimR2FBMDfsOHNa\", \"SMlNz8vYPzsgrgjgeUYb6JxxgTvt2vYau4Q2hYt96dNP96HL3EkqwP0reecBBgub\", \"4UWKZjYdxGrboQQbVkFPOjfCfb1PZnvKBiFluq6sknu64QfJwtehoI1RLlhMWz42\"]'),('OnGUZw~_3aR1ukwa*R*',674119809,2752532792,'ml錴唬潓婫Yd蹝*~+o','[0.2922117688402791, 0.7420306580495416, 0.5041928940085125]','+D$nqv=MtH2cmSk-','$fr((2','[\"zO9Fnh56esuvXTcoab03qWKRvn2jVZUO8W6vw4Z9JrZu9jeGItevXpa4YPOGbAdf\", \"CjN032zZ5VSuPw8UQkevxPmPlYeZ754s3ezCPIz0yHYfWN2SQlRbnokGOy7pNTs2\", \"s28eTEyCEi5V1rR9AWyAxp9FLPvbkxOVWSunngUap08EDUT08eLSRSdT7wi2mIih\", \"ZsqZvR1acmF27LWcZesAPf9nz92Dn6ND2wjCjpZYGOaO0Gp9AY6e0ZbK9g4AW63f\", \"OH6NGfxxpNAGAZJqYeRjQzYYd8ysA7tX04K23CkN8LHiC6htog8TYC6Rak28XoDz\"]'),('mH',54107353,2787006270,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('iu2+nyfH9',1269293150,2793424570,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('SY%^pt*P)',NULL,2852635227,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"QyO5n2wWTjZuHc9Hj4FAZzYqxhX57X8cEN4yX2jmgtLJ7TiNAu71EPPJJhfSWd0Z\", \"HoDxPD7vHOdWanvVsewBZ6Yzx2DnYpf3g4Ui51Pt1tiVyoc8vfE6B8lyPw7TvBIo\", \"Z78sepKhx538Rri6NMGGvzuWaJW7wFomPyPDTYr8aW0iJio69LfEmArfDVaDjWxl\", \"CvVNlvu8p1lfiQlmfj4dSHQ59OwhKVYOtpBX8A90TfP42NooGKAR8SsYUbzWRC0T\"]'),('@eIa',748560374,2953298874,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('aR@ZgP',-1124151169,2965229458,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('P2',1492754603,3094328809,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('5scy',2,3156683030,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('7kl058i^eJ',-945474752,3204072901,'昋Wg輏曮荷t(B蝫YcF燿','[0.6877823942864568, 0.5012083843506608]','B31lod','','[\"3DPtht6IGsHBCBXeIfswrUx65MUMjBXAEqyQViZpFFzzO8Ca709kONHuL68uMoTb\", \"FTSj8BQvAMtTS2KWcfdPbobCOuxg5IStszWxftBfHeJMLq6VEX9Lf11dnuo6Subf\", \"FNlwqfxpXHfJrcoM4WQZ083cPu47UcovTojqXuqwIYAtXJDw1uL6ZoAF3Hjof5M4\"]'),('ntsU4Xa1YFaq7H*G',-1779829176,3311141989,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),(NULL,595970938,3458924918,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','sSZ=TbQGO!$rX','poE','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('G%Lq7CCPBO)*',1492754603,3616891219,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),(')d%#',945773292,3668259561,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('v',604755552,3839319591,'dFs殟懩bYD乨Aq1mQs=猻','[0.5821006441479657]','Mvhpo9@1WBn','ounJL','[\"NbKpzkDkbmwBhn6CnbRv7ETqcP07u5HkW15lPaNW4VF8uQ57WFFpMlE8TBFgvhFl\", \"nTdEE6dyBg5AMidmmNNLvzkTHbsGvLfFz5lYX8hiUbDaXZv9Ny3Gx08TLiU3dUP4\", \"emEI2YJgVM0HiRNpFejSUcNgIcXvBWTIipnAm870WahrQtQVTAet3xAn00FJLxnW\", \"Wtcly8BJRf1D2HaEgJ93zyemLbKqQhAJdoadP3ZhELCmQlsLSMGw4B2ASPNnFOQ8\", \"c06JYFvB1CX5qa7466jDvuy6aSZqVPmY5Xi0y1aOmADAkxLFjuZytUsanYqzHNUM\"]'),('aX8I@Jm',-2017571685,3975544550,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('ce1',486478968,4098921295,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"bNQMi82oNFrCxybf134ca5bT984zhzhjiiO4F6mMNgWR7FLhzTdurtuTfbh2Khho\", \"x19ksUSJBMbbIvOlH5nXDhhvJcvmYbWmqTDSg6NRR6oMmFH7w7Dyqqz1fZspcPuO\", \"bUljYZdKwiih5g6w3g3rS4mqLjaTfLvgxhLx1itakfMzCr7VvdteeGB6ScZYdx69\"]'),(')W~P=8Az',0,4107284102,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('6PJ+ufKeLTFCW(@Yah',NULL,4219573686,'梻鏟','[0.7814882761502356, 0.3337397151698245, 0.3908971450854904, 0.26602783654136075, 0.7192424389018779]','3G(N-4','Y','[\"1xAWYMexygS8BQUlgYYns9leesdmeKA9GPRgvNFyBu3wPof55CDvZf2lhyh9MFXN\", \"nRNgvWb4v2aE87E6lBfxDBQnfph8OUO73Ot8ctHIS5eoIsCtiY66uP1pQZBa1BSh\"]')`) + + tk.MustQuery(`select tac6a05e5.col_52 as r0 , space( 1 ) as r1 , tac6a05e5.col_48 as r2 from tac6a05e5 where tac6a05e5.col_48 in ( 813925959 )`).Check(testkit.Rows(" 813925959")) + +} diff --git a/pkg/planner/core/find_best_task.go b/pkg/planner/core/find_best_task.go index 836ba91108c8e..5c4fdb15594b8 100644 --- a/pkg/planner/core/find_best_task.go +++ b/pkg/planner/core/find_best_task.go @@ -2582,11 +2582,19 @@ func (ds *DataSource) convertToPointGet(prop *property.PhysicalProperty, candida pointGetPlan.Handle = kv.IntHandle(candidate.path.Ranges[0].LowVal[0].GetInt64()) pointGetPlan.UnsignedHandle = mysql.HasUnsignedFlag(ds.handleCols.GetCol(0).RetType.GetFlag()) pointGetPlan.accessCols = ds.TblCols - hc, err := ds.handleCols.ResolveIndices(ds.schema) - if err != nil { + found := false + var handleColOffset int + for i := range ds.Columns { + if ds.Columns[i].ID == ds.handleCols.GetCol(0).ID { + handleColOffset = ds.Columns[i].Offset + found = true + break + } + } + if !found { return invalidTask } - pointGetPlan.HandleColOffset = hc.GetCol(0).Index + pointGetPlan.HandleColOffset = handleColOffset // Add filter condition to table plan now. if len(candidate.path.TableFilters) > 0 { sel := PhysicalSelection{ From e57c91bb0a609933c42bcd9c4948dcd6195a289f Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Thu, 28 Mar 2024 13:43:57 +0100 Subject: [PATCH 2/2] Minor refinement, also changed test to minimal integration test. --- pkg/executor/partition_table_test.go | 23 ------------------- pkg/planner/core/find_best_task.go | 4 +--- .../r/executor/partition/issues.result | 6 +++++ .../t/executor/partition/issues.test | 5 ++++ 4 files changed, 12 insertions(+), 26 deletions(-) diff --git a/pkg/executor/partition_table_test.go b/pkg/executor/partition_table_test.go index ee78ddfa7c1dd..6e6f8335b1d36 100644 --- a/pkg/executor/partition_table_test.go +++ b/pkg/executor/partition_table_test.go @@ -2407,26 +2407,3 @@ func TestIssue31024(t *testing.T) { tk2.MustExec("rollback") } - -func TestIssue52198(t *testing.T) { - store := testkit.CreateMockStore(t) - - tk := testkit.NewTestKit(t, store) - tk.MustExec("use test") - tk.MustExec(`CREATE TABLE tac6a05e5 ( - col_46 varchar(397) DEFAULT NULL, - col_47 int(11) DEFAULT NULL, - col_48 int(10) unsigned NOT NULL DEFAULT '2063908831', - col_49 varchar(217) CHARACTER SET gbk COLLATE gbk_chinese_ci DEFAULT '愃FV_灠蟟蠇驀泔N5惷cm澉痥邍H', - col_50 json DEFAULT NULL, - col_51 tinytext CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - col_52 char(8) DEFAULT 'kf^n', - col_53 json DEFAULT NULL, - PRIMARY KEY (col_48) /*T![clustered_index] CLUSTERED */ - ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin - PARTITION BY HASH (col_48) PARTITIONS 5`) - tk.MustExec(`INSERT INTO tac6a05e5 VALUES('oCMu',1448604706,1,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('zwN0SwW5%',1654477251,2,'tbn觼労駋AqJ姤霔N','[0.8155019522715178, 0.16543520110622545, 0.0732445195875062]','B31lod','','[\"V9YRZJN4U1SHDuXm8SLApWUYf16t4EFIkAsI40aeAGOW0uKjwSEDvOeMgKnp3qjE\", \"QSRhG2z0yFXW6HMCVlPKD9LLfkdqj1uS9DgbVh1iJihPNN2lyMlk5Hi9HkUVuftE\", \"p65MERPWqPO62Z5iFEmZoruxzupWe9KIvCuCFLoAPEdBTpJ77hxfZCGY3Nmzw2Sf\"]'),('sEB~ppF*bG',1603138437,37843307,'氽鐓+絞qjWoq阔','[0.7819687681122546, 0.08170947631899626, 0.7197072719772959, 0.2523569657879634, 0.08216294018233623]','2^hNqtMblFLM','','[\"MMbF0Kuur8dXmdmO1Gd2Mc4SvbS6ZpjSMjwchZxHfjM12nwlSzEUaazDVs5gMPdY\", \"JL3VWeT1UihVPaO63uh7R7zemDh7seRiU7QKjPPyzvTIQ8TphvmofxaNYHEjWxfo\", \"LnpNrUPqMBraxCdpi5Tm5eMUHYFC6KF4iQ0qNHXFW80BpFY6KH0M5U0CzCJYvKdB\", \"Ot4P2HNNauuCDSMM5tqMDoBPD4JuhUIRS8bxV4UZjMwHfHQ5hGmu8CKBMcyp0Gzh\", \"KJiv4wA16p3oLnB9ZBfdNFqPRArNUO1ZwrhqtHK0JXUyTT3UTLDf6wmvMNn2PwBP\"]'),('bDjWyysVr9V+c',1268099130,107687302,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('hCGC',-2147483647,250644837,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('19BA',-1091021589,271806903,'O粣妡4X頞H*篱Db堷E餵','[0.8666308004313545, 0.2621532718342127, 0.5727019210960996, 0.9270058069442341]','oJ8b','eu)','[\"p8iYl7Mi4szkkdIBjeqIBkd7ndrciScbSwCmt8pggT6pGyGpmqqaVvYMYXiw2jKL\", \"uE4Uav5pCCzt56lOaO7Uek7H1rQ1yeu2ig0Q65ux0Wj88P0OqIgPj9m5oMW3zTEO\"]'),('-JZLWy8I-ganG$',442130558,512378048,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('$tV$~%WWTFHygJ6',1226826461,620530205,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('i1EQt3_2lXj',1492754603,721824456,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('',-1667908744,748708502,'Y佑%','[0.30715052035591783, 0.171552691907414, 0.0677093832181976, 0.8662012957586579, 0.49259869656729294]','L*Yb6pn$-tI2EHXF','nr','[\"AlCN5Jtn3u5s9QarwvqjsEbc6oFxsWbGc4HhpjQ41u9ThKiX1Drrm6C5qBh97j49\", \"JLDBBVe8MZJNg7O0ZDCKNLQGkwRzWmQ4UcA89C6qHeTMF20NkTX6LOYI2WHVS1ST\"]'),(NULL,-924970232,768812216,'嘏fd+',NULL,'T4-Lr056vo','Yo%Xd','[\"rkPsyCWIKPdgN5Suocz5dBnmiIDFvmBIZ8RSRnQYP2nlvE0Pkxzg757igdNueTXg\", \"EtEH8mMgkAC9wx4STNBVYnAtGE85HsgXE8A8MtDpNVVztdl6P454b4sucHFt4nsF\", \"W57qEmVtpSRO9khiSGTSCA34GbT7pOZvbYDVdDuPCabmwITGM8eKHMELZXrDDUO1\", \"aIkvnQPwsEB3ZWxfJcOhjgvDLCMbk6Bi1aYPmIBj2TnsI2CyxdRxtnjx5Fa5Yw4S\", \"dUnmeVxENvSMYqAh4ctC7xKd2ioqAuZ9CS5w53r1Bb6tdmBsxaQdb38FWCgWCmlY\"]'),('XlRZier^C!c',-73846817,813925959,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"Lh1NYh2U5v7rKPL55wsz7AZTZ5XwZE6s4uYZRxynyD41u2HvBhP0RsvVhPwp25yq\", \"WpBnk5LAxxaqWLXDKkza32JWMAeVJD6oGygGfpfVwdIbJ2rN6fy77UTMUGO81sC2\", \"TzRlZDEtEN0UbLxeRvMe7x7VxR6c7SJO9eoiSPoZiDiXf5LoAcjO40g9nnLca5I2\", \"By8TbJkifGZtPMWBssfeCZduFjCxAm8dsljIhEgXQlyu3JugjApxuINEj0ksepN5\"]'),('W+&uZc%G092)7sUC',1067999499,826505551,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('$nv)y',-1590101037,830721406,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"wrVLpQ3OdFT2B2V0eXp3L2dXryiKhp7R69jXgHQglCrz5g58oSo5PFyJiF7mJviU\", \"oO0g1RlW5KJIqL7YEeHhjeTJjEqHzHQqTcmo9XZa8kGJ4grA5Z8tOBPeTCSAGzHI\", \"CwlhJ1WMDWBfTOpBrtcD3MXlDqypHg3AlJE5t8kQLgKkp3jzGMawaN4n0ZF4JYfr\", \"6xnWkiwnszZ9oDnXNPK0M2gFbeZBGIxMqqFCe0BCTSBLnB23Tg8bGnascKMv4yTf\", \"uYHBZXRegMswxj4hhZQP5KhfFV7ugWgHTmrUDlmvkCHK8G1scCy6F7gaKAQsbrXx\"]'),('L-Tn',1,897936682,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"rVBAVVbBfpU2f6mcgYLDbdPIaY1AEDnMqs81bLW5CPRoMybisk9L9XZKaQ3C5cPw\", \"OEWgSv3WL0IXmEB5ueH2rtKbdQKNF3rn2KDwbZYSXqLUN5SWYp5d6tj3BN5vQQ9b\", \"uIzW3uyTagsrg3qg1Hbn58tyDUffeOBBhRgq2koCo6z6qXDcBsHtOENTyKTKbdmT\", \"1zDhkf8MH44Weig9WX9RUrW1a7Rx4qRpQylUIQScQle1qo9jcjXODH2RQkb2luZQ\", \"qSVloR5puaTgwGO8IHifJe6f6ygVXUtOkdSibrv20RdNNgpkN0c6BPUmwIlf3j7e\"]'),('OJ9$7XAac',-523480678,905091218,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('~xD%*&kLp3!',345260657,1024693685,'扫秙竢(&%嘛佀AxXH曩Hmq擩B','[0.6588246973722834, 0.33667419818281447, 0.6737910959588643]','h(','@Ia5g',NULL),('W%jFY0Bu',1328990238,1154666217,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('xdr-IdRvw=8%SPiOcu',1492754603,1278792746,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('VOccAg',-2144544676,1403585041,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('09tZ#_RdeXV9Wj',276279286,1569623309,'Xvn烪0亨檗Dw鄔','[0.3070584431898418]','B31lod','','[\"EBUuXLENn6DPodo0SRf4c4g9zlqyTQxziBCYgUoQsyzYMcTCX8PpzjHiDVxyKQU0\", \"kYI4Ne100b0hmRZtKpSH3WWAAikTkXsh7QcKyyWstnQSQhkriz2AKuPSgIv1nFTK\", \"E3wHUFBJAxCNVs8rJ8UzkFZHuLG9TpYaTJVyCu8G4hF00Sb17hhbffMsPzXQXkH2\", \"BwterZRjUtu3K3YiZ0tDLu3aXasWxA6g3EAFvcnUJob2bwe1zTXvQwEdl6GAZpcH\"]'),('eHPVOFr--@!c0p-B',393228015,1575641036,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('#',-2010279253,1633630583,'NjCQw_M5戂L(銴x伋@','[0.7950291567372625, 0.42457620669002893, 0.36216355140382955, 0.5918892588635414]','s6x(bmLbZwS','','[\"SgpQmsJv3crBQjQh5uko8mdZTfHujHmjbSq3YAPnW2AYEvOnZUeH1Bv135uRbz4Y\", \"UqpWPCmV5lKG7SQajlTPIdUyJDywZQSj9FH2vUOU7qzEXEJzllV3iPtpyI2wt0RO\"]'),(NULL,NULL,2023333960,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','_h','poE','[\"Pt8sXU4MHxymtcxqfQ4d8grL8Whnd5YALkfJWoq7QM1DdFBfSKTXmrjOB0bsdW1F\", \"MUSM5yay4pKIQUtvLEEogTCdJxCBp0tLnx2yrcjQEXz2UJPLrIlSAs9eSNE57gOh\"]'),('^',1493259749,2147483648,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('Jnyym~a#kL*d',1492754603,2148978401,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('yUXo&!xbypWxpPgc_',-1104403882,2199535815,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('m#@st',1099823302,2226127359,'udl豼K鶲Y07谒','[0.9763299237180068, 0.8587852925321978, 0.2436133606576937, 0.09349551243877566]','cwLhwP','CZm','[\"bfdOzIRLjfcXN2vmC74Mn9sSN8YvyfYQGBObFSkbU8sRPty0Azx6IR462GHbWL6U\", \"cLEbiY2YQlkKNTL7k0LSjI9k7QsYL3QumqALG3M6E0xOcgo8rVv6fxHFNGgQWL47\", \"A3tAPsqCFv2kc6Ak9Oq1NYmEotRpPw8XSMSav4fHJVn8OX9eOIV0i9fruOijOW48\", \"1dXVqIdT3uTMZ8wY2eKAoOUiRwbSAX3Nxs5vVWAxxxKpgTxYbgMx7rY6cLK4CJw2\"]'),('aiHRYa8uui-',-1138400969,2289157478,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"AKLQXETK5T49GWBzdNYWrrPggF7sCU4t2leNRbFmCbARyU55kjqCkEOlDNf8lpzi\", \"zSp1XU3S43jGbkD8Fx1EPjNcCu6fPfBy1YwUWIfP4aCb345oOewAQE1l24x04Fmw\", \"u9WBsM0Fr3T2VCEXBmzkjIacq4KKaZWrhlBPkRMVRufAopftyunzwIVmrNIq7qmB\"]'),('b5gIit5AEG&JAZ',1492754603,2349910941,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('do$KxdC02L-B)',199794886,2458846104,'z埜','[0.6644051004745527, 0.5803598251538569, 0.32008427501293013, 0.779018058250839, 0.7058791783606267]','','','[\"Uk0YaRJdgMmxiXGOyPz88xOFWf1Y3gFGTqD0qlDbJ5adiNVLpR5rGizLo6Ba9QhA\", \"vjTMY5MCz8MAGIvBZa4TROAydfwkfkPluN4BEz96NXhAzcStQIMeKeYqx1uTUv6y\", \"HonN9240KDhVXnhVXhEUNr2PxBU32GAPAQlsHJXGBRrgBtQ47xXD554sMoSH0hv4\", \"Q1bamk9I1cEov5lCrlne963qrLHTApCIjuVApLvzm5HsxNx22YibVdbND3NCrYbs\", \"KpAUfIukxFR9MhL78HORCKxLEYeWm1rXeYf4FDNCruwg4xgAvtONfIpYrZMUrD3D\"]'),('FHV-6J7W',-1413993681,2497561780,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('unK',1492754603,2583730738,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('QCkn',1460747060,2694613274,'Z檖緑鈐eL设C1方&尯輸u=鋒w#','[0.4345471608455741, 0.12204309748445161, 0.06619435345939846]','TZ','','[\"dydvRi30mutx6hTOXGqNcq2gCNpKWGBkcnkL2ouqHopwDt1TEj59DFJnxkm8UWWV\", \"emQk7RkFIK74YC2KJ3GXsLtH6wFVH7OKznvipDa1ecZWDCb2B7Hi7ONVXq6MrNRF\", \"guO1fMhOp91iCDTleN9EuY3ZrJN7PNxBQfUF2B5DW6TM8DpLStimR2FBMDfsOHNa\", \"SMlNz8vYPzsgrgjgeUYb6JxxgTvt2vYau4Q2hYt96dNP96HL3EkqwP0reecBBgub\", \"4UWKZjYdxGrboQQbVkFPOjfCfb1PZnvKBiFluq6sknu64QfJwtehoI1RLlhMWz42\"]'),('OnGUZw~_3aR1ukwa*R*',674119809,2752532792,'ml錴唬潓婫Yd蹝*~+o','[0.2922117688402791, 0.7420306580495416, 0.5041928940085125]','+D$nqv=MtH2cmSk-','$fr((2','[\"zO9Fnh56esuvXTcoab03qWKRvn2jVZUO8W6vw4Z9JrZu9jeGItevXpa4YPOGbAdf\", \"CjN032zZ5VSuPw8UQkevxPmPlYeZ754s3ezCPIz0yHYfWN2SQlRbnokGOy7pNTs2\", \"s28eTEyCEi5V1rR9AWyAxp9FLPvbkxOVWSunngUap08EDUT08eLSRSdT7wi2mIih\", \"ZsqZvR1acmF27LWcZesAPf9nz92Dn6ND2wjCjpZYGOaO0Gp9AY6e0ZbK9g4AW63f\", \"OH6NGfxxpNAGAZJqYeRjQzYYd8ysA7tX04K23CkN8LHiC6htog8TYC6Rak28XoDz\"]'),('mH',54107353,2787006270,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('iu2+nyfH9',1269293150,2793424570,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('SY%^pt*P)',NULL,2852635227,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"QyO5n2wWTjZuHc9Hj4FAZzYqxhX57X8cEN4yX2jmgtLJ7TiNAu71EPPJJhfSWd0Z\", \"HoDxPD7vHOdWanvVsewBZ6Yzx2DnYpf3g4Ui51Pt1tiVyoc8vfE6B8lyPw7TvBIo\", \"Z78sepKhx538Rri6NMGGvzuWaJW7wFomPyPDTYr8aW0iJio69LfEmArfDVaDjWxl\", \"CvVNlvu8p1lfiQlmfj4dSHQ59OwhKVYOtpBX8A90TfP42NooGKAR8SsYUbzWRC0T\"]'),('@eIa',748560374,2953298874,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('aR@ZgP',-1124151169,2965229458,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('P2',1492754603,3094328809,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('5scy',2,3156683030,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('7kl058i^eJ',-945474752,3204072901,'昋Wg輏曮荷t(B蝫YcF燿','[0.6877823942864568, 0.5012083843506608]','B31lod','','[\"3DPtht6IGsHBCBXeIfswrUx65MUMjBXAEqyQViZpFFzzO8Ca709kONHuL68uMoTb\", \"FTSj8BQvAMtTS2KWcfdPbobCOuxg5IStszWxftBfHeJMLq6VEX9Lf11dnuo6Subf\", \"FNlwqfxpXHfJrcoM4WQZ083cPu47UcovTojqXuqwIYAtXJDw1uL6ZoAF3Hjof5M4\"]'),('ntsU4Xa1YFaq7H*G',-1779829176,3311141989,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),(NULL,595970938,3458924918,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','sSZ=TbQGO!$rX','poE','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('G%Lq7CCPBO)*',1492754603,3616891219,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),(')d%#',945773292,3668259561,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('v',604755552,3839319591,'dFs殟懩bYD乨Aq1mQs=猻','[0.5821006441479657]','Mvhpo9@1WBn','ounJL','[\"NbKpzkDkbmwBhn6CnbRv7ETqcP07u5HkW15lPaNW4VF8uQ57WFFpMlE8TBFgvhFl\", \"nTdEE6dyBg5AMidmmNNLvzkTHbsGvLfFz5lYX8hiUbDaXZv9Ny3Gx08TLiU3dUP4\", \"emEI2YJgVM0HiRNpFejSUcNgIcXvBWTIipnAm870WahrQtQVTAet3xAn00FJLxnW\", \"Wtcly8BJRf1D2HaEgJ93zyemLbKqQhAJdoadP3ZhELCmQlsLSMGw4B2ASPNnFOQ8\", \"c06JYFvB1CX5qa7466jDvuy6aSZqVPmY5Xi0y1aOmADAkxLFjuZytUsanYqzHNUM\"]'),('aX8I@Jm',-2017571685,3975544550,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('ce1',486478968,4098921295,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"bNQMi82oNFrCxybf134ca5bT984zhzhjiiO4F6mMNgWR7FLhzTdurtuTfbh2Khho\", \"x19ksUSJBMbbIvOlH5nXDhhvJcvmYbWmqTDSg6NRR6oMmFH7w7Dyqqz1fZspcPuO\", \"bUljYZdKwiih5g6w3g3rS4mqLjaTfLvgxhLx1itakfMzCr7VvdteeGB6ScZYdx69\"]'),(')W~P=8Az',0,4107284102,'UL脠6頏w鯶','[0.6188795182532886, 0.6820914758996461]','B31lod','','[\"gl6Sfc0MuEekEwGJyxUlAQOS91JqCIdtiUreR7B5zbp9Y72DmrI9e9t5DSPnbpdt\", \"1MrO7eRopVnBfs6HeXjtkijEyeQoEhqMvC4ad0uzY1ouNpewAEweVyMV2kRJU4N6\", \"EEpLNiPwWHHkWcV44zPZ8ZtuP07vYDCqK9Ml0EhZhowhdYE9bkR0TPI9eUYyMmEP\"]'),('6PJ+ufKeLTFCW(@Yah',NULL,4219573686,'梻鏟','[0.7814882761502356, 0.3337397151698245, 0.3908971450854904, 0.26602783654136075, 0.7192424389018779]','3G(N-4','Y','[\"1xAWYMexygS8BQUlgYYns9leesdmeKA9GPRgvNFyBu3wPof55CDvZf2lhyh9MFXN\", \"nRNgvWb4v2aE87E6lBfxDBQnfph8OUO73Ot8ctHIS5eoIsCtiY66uP1pQZBa1BSh\"]')`) - - tk.MustQuery(`select tac6a05e5.col_52 as r0 , space( 1 ) as r1 , tac6a05e5.col_48 as r2 from tac6a05e5 where tac6a05e5.col_48 in ( 813925959 )`).Check(testkit.Rows(" 813925959")) - -} diff --git a/pkg/planner/core/find_best_task.go b/pkg/planner/core/find_best_task.go index 5c4fdb15594b8..8093e2642d9c2 100644 --- a/pkg/planner/core/find_best_task.go +++ b/pkg/planner/core/find_best_task.go @@ -2583,10 +2583,9 @@ func (ds *DataSource) convertToPointGet(prop *property.PhysicalProperty, candida pointGetPlan.UnsignedHandle = mysql.HasUnsignedFlag(ds.handleCols.GetCol(0).RetType.GetFlag()) pointGetPlan.accessCols = ds.TblCols found := false - var handleColOffset int for i := range ds.Columns { if ds.Columns[i].ID == ds.handleCols.GetCol(0).ID { - handleColOffset = ds.Columns[i].Offset + pointGetPlan.HandleColOffset = ds.Columns[i].Offset found = true break } @@ -2594,7 +2593,6 @@ func (ds *DataSource) convertToPointGet(prop *property.PhysicalProperty, candida if !found { return invalidTask } - pointGetPlan.HandleColOffset = handleColOffset // Add filter condition to table plan now. if len(candidate.path.TableFilters) > 0 { sel := PhysicalSelection{ diff --git a/tests/integrationtest/r/executor/partition/issues.result b/tests/integrationtest/r/executor/partition/issues.result index d564ce2855965..b0eda3a9e3aeb 100644 --- a/tests/integrationtest/r/executor/partition/issues.result +++ b/tests/integrationtest/r/executor/partition/issues.result @@ -427,3 +427,9 @@ TableReader_7 1.00 root partition:p0,p6 data:Selection_6 select * from t where col_29 between -7 and -6; col_29 -6 +create table issue52198 (a int, b int, primary key (b)) partition by hash(b) partitions 5; +insert into issue52198 values (1,1); +select space(1), b from issue52198 where b in (1); +space(1) b + 1 +drop table issue52198; diff --git a/tests/integrationtest/t/executor/partition/issues.test b/tests/integrationtest/t/executor/partition/issues.test index 385c2adbbf3b4..bcfd2357ea17b 100644 --- a/tests/integrationtest/t/executor/partition/issues.test +++ b/tests/integrationtest/t/executor/partition/issues.test @@ -337,3 +337,8 @@ explain select * from t where col_29 between -7 and -6; --sorted_result select * from t where col_29 between -7 and -6; +# TestIssue52198 +create table issue52198 (a int, b int, primary key (b)) partition by hash(b) partitions 5; +insert into issue52198 values (1,1); +select space(1), b from issue52198 where b in (1); +drop table issue52198;