Files
oceanbase/unittest/sql/resolver/result/test_resolver_view_2.result
wangzelin.wzl 93a1074b0c patch 4.0
2022-10-24 17:57:12 +08:00

12387 lines
415 KiB
Plaintext

*************** Case 1 ***************
drop database if exists view;
{
"drop_database_arg":"tenant_id",
"database_name":"view",
"if_exist":true,
"to_recyclebin":false
}
*************** Case 2 ***************
create database view;
{
"create_database_arg":"database_schema",
"database_id":-1,
"schema_version":1,
"database_name":"view",
"replica_num":0,
"zone_list": [
],
"primary_zone":"",
"charset_type":2,
"collation_type":"utf8mb4_general_ci",
"name_case_mode":-1,
"comment":"",
"read_only":false,
"default_tablegroup_id":-1,
"default_tablegroup_name":"",
"in_recyclebin":false,
"primary_zone_array": [
]
}
*************** Case 3 ***************
use view;
{
"stmt_type":97
}
*************** Case 4 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 5 ***************
drop view if exists v, vv;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
},
{
"database_name":"view",
"table_name":"vv"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 6 ***************
create table t1(c1 int, c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 7 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 8 ***************
create view vv as select c1 from v;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"vv", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`v`.`c1` AS `c1` from `view`.`v`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 9 ***************
select c1, c2 from v;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677878,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677878,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677877,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677878,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677878,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677877,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677878,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677878,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677878,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c2",
"expr_name":"c2",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677878,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677877,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677877,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677877,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677877,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677877,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677877,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677877,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677877,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677877,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677877,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677877,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 10 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 11 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 12 ***************
select c1 from v;
*************** Case 13 ***************
select c2 from v;
*************** Case 14 ***************
select c1, c2 from v;
*************** Case 15 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 16 ***************
select c1 from v;
*************** Case 17 ***************
select c2 from v;
*************** Case 18 ***************
select c1, c2 from v;
*************** Case 19 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 20 ***************
select c1 from vv;
*************** Case 21 ***************
select c2 from vv;
*************** Case 22 ***************
select c1, c2 from vv;
*************** Case 23 ***************
select 1 as a from vv;
*************** Case 24 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 25 ***************
drop view if exists v, vv;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
},
{
"database_name":"view",
"table_name":"vv"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 26 ***************
create table t1(c1 int, c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 27 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 28 ***************
create view vv as select c2 from v;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"vv", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`v`.`c2` AS `c2` from `view`.`v`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 29 ***************
select c1, c2 from v;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677883,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677883,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677882,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677883,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677883,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677882,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677883,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677883,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677883,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c2",
"expr_name":"c2",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677883,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677882,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677882,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677882,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677882,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677882,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677882,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677882,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677882,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677882,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677882,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677882,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 30 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 31 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 32 ***************
select c1 from v;
*************** Case 33 ***************
select c2 from v;
*************** Case 34 ***************
select c1, c2 from v;
*************** Case 35 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 36 ***************
select c1 from v;
*************** Case 37 ***************
select c2 from v;
*************** Case 38 ***************
select c1, c2 from v;
*************** Case 39 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 40 ***************
select c1 from vv;
*************** Case 41 ***************
select c2 from vv;
*************** Case 42 ***************
select c1, c2 from vv;
*************** Case 43 ***************
select c2, c1 from vv;
*************** Case 44 ***************
select 1 as a from vv;
*************** Case 45 ***************
drop table if exists t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 46 ***************
drop view if exists v,vv;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
},
{
"database_name":"view",
"table_name":"vv"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 47 ***************
create table t1(c1 int ,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 48 ***************
create table t2(c1 int ,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t2", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 49 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 50 ***************
create view vv as select c1 from v;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"vv", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`v`.`c1` AS `c1` from `view`.`v`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 51 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 52 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 53 ***************
select * from v;
*************** Case 54 ***************
select v.* from v;
*************** Case 55 ***************
select * from vv;
*************** Case 56 ***************
select vv.* from vv;
*************** Case 57 ***************
drop table if exists t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 58 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 59 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 60 ***************
create table t2(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t2", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 61 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 62 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 63 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 64 ***************
select v.c1 from v join t2 on v.c1 = t2.c1;
*************** Case 65 ***************
select v.c1 from v join t2 on v.c2 = t2.c2;
*************** Case 66 ***************
select v.c1 from v join t2 using(c1);
*************** Case 67 ***************
select v.c1 from v join t2 using(c2);
*************** Case 68 ***************
drop table if exists t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 69 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 70 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 71 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 72 ***************
select c1 from v where c2 = 1;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677897,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":17,
"table_id":1099511677897,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":16,
"table_id":1099511677897,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677897,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
{
"item_type":"T_OP_EQ",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":1,
"scale":0
},
"flag":0,
"calc_type": {
"type":"DECIMAL",
"collation":"binary",
"coercibility":"NUMERIC"
}
},
"expr_info": [
"CNT_CONST",
"CNT_COLUMN",
"CNT_STATIC_PARAM",
"IS_SIMPLE_COND"
],
"rel_id": [
1
],
"expr_levels": [
0
],
"children": [
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":0
}
}
]
}
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":1,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677896,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677896,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677896,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677896,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677896,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":1,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 73 ***************
select c1 from v where (select c2) = 1;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677897,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":17,
"table_id":1099511677897,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":16,
"table_id":1099511677897,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677897,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
{
"item_type":"T_OP_EQ",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":1,
"scale":0
},
"flag":0,
"calc_type": {
"type":"DECIMAL",
"collation":"binary",
"coercibility":"NUMERIC"
}
},
"expr_info": [
"CNT_CONST",
"CNT_STATIC_PARAM",
"CNT_SUB_QUERY"
],
"rel_id": [
1
],
"expr_levels": [
0
],
"children": [
{
"item_type":"T_REF_QUERY",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_SUB_QUERY",
"CNT_SUB_QUERY"
],
"rel_id": [
1
],
"id":0,
"expr_level":0,
"expr_levels": [
0
],
"output_column":1,
"is_set":false,
"column_types": [
{
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
}
],
"enum_set_values": [
]
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":0
}
}
]
}
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":1,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677896,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677896,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677896,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677896,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677896,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677896,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677896,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":1,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
},
{
"stmt_type":1,
"table": [
],
"joined_table": [
],
"partition_express": [
],
"column": [
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677897,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c2",
"expr_name":"c2",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":1,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":1,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 74 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 75 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 76 ***************
select c1 from v where c2 = 1;
*************** Case 77 ***************
select c1 from v where (select c2) = 1;
*************** Case 78 ***************
drop table if exists t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 79 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 80 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 81 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 82 ***************
select c1 from v order by c2;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677900,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677900,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677900,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677900,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"ascending":"ASC"
}
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677899,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677899,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677899,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677899,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677899,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 83 ***************
select c1 from v order by (select c2);
{
"stmt_type":1,
"table": [
{
"table_id":1099511677900,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677900,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677900,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677900,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
{
"expression": {
"item_type":"T_REF_QUERY",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_SUB_QUERY",
"CNT_SUB_QUERY"
],
"rel_id": [
1
],
"id":0,
"expr_level":0,
"expr_levels": [
0
],
"output_column":1,
"is_set":false,
"column_types": [
{
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
}
],
"enum_set_values": [
]
},
"ascending":"ASC"
}
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677899,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677899,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677899,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677899,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677899,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677899,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677899,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
},
{
"stmt_type":1,
"table": [
],
"joined_table": [
],
"partition_express": [
],
"column": [
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677900,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c2",
"expr_name":"c2",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":1,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 84 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 85 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 86 ***************
select c1 from v order by c2;
*************** Case 87 ***************
select c1 from v order by (select c2);
*************** Case 88 ***************
drop table if exists t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 89 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 90 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 91 ***************
create view v as select c1, c2 from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 92 ***************
select c1 from v group by c2;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677903,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677903,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677903,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677903,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677902,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677902,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677902,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677902,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677902,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 93 ***************
select c1 from v group by (select c2);
{
"stmt_type":1,
"table": [
{
"table_id":1099511677903,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677903,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677903,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677903,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
{
"item_type":"T_REF_QUERY",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_SUB_QUERY",
"CNT_SUB_QUERY"
],
"rel_id": [
1
],
"id":0,
"expr_level":0,
"expr_levels": [
0
],
"output_column":1,
"is_set":false,
"column_types": [
{
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
}
],
"enum_set_values": [
]
}
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677902,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677902,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677902,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677902,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677902,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677902,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677902,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
},
{
"stmt_type":1,
"table": [
],
"joined_table": [
],
"partition_express": [
],
"column": [
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677903,
"column_id":17,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c2",
"expr_name":"c2",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":1,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 94 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 95 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 96 ***************
select c1 from v group by c2;
*************** Case 97 ***************
select c1 from v group by (select c2);
*************** Case 98 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 99 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 100 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 101 ***************
insert into t1 values(1,2),(2,3),(3,4);
{
"stmt_type":2,
"table": [
{
"table_id":1099511677905,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677905,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"partition_express": [
],
"all_table_columns": [
{
"table_name":"t1",
"index_dml_infos": [
{
"table_id":1099511677905,
"index_tid":1099511677905,
"index_name":"t1",
"rowkey_cnt":3,
"part_cnt":1,
"column_exprs": [
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16899,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677905,
"column_id":1,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_increment",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16387,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677905,
"column_id":4,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_cluster_id",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16387,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677905,
"column_id":5,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_partition_id",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677905,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677905,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
],
"assignments": [
]
}
]
}
],
"is_ignore":false,
"primary_key_ids": [
],
"column_conv": [
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_FUN_SYS_NEXTVAL",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":20,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_STATE_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"nextval",
"children": [
{
"item_type":"T_UINT64",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT UNSIGNED":1
}
}
],
"enum_set_values": [
]
}
],
"enum_set_values": [
]
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM",
"IS_DYNAMIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":6
}
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_FUN_SYS_PART_ID",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":20,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_STATE_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"",
"children": [
{
"item_type":"T_UINT64",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT UNSIGNED":1099511677905
}
}
],
"enum_set_values": [
]
}
],
"enum_set_values": [
]
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"CNT_CONST",
"CNT_COLUMN",
"CNT_FUNC"
],
"rel_id": [
],
"expr_levels": [
0
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":4
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":51539607551
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":1
}
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":128,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
],
"table_id":1099511677905,
"column_id":16,
"database_name":"",
"table_name":"__values",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":false,
"explicited_ref_count":0,
"enum_set_values": [
],
"is_lob_column":false
}
],
"enum_set_values": [
]
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"CNT_CONST",
"CNT_COLUMN",
"CNT_FUNC"
],
"rel_id": [
],
"expr_levels": [
0
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":4
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":51539607551
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":1
}
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":128,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
],
"table_id":1099511677905,
"column_id":17,
"database_name":"",
"table_name":"__values",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":false,
"explicited_ref_count":0,
"enum_set_values": [
],
"is_lob_column":false
}
],
"enum_set_values": [
]
}
],
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":0,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":7,
"fetch_cur_time":true,
"calculable_items": [
{
"expression": {
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_FUNC",
"IS_CALCULABLE_EXPR",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_CALCULABLE_EXPR"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":0
}
}
],
"enum_set_values": [
]
},
"idx":6
}
]
},
"value": [
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":0
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":1
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":2
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":3
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":4
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":5
}
}
]
}
*************** Case 102 ***************
create view v as select c1,c2 from t1 order by c2;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1` order by `view`.`t1`.`c2`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 103 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 104 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 105 ***************
select c1 from v;
*************** Case 106 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 107 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 108 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 109 ***************
insert into t1 values(1,2),(2,3),(3,4);
{
"stmt_type":2,
"table": [
{
"table_id":1099511677908,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677908,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"partition_express": [
],
"all_table_columns": [
{
"table_name":"t1",
"index_dml_infos": [
{
"table_id":1099511677908,
"index_tid":1099511677908,
"index_name":"t1",
"rowkey_cnt":3,
"part_cnt":1,
"column_exprs": [
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16899,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":1,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_increment",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16387,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":4,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_cluster_id",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16387,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":5,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_partition_id",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
],
"assignments": [
]
}
]
}
],
"is_ignore":false,
"primary_key_ids": [
],
"column_conv": [
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_FUN_SYS_NEXTVAL",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":20,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_STATE_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"nextval",
"children": [
{
"item_type":"T_UINT64",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT UNSIGNED":1
}
}
],
"enum_set_values": [
]
}
],
"enum_set_values": [
]
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM",
"IS_DYNAMIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":6
}
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_FUN_SYS_PART_ID",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":20,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_STATE_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"",
"children": [
{
"item_type":"T_UINT64",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT UNSIGNED":1099511677908
}
}
],
"enum_set_values": [
]
}
],
"enum_set_values": [
]
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"CNT_CONST",
"CNT_COLUMN",
"CNT_FUNC"
],
"rel_id": [
],
"expr_levels": [
0
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":4
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":51539607551
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":1
}
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":128,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
],
"table_id":1099511677908,
"column_id":16,
"database_name":"",
"table_name":"__values",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":false,
"explicited_ref_count":0,
"enum_set_values": [
],
"is_lob_column":false
}
],
"enum_set_values": [
]
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"CNT_CONST",
"CNT_COLUMN",
"CNT_FUNC"
],
"rel_id": [
],
"expr_levels": [
0
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":4
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":51539607551
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":1
}
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":128,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
],
"table_id":1099511677908,
"column_id":17,
"database_name":"",
"table_name":"__values",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":false,
"explicited_ref_count":0,
"enum_set_values": [
],
"is_lob_column":false
}
],
"enum_set_values": [
]
}
],
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":0,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":7,
"fetch_cur_time":true,
"calculable_items": [
{
"expression": {
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_FUNC",
"IS_CALCULABLE_EXPR",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_CALCULABLE_EXPR"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":0
}
}
],
"enum_set_values": [
]
},
"idx":6
}
]
},
"value": [
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":0
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":1
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":2
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":3
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":4
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":5
}
}
]
}
*************** Case 110 ***************
create view v as select c1, -1 as c2 from t1 order by (select c2);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,-1 AS `c2` from `view`.`t1` order by (select `view`.`t1`.`c2`)", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 111 ***************
select c1 from v;
{
"stmt_type":1,
"table": [
{
"table_id":1099511677909,
"table_name":"v",
"alias_name":"",
"synonym_name":"",
"table_type":2,
"ref_id":-1,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677909,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677908,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677909,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677909,
"column_id":16,
"database_name":"view",
"table_name":"v",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c1",
"expr_name":"c1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677909,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
{
"table_id":1099511677908,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677908,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"joined_table": [
],
"partition_express": [
],
"column": [
{
"column_id":16,
"table_id":1099511677908,
"column":"c1",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677908,
"base_cid":16,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
},
{
"column_id":17,
"table_id":1099511677908,
"column":"c2",
"auto_filled_timestamp":false,
"default_value": {
"NULL":"NULL"
},
"base_tid":1099511677908,
"base_cid":17,
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
}
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":true,
"alias_name":"c1",
"expr_name":"`view`.`t1`.`c1`",
"default": {
"NULL":"NULL"
}
},
{
"expression": {
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":2,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
"is_alias":true,
"alias_name":"c2",
"expr_name":"-1",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
{
"table_id":1099511677908,
"is_join":false
}
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
{
"expression": {
"item_type":"T_REF_QUERY",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_SUB_QUERY",
"CNT_SUB_QUERY"
],
"rel_id": [
1
],
"id":0,
"expr_level":0,
"expr_levels": [
0
],
"output_column":1,
"is_set":false,
"column_types": [
{
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
}
],
"enum_set_values": [
]
},
"ascending":"ASC"
}
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":0,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
{
"stmt_type":1,
"table": [
],
"joined_table": [
],
"partition_express": [
],
"column": [
],
"select": [
{
"expression": {
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677908,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
"is_alias":false,
"alias_name":"c2",
"expr_name":"`view`.`t1`.`c2`",
"default": {
"NULL":"NULL"
}
}
],
"distinct":false,
"rollup":false,
"nocycle":false,
"from": [
],
"start_with": [
],
"connect_by": [
],
"where": [
],
"group_by": [
],
"having": [
],
"aggr_func": [
],
"order_by": [
],
"limit":null,
"offset":null,
"show_stmt_ctx": {
"is_from_show_stmt":false,
"global_scope":false,
"tenant_id":-1,
"show_database_id":-1,
"show_table_id":-1,
"grants_user_id":-1
},
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":2,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":0,
"fetch_cur_time":true,
"calculable_items": [
]
},
"extra_output_exprs": [
],
"current_level":1,
"equal_sets": [
],
"pseudo_column_exprs": [
],
"child_stmts": [
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
],
"has_transformed_for_hierarchical_query":false,
"is_hierarchical_query":false
}
*************** Case 112 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 113 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 114 ***************
select c1 from v;
*************** Case 115 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 116 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 117 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 118 ***************
create view v as select c1,c2 from t1 where c2=1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1` where (`view`.`t1`.`c2` = 1)", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 119 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 120 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 121 ***************
select c1 from v;
*************** Case 122 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 123 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 124 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 125 ***************
insert into t1 values(1,2),(2,3),(3,4);
{
"stmt_type":2,
"table": [
{
"table_id":1099511677914,
"table_name":"t1",
"alias_name":"",
"synonym_name":"",
"table_type":0,
"ref_id":1099511677914,
"database_name":"view",
"for_update":false,
"wait":-1,
"mock_id":-1,
"view_base_item":-1
}
],
"partition_express": [
],
"all_table_columns": [
{
"table_name":"t1",
"index_dml_infos": [
{
"table_id":1099511677914,
"index_tid":1099511677914,
"index_name":"t1",
"rowkey_cnt":3,
"part_cnt":1,
"column_exprs": [
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16899,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677914,
"column_id":1,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_increment",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16387,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677914,
"column_id":4,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_cluster_id",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":16387,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677914,
"column_id":5,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"__pk_partition_id",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677914,
"column_id":16,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
1
],
"table_id":1099511677914,
"column_id":17,
"database_name":"view",
"table_name":"t1",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":true,
"explicited_ref_count":1,
"enum_set_values": [
],
"is_lob_column":false
}
],
"assignments": [
]
}
]
}
],
"is_ignore":false,
"primary_key_ids": [
],
"column_conv": [
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_FUN_SYS_NEXTVAL",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":20,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_STATE_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"nextval",
"children": [
{
"item_type":"T_UINT64",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT UNSIGNED":1
}
}
],
"enum_set_values": [
]
}
],
"enum_set_values": [
]
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM",
"IS_DYNAMIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":6
}
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_FUN_SYS_PART_ID",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":20,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"IS_STATE_FUNC",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_STATE_FUNC"
],
"rel_id": [
],
"expr_levels": [
],
"func":"",
"children": [
{
"item_type":"T_UINT64",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT UNSIGNED":1099511677914
}
}
],
"enum_set_values": [
]
}
],
"enum_set_values": [
]
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"CNT_CONST",
"CNT_COLUMN",
"CNT_FUNC"
],
"rel_id": [
],
"expr_levels": [
0
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":4
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":51539607551
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":1
}
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":128,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
],
"table_id":1099511677914,
"column_id":16,
"database_name":"",
"table_name":"__values",
"synonym_name":"",
"column_name":"c1",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":false,
"explicited_ref_count":0,
"enum_set_values": [
],
"is_lob_column":false
}
],
"enum_set_values": [
]
},
{
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":0,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_FUNC",
"CNT_CONST",
"CNT_COLUMN",
"CNT_FUNC"
],
"rel_id": [
],
"expr_levels": [
0
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":4
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":51539607551
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":1
}
},
{
"item_type":"T_REF_COLUMN",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":11,
"scale":0
},
"flag":128,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_COLUMN",
"CNT_COLUMN"
],
"rel_id": [
],
"table_id":1099511677914,
"column_id":17,
"database_name":"",
"table_name":"__values",
"synonym_name":"",
"column_name":"c2",
"expr_level":0,
"expr_levels": [
0
],
"column_flags":0,
"is_explicited_referece":false,
"explicited_ref_count":0,
"enum_set_values": [
],
"is_lob_column":false
}
],
"enum_set_values": [
]
}
],
"hint": {
"read_static":false,
"no_rewrite":false,
"frozen_version":-1,
"topk_precision":-1,
"sharding_minimum_row_count":0,
"query_timeout":-1,
"hotspot":false,
"index": [
],
"read_consistency":-1,
"join_ordered":false,
"join_order": [
],
"merge_hint_ids": [
],
"hash_hint_ids": [
],
"no_hash_hint_ids": [
],
"nl_hint_ids": [
],
"part_hints": [
],
"use_late_materialization":-1,
"log_level":"",
"max_concurrent":-1,
"only_concurrent_hint":false,
"has_hint_exclude_concurrent":false,
"parallel":-1,
"use_px":0,
"use join filter":false,
"org_pq_distributes": [
],
"pq_distributes": [
]
},
"query_context": {
"param_num":7,
"fetch_cur_time":true,
"calculable_items": [
{
"expression": {
"item_type":"T_FUN_COLUMN_CONV",
"result_type": {
"meta": {
"type":"BIGINT UNSIGNED",
"collation":"binary",
"coercibility":"IMPLICIT"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_FUNC",
"IS_CALCULABLE_EXPR",
"IS_CONST_EXPR",
"CNT_CONST",
"CNT_FUNC",
"CNT_CALCULABLE_EXPR"
],
"rel_id": [
],
"expr_levels": [
],
"func":"column_conv",
"children": [
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":10
}
},
{
"item_type":"T_INT32",
"result_type": {
"meta": {
"type":"INT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"INT":63
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":-1
}
},
{
"item_type":"T_TINYINT",
"result_type": {
"meta": {
"type":"TINYINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"TINYINT":0
}
},
{
"item_type":"T_INT",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":-1,
"precision":-1,
"scale":-1
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"CNT_CONST"
],
"rel_id": [
],
"value": {
"BIGINT":0
}
}
],
"enum_set_values": [
]
},
"idx":6
}
]
},
"value": [
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":0
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":1
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":2
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":3
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":4
}
},
{
"item_type":"T_QUESTIONMARK",
"result_type": {
"meta": {
"type":"BIGINT",
"collation":"binary",
"coercibility":"NUMERIC"
},
"accuracy": {
"length":1,
"precision":1,
"scale":0
},
"flag":1,
"calc_type": {
"type":"NULL",
"collation":"invalid_type",
"coercibility":"INVALID"
}
},
"expr_info": [
"IS_CONST",
"IS_STATIC_PARAM",
"CNT_CONST",
"CNT_STATIC_PARAM"
],
"rel_id": [
],
"value": {
"UNKNOWN":5
}
}
]
}
*************** Case 126 ***************
create view v as select c1, -1 as c2 from t1 order by (select c2);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,-1 AS `c2` from `view`.`t1` order by (select `view`.`t1`.`c2`)", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 127 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 128 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 129 ***************
select c1 from v;
*************** Case 130 ***************
drop table if exists t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 131 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 132 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 133 ***************
create view v as select c1,sum(c2) from t1;
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"select `view`.`t1`.`c1` AS `c1`,sum(`view`.`t1`.`c2`) AS `sum(c2)` from `view`.`t1`", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 134 ***************
drop table t1;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 135 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 136 ***************
select c1 from v;
*************** Case 137 ***************
drop table if exists t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 138 ***************
drop view if exists v;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":4,
"tables": [
{
"database_name":"view",
"table_name":"v"
}
],
"if_exist":true,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 139 ***************
create table t1(c1 int,c2 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 140 ***************
create table t2(c3 int,c4 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t2", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":17, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 141 ***************
create view v as (select c1,c2 from t1) union (select c3,c4 from t2);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"v", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":4, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":0, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":0, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"", "row_store_type":1, "store_format":0, "expire_info":"", "view_schema":{"view_definition":"(select `view`.`t1`.`c1` AS `c1`,`view`.`t1`.`c2` AS `c2` from `view`.`t1`) union (select `view`.`t2`.`c3` AS `c3`,`view`.`t2`.`c4` AS `c4` from `view`.`t2`)", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":null, "capacity":0}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 142 ***************
drop table t1,t2;
{
"stmt_type":21,
"drop_table_arg": {
"tenant_id":1,
"table_type":3,
"tables": [
{
"database_name":"view",
"table_name":"t1"
},
{
"database_name":"view",
"table_name":"t2"
}
],
"if_exist":false,
"to_recyclebin":false,
"session_id":-1,
"sess_create_time":0
}
}
*************** Case 143 ***************
create table t1(c1 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 144 ***************
create table t2(c3 int);
{"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[], "part_type":8}, "stmt_type":20, "create_table_arg":{"if_not_exist":false, "schema":{"simple_table_schema":{"tenant_id":1, "database_id":18446744073709551615, "tablegroup_id":1099511627777, "table_id":18446744073709551615, "table_name":"t2", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":16, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":3, "index_column_num":0, "rowkey_split_pos":0, "block_size":16384, "is_use_bloomfilter":false, "progressive_merge_num":0, "tablet_size":134217728, "pctfree":10, "load_type":0, "index_using_type":0, "def_type":1, "charset_type":2, "collation_type":45, "create_mem_version":0, "index_status":1, "partition_status":0, "code_version":1, "last_modified_frozen_version":0, "comment":"", "pk_comment":"", "create_host":"", "zone_replica_attr_array":[], "region_replica_num_array":[], "tablegroup_name":"", "compress_func_name":"zstd_1.0", "row_store_type":1, "store_format":3, "expire_info":"", "view_schema":{"view_definition":"", "check_option":"none", "is_updatable":"false", "is_materialized":"false"}, "autoinc_column_id":0, "auto_increment":1, "read_only":false, "primary_zone_array":[], "index_tid_array":[], "mv_tid_array":[], "aux_vp_tid_array":[], "base_table_ids":[], "rowkey_info":{"columns":[{"length":0, "column_id":1, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":4, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":5, "type":{"type":"BIGINT UNSIGNED", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":3}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"view", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
*************** Case 145 ***************
select c1 from v;
*************** Case 146 ***************
select c2 from v;
*************** Case 147 ***************
drop database if exists view;
{
"drop_database_arg":"tenant_id",
"database_name":"view",
"if_exist":true,
"to_recyclebin":false
}