@@ -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 . AuthorizationHandler (), 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 . AuthorizationHandler (), tt .Query )
615615 require .NoError (t , err )
616616
617617 node , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
@@ -1360,7 +1360,7 @@ func TestTruncate(t *testing.T, harness Harness) {
13601360 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t5 ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (1 )}, {int64 (2 ), int64 (2 )}}, nil , nil , nil )
13611361
13621362 deleteStr := "DELETE FROM t5"
1363- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1363+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
13641364 require .NoError (t , err )
13651365 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
13661366 require .NoError (t , err )
@@ -1389,7 +1389,7 @@ func TestTruncate(t *testing.T, harness Harness) {
13891389 RunQueryWithContext (t , e , harness , ctx , "INSERT INTO t6parent VALUES (1,1), (2,2)" )
13901390 RunQueryWithContext (t , e , harness , ctx , "INSERT INTO t6child VALUES (1,1), (2,2)" )
13911391
1392- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , "DELETE FROM t6parent" )
1392+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), "DELETE FROM t6parent" )
13931393 require .NoError (t , err )
13941394 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
13951395 require .NoError (t , err )
@@ -1417,7 +1417,7 @@ func TestTruncate(t *testing.T, harness Harness) {
14171417 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t7i ORDER BY 1" , []sql.Row {{int64 (3 ), int64 (3 )}}, nil , nil , nil )
14181418
14191419 deleteStr := "DELETE FROM t7"
1420- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1420+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
14211421 require .NoError (t , err )
14221422 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
14231423 require .NoError (t , err )
@@ -1445,7 +1445,7 @@ func TestTruncate(t *testing.T, harness Harness) {
14451445 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t8 ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (4 )}, {int64 (2 ), int64 (5 )}}, nil , nil , nil )
14461446
14471447 deleteStr := "DELETE FROM t8"
1448- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1448+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
14491449 require .NoError (t , err )
14501450 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
14511451 require .NoError (t , err )
@@ -1474,7 +1474,7 @@ func TestTruncate(t *testing.T, harness Harness) {
14741474 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t9 ORDER BY 1" , []sql.Row {{int64 (7 ), int64 (7 )}, {int64 (8 ), int64 (8 )}}, nil , nil , nil )
14751475
14761476 deleteStr := "DELETE FROM t9 WHERE pk > 0"
1477- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1477+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
14781478 require .NoError (t , err )
14791479 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
14801480 require .NoError (t , err )
@@ -1501,7 +1501,7 @@ func TestTruncate(t *testing.T, harness Harness) {
15011501 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t10 ORDER BY 1" , []sql.Row {{int64 (8 ), int64 (8 )}, {int64 (9 ), int64 (9 )}}, nil , nil , nil )
15021502
15031503 deleteStr := "DELETE FROM t10 LIMIT 1000"
1504- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1504+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
15051505 require .NoError (t , err )
15061506 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
15071507 require .NoError (t , err )
@@ -1528,7 +1528,7 @@ func TestTruncate(t *testing.T, harness Harness) {
15281528 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t11 ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (1 )}, {int64 (9 ), int64 (9 )}}, nil , nil , nil )
15291529
15301530 deleteStr := "DELETE FROM t11 ORDER BY 1"
1531- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1531+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
15321532 require .NoError (t , err )
15331533 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
15341534 require .NoError (t , err )
@@ -1559,7 +1559,7 @@ func TestTruncate(t *testing.T, harness Harness) {
15591559 TestQueryWithContext (t , ctx , e , harness , "SELECT * FROM t12b ORDER BY 1" , []sql.Row {{int64 (1 ), int64 (1 )}, {int64 (2 ), int64 (2 )}}, nil , nil , nil )
15601560
15611561 deleteStr := "DELETE t12a, t12b FROM t12a INNER JOIN t12b WHERE t12a.pk=t12b.pk"
1562- parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , deleteStr )
1562+ parsed , qFlags , err := planbuilder .Parse (ctx , e .EngineAnalyzer ().Catalog , e . AuthorizationHandler (), deleteStr )
15631563 require .NoError (t , err )
15641564 analyzed , err := e .EngineAnalyzer ().Analyze (ctx , parsed , nil , qFlags )
15651565 require .NoError (t , err )
0 commit comments