refine large size query range
This commit is contained in:
@ -124,9 +124,9 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
|ID|OPERATOR |NAME |EST. ROWS|COST|
|
||||
--------------------------------------------------------
|
||||
|0 |NESTED-LOOP JOIN | |1 |126 |
|
||||
|1 | SUBPLAN SCAN |VIEW4 |1 |37 |
|
||||
|1 | SUBPLAN SCAN |VIEW3 |1 |37 |
|
||||
|2 | SCALAR GROUP BY| |1 |37 |
|
||||
|3 | SUBPLAN SCAN |VIEW5 |1 |37 |
|
||||
|3 | SUBPLAN SCAN |VIEW4 |1 |37 |
|
||||
|4 | TABLE SCAN |t9(idx_t9,Reverse)|1 |37 |
|
||||
|5 | TABLE SCAN |t9(idx_t9) |1 |89 |
|
||||
========================================================
|
||||
@ -134,13 +134,13 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
Outputs & filters:
|
||||
-------------------------------------
|
||||
0 - output([t9.c1], [t9.c2], [t9.c3], [t9.c4]), filter(nil),
|
||||
conds(nil), nl_params_([VIEW4.max(c2)])
|
||||
1 - output([VIEW4.max(c2)]), filter(nil),
|
||||
access([VIEW4.max(c2)])
|
||||
2 - output([T_FUN_MAX(VIEW5.c2)]), filter(nil),
|
||||
group(nil), agg_func([T_FUN_MAX(VIEW5.c2)])
|
||||
3 - output([VIEW5.c2]), filter(nil),
|
||||
access([VIEW5.c2])
|
||||
conds(nil), nl_params_([VIEW3.max(c2)])
|
||||
1 - output([VIEW3.max(c2)]), filter(nil),
|
||||
access([VIEW3.max(c2)])
|
||||
2 - output([T_FUN_MAX(VIEW4.c2)]), filter(nil),
|
||||
group(nil), agg_func([T_FUN_MAX(VIEW4.c2)])
|
||||
3 - output([VIEW4.c2]), filter(nil),
|
||||
access([VIEW4.c2])
|
||||
4 - output([t9.c2]), filter([(T_OP_IS_NOT, t9.c2, NULL, 0)]),
|
||||
access([t9.c2]), partitions(p0),
|
||||
limit(1), offset(nil)
|
||||
|
||||
@ -4393,9 +4393,9 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"view_base_item":-1
|
||||
},
|
||||
{
|
||||
"table_id":-6,
|
||||
"table_name":"VIEW4",
|
||||
"alias_name":"VIEW4",
|
||||
"table_id":-5,
|
||||
"table_name":"VIEW3",
|
||||
"alias_name":"VIEW3",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"table_type":2,
|
||||
@ -4640,7 +4640,7 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
},
|
||||
{
|
||||
"column_id":16,
|
||||
"table_id":-6,
|
||||
"table_id":-5,
|
||||
"column":"max(c2)",
|
||||
"auto_filled_timestamp":false,
|
||||
"default_value": {
|
||||
@ -4675,10 +4675,10 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"rel_id": [
|
||||
2
|
||||
],
|
||||
"table_id":-6,
|
||||
"table_id":-5,
|
||||
"column_id":16,
|
||||
"database_name":"",
|
||||
"table_name":"VIEW4",
|
||||
"table_name":"VIEW3",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"column_name":"max(c2)",
|
||||
@ -4958,7 +4958,7 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"is_join":false
|
||||
},
|
||||
{
|
||||
"table_id":-6,
|
||||
"table_id":-5,
|
||||
"is_join":false
|
||||
}
|
||||
],
|
||||
@ -5071,10 +5071,10 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"rel_id": [
|
||||
2
|
||||
],
|
||||
"table_id":-6,
|
||||
"table_id":-5,
|
||||
"column_id":16,
|
||||
"database_name":"",
|
||||
"table_name":"VIEW4",
|
||||
"table_name":"VIEW3",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"column_name":"max(c2)",
|
||||
@ -5175,9 +5175,9 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"transpose_item":null,
|
||||
"table": [
|
||||
{
|
||||
"table_id":-7,
|
||||
"table_name":"VIEW5",
|
||||
"alias_name":"VIEW5",
|
||||
"table_id":-6,
|
||||
"table_name":"VIEW4",
|
||||
"alias_name":"VIEW4",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"table_type":2,
|
||||
@ -5198,7 +5198,7 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"column": [
|
||||
{
|
||||
"column_id":16,
|
||||
"table_id":-7,
|
||||
"table_id":-6,
|
||||
"column":"c2",
|
||||
"auto_filled_timestamp":false,
|
||||
"default_value": {
|
||||
@ -5233,10 +5233,10 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"rel_id": [
|
||||
1
|
||||
],
|
||||
"table_id":-7,
|
||||
"table_id":-6,
|
||||
"column_id":16,
|
||||
"database_name":"",
|
||||
"table_name":"VIEW5",
|
||||
"table_name":"VIEW4",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"column_name":"c2",
|
||||
@ -5315,10 +5315,10 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"rel_id": [
|
||||
1
|
||||
],
|
||||
"table_id":-7,
|
||||
"table_id":-6,
|
||||
"column_id":16,
|
||||
"database_name":"",
|
||||
"table_name":"VIEW5",
|
||||
"table_name":"VIEW4",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"column_name":"c2",
|
||||
@ -5370,7 +5370,7 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"nocycle":false,
|
||||
"from": [
|
||||
{
|
||||
"table_id":-7,
|
||||
"table_id":-6,
|
||||
"is_join":false
|
||||
}
|
||||
],
|
||||
@ -5447,10 +5447,10 @@ SQL: select * from t9 where c2 = (select max(c2) from t9);
|
||||
"rel_id": [
|
||||
1
|
||||
],
|
||||
"table_id":-7,
|
||||
"table_id":-6,
|
||||
"column_id":16,
|
||||
"database_name":"",
|
||||
"table_name":"VIEW5",
|
||||
"table_name":"VIEW4",
|
||||
"synonym_name":"",
|
||||
"synonym_db_name":"",
|
||||
"column_name":"c2",
|
||||
|
||||
Reference in New Issue
Block a user