/* error_message: db1: hook early check failed: CRASH db2: Database execute error: HY000, [MySQL][ODBC 8.2(a) Driver][mysqld-8.0.11-TiDB-v7.5.1]runtime error: index out of range [-1] */ select ref_0.c_sw_6 as c0 from t_m9j7wwx16k as ref_0 where 0<>0 union (select LAG( cast(case when ('spum5t' <= cast(null as char)) then ref_1.c_rlhcni__o else ref_1.c_este10ce0x end as signed)) over win_pjzni5 as c0 from t_yyb8142hi_ as ref_1 where ((((126.1 <> (0<>0) or ((ref_1.c_este10ce0x is not NULL)))) and ((2918432 < 1238701))) or ((ref_1.c_este10ce0x is not NULL))) and ((ref_1.c_rlhcni__o between ref_1.c_este10ce0x and ref_1.c_este10ce0x)) window win_pjzni5 as ( partition by case when (EXISTS ( select ref_2.c_ow6bvuvjth as c0, ref_2.c_u as c1 from t_fg31 as ref_2 where ((select sum(c_y3ddp41ho) from t_hh6_ty) not like 'j_') order by c0, c1 desc limit 132)) then ref_1.c_b6b else (ref_1.c_b6b not in ( select 1=1 as c0 from t_c95_pl as ref_3 where (ref_3.c_bxq9xkn0 <> ( select distinct cast(null as double) as c0 from t_hh6_ty as ref_4 where (0<>0) and (0<>0) order by c0 desc limit 1)))) end order by ref_1.c_rlhcni__o, ref_1.c_este10ce0x, ref_1.c_b6b asc));