@@ -584,7 +584,7 @@ func TestQueryPlanWithName(t *testing.T, name string, harness Harness, e QueryEn
584584 t .Run (name , func (t * testing.T ) {
585585 ctx := NewContext (harness )
586586
587- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , query )
587+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), query )
588588 require .NoError (t , err )
589589
590590 node , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
@@ -611,7 +611,7 @@ func TestQueryPlanWithName(t *testing.T, name string, harness Harness, e QueryEn
611611func TestQueryPlanWithEngine (t * testing.T , harness Harness , e QueryEngine , tt queries.QueryPlanTest , verbose bool ) {
612612 t .Run (tt .Query , func (t * testing.T ) {
613613 ctx := NewContext (harness )
614- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , tt .Query )
614+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), tt .Query )
615615 require .NoError (t , err )
616616
617617 node , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
@@ -1362,7 +1362,7 @@ func TestTruncate(t *testing.T, harness Harness) {
13621362 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t5 ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (1 )}, {int64 (2 ), int64 (2 )}}, nil , nil , nil )
13631363
13641364 deleteStr := "DELETE FROM t5"
1365- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1365+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
13661366 require .NoError (t , err )
13671367 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
13681368 require .NoError (t , err )
@@ -1391,7 +1391,7 @@ func TestTruncate(t *testing.T, harness Harness) {
13911391 RunQueryWithContext (t , e , harness , ctx , "INSERT INTO t6parent VALUES (1,1), (2,2)" )
13921392 RunQueryWithContext (t , e , harness , ctx , "INSERT INTO t6child VALUES (1,1), (2,2)" )
13931393
1394- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , "DELETE FROM t6parent" )
1394+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), "DELETE FROM t6parent" )
13951395 require .NoError (t , err )
13961396 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
13971397 require .NoError (t , err )
@@ -1419,7 +1419,7 @@ func TestTruncate(t *testing.T, harness Harness) {
14191419 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t7i ORDER BY 1" , []sql.Row {{int64 (3 ), int64 (3 )}}, nil , nil , nil )
14201420
14211421 deleteStr := "DELETE FROM t7"
1422- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1422+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
14231423 require .NoError (t , err )
14241424 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
14251425 require .NoError (t , err )
@@ -1447,7 +1447,7 @@ func TestTruncate(t *testing.T, harness Harness) {
14471447 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t8 ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (4 )}, {int64 (2 ), int64 (5 )}}, nil , nil , nil )
14481448
14491449 deleteStr := "DELETE FROM t8"
1450- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1450+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
14511451 require .NoError (t , err )
14521452 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
14531453 require .NoError (t , err )
@@ -1476,7 +1476,7 @@ func TestTruncate(t *testing.T, harness Harness) {
14761476 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t9 ORDER BY 1" , []sql.Row {{int64 (7 ), int64 (7 )}, {int64 (8 ), int64 (8 )}}, nil , nil , nil )
14771477
14781478 deleteStr := "DELETE FROM t9 WHERE pk > 0"
1479- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1479+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
14801480 require .NoError (t , err )
14811481 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
14821482 require .NoError (t , err )
@@ -1503,7 +1503,7 @@ func TestTruncate(t *testing.T, harness Harness) {
15031503 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t10 ORDER BY 1" , []sql.Row {{int64 (8 ), int64 (8 )}, {int64 (9 ), int64 (9 )}}, nil , nil , nil )
15041504
15051505 deleteStr := "DELETE FROM t10 LIMIT 1000"
1506- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1506+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
15071507 require .NoError (t , err )
15081508 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
15091509 require .NoError (t , err )
@@ -1530,7 +1530,7 @@ func TestTruncate(t *testing.T, harness Harness) {
15301530 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t11 ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (1 )}, {int64 (9 ), int64 (9 )}}, nil , nil , nil )
15311531
15321532 deleteStr := "DELETE FROM t11 ORDER BY 1"
1533- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1533+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
15341534 require .NoError (t , err )
15351535 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
15361536 require .NoError (t , err )
@@ -1561,7 +1561,7 @@ func TestTruncate(t *testing.T, harness Harness) {
15611561 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t12b ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (1 )}, {int64 (2 ), int64 (2 )}}, nil , nil , nil )
15621562
15631563 deleteStr := "DELETE t12a, t12b FROM t12a INNER JOIN t12b WHERE t12a.pk=t12b.pk"
1564- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1564+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . EngineEventScheduler (), deleteStr )
15651565 require .NoError (t , err )
15661566 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
15671567 require .NoError (t , err )
0 commit comments