81020 lines
		
	
	
		
			2.0 MiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			81020 lines
		
	
	
		
			2.0 MiB
		
	
	
	
	
	
	
	
| ***************   Case 1   ***************
 | |
| drop database if exists insert_db;
 | |
| {
 | |
|   "drop_database_arg":"tenant_id",
 | |
|   "database_name":"insert_db",
 | |
|   "if_exist":true,
 | |
|   "to_recyclebin":false
 | |
| }
 | |
| ***************   Case 2   ***************
 | |
| create database insert_db;
 | |
| {
 | |
|   "create_database_arg":"database_schema",
 | |
|   "database_id":-1,
 | |
|   "schema_version":1,
 | |
|   "database_name":"insert_db",
 | |
|   "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 insert_db;
 | |
| {
 | |
|   "stmt_type":97
 | |
| }
 | |
| ***************   Case 4   ***************
 | |
| create table t1(c1 int primary key, c2 int) partition by hash(c1 + 1) partitions 3
 | |
| {"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":1, "part_option":{"part_func_type":0, "part_func_expr":"c1 + 1", "part_num":3, "partition_cnt_within_partition_table":-1, "max_used_part_id":2}, "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":3, "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}, {"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":1, "name":"p1", "high_bound_val":, "list_row_values":[], "part_idx":1}, "mapping_pg_part_id":-1}, {"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":2, "name":"p2", "high_bound_val":, "list_row_values":[], "part_idx":2}, "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":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":[{"length":0, "column_id":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 5   ***************
 | |
| create table t2(c1 int, c2 int, c3 varchar(32), primary key(c2, c3)) partition by key(c2, c3) partitions 3
 | |
| {"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":1, "part_option":{"part_func_type":6, "part_func_expr":"c2, c3", "part_num":3, "partition_cnt_within_partition_table":-1, "max_used_part_id":2}, "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":3, "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}, {"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":1, "name":"p1", "high_bound_val":, "list_row_values":[], "part_idx":1}, "mapping_pg_part_id":-1}, {"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":2, "name":"p2", "high_bound_val":, "list_row_values":[], "part_idx":2}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":18, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":2, "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":17, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":32, "column_id":18, "type":{"type":"VARCHAR", "collation":"utf8mb4_general_ci", "coercibility":"INVALID"}, "order":0, "fulltext_flag":false}], "capacity":2}, "partition_key_info":{"columns":[{"length":0, "column_id":17, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":32, "column_id":18, "type":{"type":"VARCHAR", "collation":"utf8mb4_general_ci", "coercibility":"INVALID"}, "order":0, "fulltext_flag":false}], "capacity":2}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 6   ***************
 | |
| create table t3(c3 int primary key, 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":"t3", "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":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 7   ***************
 | |
| create index idx1 on t1(c2) LOCAL
 | |
| {
 | |
|   "stmt_type":23,
 | |
|   "create_index_arg": {
 | |
|     "index_arg": {
 | |
|       "tenant_id":1,
 | |
|       "session_id":-1,
 | |
|       "index_name":"idx1",
 | |
|       "table_name":"t1",
 | |
|       "database_name":"insert_db",
 | |
|       "index_action_type":2
 | |
|     },
 | |
|     "index_type":1,
 | |
|     "index_columns": [
 | |
|        {
 | |
|         "column_name":"c2",
 | |
|         "prefix_len":0,
 | |
|         "order_type":0,
 | |
|         "column_id":-1
 | |
|       }
 | |
|     ],
 | |
|     "fulltext_columns": [
 | |
|     ],
 | |
|     "store_columns": [
 | |
|     ],
 | |
|     "index_option": {
 | |
|       "block_size":16384,
 | |
|       "replica_num":0,
 | |
|       "index_status":1,
 | |
|       "use_bloom_filter":false,
 | |
|       "compress_method":"none",
 | |
|       "comment":"",
 | |
|       "tablegroup_name":"",
 | |
|       "progressive_merge_num":0,
 | |
|       "primary_zone":"",
 | |
|       "parser_name":"TAOBAO_CHN",
 | |
|       "index_attributes_set":0,
 | |
|       "row_store_type":3,
 | |
|       "store_format":0
 | |
|     },
 | |
|     "index_using_type":0,
 | |
|     "data_table_id":-1,
 | |
|     "index_table_id":-1,
 | |
|     "if_not_exist":false,
 | |
|     "index_schema": {
 | |
|       "simple_table_schema": {
 | |
|         "tenant_id":1,
 | |
|         "database_id":-1,
 | |
|         "tablegroup_id":-1,
 | |
|         "table_id":-1,
 | |
|         "table_name":"",
 | |
|         "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":-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":0,
 | |
|         "subpartition_num":0,
 | |
|         "partition_array":null,
 | |
|         "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":"",
 | |
|         "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": [
 | |
|       ]
 | |
|     }
 | |
|   }
 | |
| }
 | |
| ***************   Case 8   ***************
 | |
| create table test(c1 int , c2 int, c3 varchar(50), c4 varchar(50), c5 int , c6 double, c7 int, primary key(c1, c2, c3))
 | |
| {"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":"test", "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":22, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":17, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":50, "column_id":18, "type":{"type":"VARCHAR", "collation":"utf8mb4_general_ci", "coercibility":"INVALID"}, "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":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 9   ***************
 | |
| create index test_indx on test(c4, c5)
 | |
| {
 | |
|   "stmt_type":23,
 | |
|   "create_index_arg": {
 | |
|     "index_arg": {
 | |
|       "tenant_id":1,
 | |
|       "session_id":-1,
 | |
|       "index_name":"test_indx",
 | |
|       "table_name":"test",
 | |
|       "database_name":"insert_db",
 | |
|       "index_action_type":2
 | |
|     },
 | |
|     "index_type":3,
 | |
|     "index_columns": [
 | |
|        {
 | |
|         "column_name":"c4",
 | |
|         "prefix_len":0,
 | |
|         "order_type":0,
 | |
|         "column_id":-1
 | |
|       },
 | |
|        {
 | |
|         "column_name":"c5",
 | |
|         "prefix_len":0,
 | |
|         "order_type":0,
 | |
|         "column_id":-1
 | |
|       }
 | |
|     ],
 | |
|     "fulltext_columns": [
 | |
|     ],
 | |
|     "store_columns": [
 | |
|     ],
 | |
|     "index_option": {
 | |
|       "block_size":16384,
 | |
|       "replica_num":0,
 | |
|       "index_status":1,
 | |
|       "use_bloom_filter":false,
 | |
|       "compress_method":"none",
 | |
|       "comment":"",
 | |
|       "tablegroup_name":"",
 | |
|       "progressive_merge_num":0,
 | |
|       "primary_zone":"",
 | |
|       "parser_name":"TAOBAO_CHN",
 | |
|       "index_attributes_set":0,
 | |
|       "row_store_type":3,
 | |
|       "store_format":0
 | |
|     },
 | |
|     "index_using_type":0,
 | |
|     "data_table_id":-1,
 | |
|     "index_table_id":-1,
 | |
|     "if_not_exist":false,
 | |
|     "index_schema": {
 | |
|       "simple_table_schema": {
 | |
|         "tenant_id":1,
 | |
|         "database_id":-1,
 | |
|         "tablegroup_id":-1,
 | |
|         "table_id":-1,
 | |
|         "table_name":"",
 | |
|         "replica_num":0,
 | |
|         "previous_locality_str":"",
 | |
|         "min_partition_id":0,
 | |
|         "session_id":0,
 | |
|         "index_type":3,
 | |
|         "table_type":5,
 | |
|         "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":0,
 | |
|         "subpartition_num":0,
 | |
|         "partition_array":null,
 | |
|         "subpartition_array":null,
 | |
|         "index_status":1,
 | |
|         "binding":false,
 | |
|         "duplicate_scope":0
 | |
|       },
 | |
|       "max_used_column_id":20,
 | |
|       "max_used_constraint_id":0,
 | |
|       "sess_active_time":0,
 | |
|       "rowkey_column_num":5,
 | |
|       "index_column_num":2,
 | |
|       "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":"",
 | |
|         "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":50,
 | |
|             "column_id":19,
 | |
|             "type": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"INVALID"
 | |
|             },
 | |
|             "order":0,
 | |
|             "fulltext_flag":false
 | |
|           },
 | |
|            {
 | |
|             "length":0,
 | |
|             "column_id":20,
 | |
|             "type": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "order":0,
 | |
|             "fulltext_flag":false
 | |
|           },
 | |
|            {
 | |
|             "length":0,
 | |
|             "column_id":16,
 | |
|             "type": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "order":0,
 | |
|             "fulltext_flag":false
 | |
|           },
 | |
|            {
 | |
|             "length":0,
 | |
|             "column_id":17,
 | |
|             "type": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "order":0,
 | |
|             "fulltext_flag":false
 | |
|           },
 | |
|            {
 | |
|             "length":50,
 | |
|             "column_id":18,
 | |
|             "type": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"INVALID"
 | |
|             },
 | |
|             "order":0,
 | |
|             "fulltext_flag":false
 | |
|           }
 | |
|         ],
 | |
|         "capacity":5
 | |
|       },
 | |
|       "partition_key_info": {
 | |
|         "columns":null,
 | |
|         "capacity":0
 | |
|       },
 | |
|       "aux_vp_tid_array": [
 | |
|       ]
 | |
|     }
 | |
|   }
 | |
| }
 | |
| ***************   Case 10   ***************
 | |
| create table non_reserved_key_test(value int primary key)
 | |
| {"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":"non_reserved_key_test", "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":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 11   ***************
 | |
| create table test2(c1 int primary key, c2 varchar(30), c3 timestamp(6) default now(6))
 | |
| {"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":"test2", "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":18, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 12   ***************
 | |
| create table t4(c1 int primary key, c2 int not null, c3 int default 1, c4 int not null default 2)
 | |
| {"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":"t4", "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":19, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 13   ***************
 | |
| create table ta(c1 int primary key, c2 int auto_increment) comment='test', auto_increment= 5
 | |
| {"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":"ta", "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":1, "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":"test", "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":17, "auto_increment":5, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 14   ***************
 | |
| create table alter_table1(c1 int primary key, c2 varchar(11) not null default 'c2', c3 tinyint default 3, c4 char(11)) partition by hash(c1) partitions 3
 | |
| {"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":"alter_table1", "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":1, "part_option":{"part_func_type":0, "part_func_expr":"c1", "part_num":3, "partition_cnt_within_partition_table":-1, "max_used_part_id":2}, "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":3, "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}, {"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":1, "name":"p1", "high_bound_val":, "list_row_values":[], "part_idx":1}, "mapping_pg_part_id":-1}, {"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":2, "name":"p2", "high_bound_val":, "list_row_values":[], "part_idx":2}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":19, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":[{"length":0, "column_id":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 15   ***************
 | |
| create index idx_c1 on alter_table1(c1) LOCAL
 | |
| {
 | |
|   "stmt_type":23,
 | |
|   "create_index_arg": {
 | |
|     "index_arg": {
 | |
|       "tenant_id":1,
 | |
|       "session_id":-1,
 | |
|       "index_name":"idx_c1",
 | |
|       "table_name":"alter_table1",
 | |
|       "database_name":"insert_db",
 | |
|       "index_action_type":2
 | |
|     },
 | |
|     "index_type":1,
 | |
|     "index_columns": [
 | |
|        {
 | |
|         "column_name":"c1",
 | |
|         "prefix_len":0,
 | |
|         "order_type":0,
 | |
|         "column_id":-1
 | |
|       }
 | |
|     ],
 | |
|     "fulltext_columns": [
 | |
|     ],
 | |
|     "store_columns": [
 | |
|     ],
 | |
|     "index_option": {
 | |
|       "block_size":16384,
 | |
|       "replica_num":0,
 | |
|       "index_status":1,
 | |
|       "use_bloom_filter":false,
 | |
|       "compress_method":"none",
 | |
|       "comment":"",
 | |
|       "tablegroup_name":"",
 | |
|       "progressive_merge_num":0,
 | |
|       "primary_zone":"",
 | |
|       "parser_name":"TAOBAO_CHN",
 | |
|       "index_attributes_set":0,
 | |
|       "row_store_type":3,
 | |
|       "store_format":0
 | |
|     },
 | |
|     "index_using_type":0,
 | |
|     "data_table_id":-1,
 | |
|     "index_table_id":-1,
 | |
|     "if_not_exist":false,
 | |
|     "index_schema": {
 | |
|       "simple_table_schema": {
 | |
|         "tenant_id":1,
 | |
|         "database_id":-1,
 | |
|         "tablegroup_id":-1,
 | |
|         "table_id":-1,
 | |
|         "table_name":"",
 | |
|         "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":-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":0,
 | |
|         "subpartition_num":0,
 | |
|         "partition_array":null,
 | |
|         "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":"",
 | |
|         "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": [
 | |
|       ]
 | |
|     }
 | |
|   }
 | |
| }
 | |
| ***************   Case 16   ***************
 | |
| create table t_auto_inc(c1 int primary key, c2 int auto_increment)
 | |
| {"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":"t_auto_inc", "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":1, "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":17, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 17   ***************
 | |
| create table coll_table(c1 varchar(10) collate utf8_general_ci, c2 varchar(10) collate utf8_bin, c3 varchar(10), primary key(c1, 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":"coll_table", "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":18, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":2, "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":10, "column_id":16, "type":{"type":"VARCHAR", "collation":"utf8mb4_general_ci", "coercibility":"INVALID"}, "order":0, "fulltext_flag":false}, {"length":10, "column_id":17, "type":{"type":"VARCHAR", "collation":"utf8mb4_bin", "coercibility":"INVALID"}, "order":0, "fulltext_flag":false}], "capacity":2}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 18   ***************
 | |
| create table ts(c1 int primary key, c2 timestamp default current_timestamp on update current_timestamp, 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":"ts", "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":18, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 19   ***************
 | |
| create table tt1(c1 int primary key auto_increment, 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":"tt1", "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":1, "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":16, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 20   ***************
 | |
| create table tm(c1 int primary key, c2 char(100) default 'fffyyy', 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":"tm", "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":18, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":1, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 21   ***************
 | |
| create table ttt(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":"ttt", "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":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 22   ***************
 | |
| create table bt(c1 binary(4), c2 binary(5), c3 binary(6));
 | |
| {"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":"bt", "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":18, "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":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | |
| ***************   Case 23   ***************
 | |
| insert into t1 values(1, 2)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 24   ***************
 | |
| insert into t1 value(1, 2)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 25   ***************
 | |
| REPLACE IGNORE INTO t1 VALUE (1, 1);
 | |
| ***************   Case 26   ***************
 | |
| insert into t2 values(1, 1, 'test')
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677878,
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 27   ***************
 | |
| insert into test2(c1,c2) values(1,'test')
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677884,
 | |
|       "table_name":"test2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677884,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677884,
 | |
|           "index_tid":1099511677884,
 | |
|           "index_name":"test2",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677884,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test2",
 | |
|               "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":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":30,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677884,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test2",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"TIMESTAMP",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":25,
 | |
|                   "scale":6
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677884,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677884,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":30,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967266
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":30,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677884,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"TIMESTAMP",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":25,
 | |
|           "scale":6
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":2
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"TIMESTAMP",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":25,
 | |
|               "scale":6
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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_CUR_TIME",
 | |
|             "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":18
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1688961529413631
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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_FUN_SYS_CUR_TIMESTAMP",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DATETIME",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":25,
 | |
|                   "scale":6
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "IS_FUNC",
 | |
|                 "IS_CUR_TIME",
 | |
|                 "IS_CALCULABLE_EXPR",
 | |
|                 "IS_CONST_EXPR",
 | |
|                 "CNT_CONST",
 | |
|                 "CNT_FUNC",
 | |
|                 "CNT_CUR_TIME",
 | |
|                 "CNT_CALCULABLE_EXPR"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "expr_levels": [
 | |
|               ],
 | |
|               "func":"current_timestamp",
 | |
|               "children": [
 | |
|               ],
 | |
|               "enum_set_values": [
 | |
|               ]
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":2
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":1
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 28   ***************
 | |
| insert into t1(c1,c2) values(1, 2)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 29   ***************
 | |
| insert into t2(c1, c2, c3) values(1, 1, 'test')
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677878,
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 30   ***************
 | |
| insert into t2 partition(p0) (c2,c3) values (1,'test')
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "is_explicited_referece":false,
 | |
|           "explicited_ref_count":0,
 | |
|           "enum_set_values": [
 | |
|           ],
 | |
|           "is_lob_column":false
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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": [
 | |
|        {
 | |
|         "table_id":1099511677878,
 | |
|         "part_ids": [
 | |
|           0
 | |
|         ]
 | |
|       }
 | |
|     ],
 | |
|     "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":2
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":1
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 31   ***************
 | |
| insert into t1(c1) values(1), (2)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "is_explicited_referece":false,
 | |
|           "explicited_ref_count":0,
 | |
|           "enum_set_values": [
 | |
|           ],
 | |
|           "is_lob_column":false
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":2
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 32   ***************
 | |
| insert into t2(c1, c2, c3) values(1, 1, 'test'), (2, 2, 'hello'), (3, 3, 'world')
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677878,
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "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":9,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":5
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":6
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":7
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":8
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 33   ***************
 | |
| insert into t2 select * from t1
 | |
| ***************   Case 34   ***************
 | |
| insert into t2(c1) select c1, c2 from t1
 | |
| ***************   Case 35   ***************
 | |
| insert into t2 (c2, c3) select c1, c2 from t1
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "enum_set_values": [
 | |
|           ],
 | |
|           "is_lob_column":false
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_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":"insert_db",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":0
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":1,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":0
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677877,
 | |
|         "table_name":"t1",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677877,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|        {
 | |
|         "table_id":1099511677877,
 | |
|         "index_tid":1099511677877,
 | |
|         "part_expr": {
 | |
|           "item_type":"T_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT",
 | |
|               "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "BIGINT":1
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "subpart_expr":null
 | |
|       }
 | |
|     ],
 | |
|     "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"insert_db",
 | |
|           "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "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":"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":0,
 | |
|       "use join filter":false,
 | |
|       "org_pq_distributes": [
 | |
|       ],
 | |
|       "pq_distributes": [
 | |
|       ]
 | |
|     },
 | |
|     "query_context": {
 | |
|       "param_num":1,
 | |
|       "fetch_cur_time":true,
 | |
|       "calculable_items": [
 | |
|          {
 | |
|           "expression": {
 | |
|             "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_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":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_NULL",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"INVALID"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":11,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"invalid_type",
 | |
|                     "coercibility":"INVALID"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "IS_CONST",
 | |
|                   "CNT_CONST"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                 ],
 | |
|                 "value": {
 | |
|                   "NULL":"NULL"
 | |
|                 }
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "idx":0
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|     "extra_output_exprs": [
 | |
|     ],
 | |
|     "current_level":0,
 | |
|     "equal_sets": [
 | |
|     ],
 | |
|     "pseudo_column_exprs": [
 | |
|     ],
 | |
|     "child_stmts": [
 | |
|     ],
 | |
|     "has_transformed_for_hierarchical_query":false,
 | |
|     "is_hierarchical_query":false
 | |
|   }
 | |
| }
 | |
| ***************   Case 36   ***************
 | |
| insert into t2 (c2,c3) select * from t1
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "enum_set_values": [
 | |
|           ],
 | |
|           "is_lob_column":false
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_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":"insert_db",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":0
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":1,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":0
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677877,
 | |
|         "table_name":"t1",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677877,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|        {
 | |
|         "table_id":1099511677877,
 | |
|         "index_tid":1099511677877,
 | |
|         "part_expr": {
 | |
|           "item_type":"T_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT",
 | |
|               "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "BIGINT":1
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "subpart_expr":null
 | |
|       }
 | |
|     ],
 | |
|     "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"insert_db",
 | |
|           "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "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":"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":0,
 | |
|       "use join filter":false,
 | |
|       "org_pq_distributes": [
 | |
|       ],
 | |
|       "pq_distributes": [
 | |
|       ]
 | |
|     },
 | |
|     "query_context": {
 | |
|       "param_num":1,
 | |
|       "fetch_cur_time":true,
 | |
|       "calculable_items": [
 | |
|          {
 | |
|           "expression": {
 | |
|             "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_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":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_NULL",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"INVALID"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":11,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"invalid_type",
 | |
|                     "coercibility":"INVALID"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "IS_CONST",
 | |
|                   "CNT_CONST"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                 ],
 | |
|                 "value": {
 | |
|                   "NULL":"NULL"
 | |
|                 }
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "idx":0
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|     "extra_output_exprs": [
 | |
|     ],
 | |
|     "current_level":0,
 | |
|     "equal_sets": [
 | |
|     ],
 | |
|     "pseudo_column_exprs": [
 | |
|     ],
 | |
|     "child_stmts": [
 | |
|     ],
 | |
|     "has_transformed_for_hierarchical_query":false,
 | |
|     "is_hierarchical_query":false
 | |
|   }
 | |
| }
 | |
| ***************   Case 37   ***************
 | |
| insert into ttt select c1, c2 from t1;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677894,
 | |
|       "table_name":"ttt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677894,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ttt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677894,
 | |
|           "index_tid":1099511677894,
 | |
|           "index_name":"ttt",
 | |
|           "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":1099511677894,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":0
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677894
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "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": [
 | |
|         1
 | |
|       ],
 | |
|       "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "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": [
 | |
|         1
 | |
|       ],
 | |
|       "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":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":"insert_db",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "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":1,
 | |
|     "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":0
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677877,
 | |
|         "table_name":"t1",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677877,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|        {
 | |
|         "table_id":1099511677877,
 | |
|         "index_tid":1099511677877,
 | |
|         "part_expr": {
 | |
|           "item_type":"T_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT",
 | |
|               "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "BIGINT":1
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "subpart_expr":null
 | |
|       }
 | |
|     ],
 | |
|     "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"insert_db",
 | |
|           "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":16387,
 | |
|             "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":"insert_db",
 | |
|           "table_name":"t1",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "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":"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":0,
 | |
|       "use join filter":false,
 | |
|       "org_pq_distributes": [
 | |
|       ],
 | |
|       "pq_distributes": [
 | |
|       ]
 | |
|     },
 | |
|     "query_context": {
 | |
|       "param_num":1,
 | |
|       "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":0
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|     "extra_output_exprs": [
 | |
|     ],
 | |
|     "current_level":0,
 | |
|     "equal_sets": [
 | |
|     ],
 | |
|     "pseudo_column_exprs": [
 | |
|     ],
 | |
|     "child_stmts": [
 | |
|     ],
 | |
|     "has_transformed_for_hierarchical_query":false,
 | |
|     "is_hierarchical_query":false
 | |
|   }
 | |
| }
 | |
| ***************   Case 38   ***************
 | |
| insert into ttt select * from ttt;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677894,
 | |
|       "table_name":"ttt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677894,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ttt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677894,
 | |
|           "index_tid":1099511677894,
 | |
|           "index_name":"ttt",
 | |
|           "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":1099511677894,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":1099511677894,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ttt",
 | |
|               "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":0
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677894
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "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": [
 | |
|         1
 | |
|       ],
 | |
|       "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":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":-2,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"ttt",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "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": [
 | |
|         1
 | |
|       ],
 | |
|       "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":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":-2,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"ttt",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "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":1,
 | |
|     "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":0
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":-2,
 | |
|         "table_name":"ttt",
 | |
|         "alias_name":"ttt",
 | |
|         "synonym_name":"",
 | |
|         "table_type":1,
 | |
|         "ref_id":1099511677894,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|     ],
 | |
|     "column": [
 | |
|        {
 | |
|         "column_id":16,
 | |
|         "table_id":-2,
 | |
|         "column":"c1",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677894,
 | |
|         "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":-2,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"ttt",
 | |
|           "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":-2,
 | |
|         "column":"c2",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677894,
 | |
|         "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":-2,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"ttt",
 | |
|           "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":-2,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"ttt",
 | |
|           "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":-2,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"ttt",
 | |
|           "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":-2,
 | |
|         "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":0,
 | |
|       "use join filter":false,
 | |
|       "org_pq_distributes": [
 | |
|       ],
 | |
|       "pq_distributes": [
 | |
|       ]
 | |
|     },
 | |
|     "query_context": {
 | |
|       "param_num":1,
 | |
|       "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":0
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|     "extra_output_exprs": [
 | |
|     ],
 | |
|     "current_level":0,
 | |
|     "equal_sets": [
 | |
|     ],
 | |
|     "pseudo_column_exprs": [
 | |
|     ],
 | |
|     "child_stmts": [
 | |
|     ],
 | |
|     "has_transformed_for_hierarchical_query":false,
 | |
|     "is_hierarchical_query":false
 | |
|   }
 | |
| }
 | |
| ***************   Case 39   ***************
 | |
| insert into t2 values (1+1, 'new'||'name', 45)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677878,
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "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":5,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_OP_ADD",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":2,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "CNT_CALCULABLE_EXPR"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "children": [
 | |
|          {
 | |
|           "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_OP_OR",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":1,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_OR",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "CNT_OR",
 | |
|         "CNT_CALCULABLE_EXPR"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_QUESTIONMARK",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"COERCIBLE"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":3,
 | |
|               "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"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "UNKNOWN":2
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_QUESTIONMARK",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"COERCIBLE"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":4,
 | |
|               "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"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "UNKNOWN":3
 | |
|           }
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":2,
 | |
|           "precision":2,
 | |
|           "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 40   ***************
 | |
| insert into t1 values (1,1)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 41   ***************
 | |
| replace into t1 values (1,2)
 | |
| {
 | |
|   "stmt_type":3,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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": [
 | |
|     16
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 42   ***************
 | |
| replace into t2 (c1,c2,c3) values (1,2,'test')
 | |
| {
 | |
|   "stmt_type":3,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|     17,
 | |
|     18
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677878,
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 43   ***************
 | |
| insert into t1 values (1,2) on duplicate key update c2 = c2+1
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|     16
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677877,
 | |
|         "table_name":"t1",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677877,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "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_STATIC_PARAM",
 | |
|               "CNT_FUNC"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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_OP_ADD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":12,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_STATIC_PARAM"
 | |
|                 ],
 | |
|                 "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":1099511677877,
 | |
|                     "column_id":17,
 | |
|                     "database_name":"insert_db",
 | |
|                     "table_name":"t1",
 | |
|                     "synonym_name":"",
 | |
|                     "column_name":"c2",
 | |
|                     "expr_level":0,
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "column_flags":0,
 | |
|                     "is_explicited_referece":true,
 | |
|                     "explicited_ref_count":3,
 | |
|                     "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":2
 | |
|                     }
 | |
|                   }
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677877,
 | |
|           "base_column_id":17
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 44   ***************
 | |
| insert into t2 values (3,4,'test') on duplicate key update t2.c2 = t2.c2 + 1
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "table_name":"t2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677878,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677878,
 | |
|       "index_tid":1099511677878,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_FUN_SYS_PART_KEY_V2",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":-1,
 | |
|             "scale":-1
 | |
|           },
 | |
|           "flag":0,
 | |
|           "calc_type": {
 | |
|             "type":"NULL",
 | |
|             "collation":"invalid_type",
 | |
|             "coercibility":"INVALID"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "IS_FUNC",
 | |
|           "CNT_COLUMN",
 | |
|           "CNT_FUNC"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "func":"partition_key_v2",
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"VARCHAR",
 | |
|                 "collation":"utf8mb4_general_ci",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":32,
 | |
|                 "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":1099511677878,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":1,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           }
 | |
|         ],
 | |
|         "enum_set_values": [
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677878,
 | |
|           "index_tid":1099511677878,
 | |
|           "index_name":"t2",
 | |
|           "rowkey_cnt":2,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":32,
 | |
|                   "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":1099511677878,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "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":1099511677878,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t2",
 | |
|               "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
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|     17,
 | |
|     18
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c2",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":32,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967264
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":32,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677878,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677878,
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "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":4,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677878,
 | |
|         "table_name":"t2",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677878,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t2",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_STATIC_PARAM",
 | |
|               "CNT_FUNC"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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":0
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "item_type":"T_OP_ADD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":12,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":1,
 | |
|                   "calc_type": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_STATIC_PARAM"
 | |
|                 ],
 | |
|                 "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":16387,
 | |
|                       "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":"insert_db",
 | |
|                     "table_name":"t2",
 | |
|                     "synonym_name":"",
 | |
|                     "column_name":"c2",
 | |
|                     "expr_level":0,
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "column_flags":17179869184,
 | |
|                     "is_explicited_referece":true,
 | |
|                     "explicited_ref_count":3,
 | |
|                     "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":3
 | |
|                     }
 | |
|                   }
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677878,
 | |
|           "base_column_id":17
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":true,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 45   ***************
 | |
| insert into test (c1,c2,c3,c4) values (1,2,'test','test') on duplicate key update c5 = c2+c1
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677881,
 | |
|       "table_name":"test",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677881,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677881,
 | |
|           "index_name":"test",
 | |
|           "rowkey_cnt":3,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":21,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c6",
 | |
|               "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":1099511677881,
 | |
|               "column_id":22,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c7",
 | |
|               "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": [
 | |
|           ]
 | |
|         },
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677882,
 | |
|           "index_name":"test_indx",
 | |
|           "rowkey_cnt":5,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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": [
 | |
|     16,
 | |
|     17,
 | |
|     18
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":19,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":4
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"DOUBLE",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":5
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":6
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":"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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":4
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"DOUBLE",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":12
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":5
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":3
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677881,
 | |
|         "table_name":"test",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677881,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "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":1099511677881,
 | |
|             "column_id":20,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"test",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c5",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "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": [
 | |
|               1
 | |
|             ],
 | |
|             "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_OP_ADD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":12,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":1,
 | |
|                   "calc_type": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "CNT_COLUMN"
 | |
|                 ],
 | |
|                 "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":16387,
 | |
|                       "calc_type": {
 | |
|                         "type":"NULL",
 | |
|                         "collation":"invalid_type",
 | |
|                         "coercibility":"INVALID"
 | |
|                       }
 | |
|                     },
 | |
|                     "expr_info": [
 | |
|                       "IS_COLUMN",
 | |
|                       "CNT_COLUMN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                       1
 | |
|                     ],
 | |
|                     "table_id":1099511677881,
 | |
|                     "column_id":17,
 | |
|                     "database_name":"insert_db",
 | |
|                     "table_name":"test",
 | |
|                     "synonym_name":"",
 | |
|                     "column_name":"c2",
 | |
|                     "expr_level":0,
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "column_flags":0,
 | |
|                     "is_explicited_referece":true,
 | |
|                     "explicited_ref_count":2,
 | |
|                     "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":16387,
 | |
|                       "calc_type": {
 | |
|                         "type":"NULL",
 | |
|                         "collation":"invalid_type",
 | |
|                         "coercibility":"INVALID"
 | |
|                       }
 | |
|                     },
 | |
|                     "expr_info": [
 | |
|                       "IS_COLUMN",
 | |
|                       "CNT_COLUMN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                       1
 | |
|                     ],
 | |
|                     "table_id":1099511677881,
 | |
|                     "column_id":16,
 | |
|                     "database_name":"insert_db",
 | |
|                     "table_name":"test",
 | |
|                     "synonym_name":"",
 | |
|                     "column_name":"c1",
 | |
|                     "expr_level":0,
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "column_flags":0,
 | |
|                     "is_explicited_referece":true,
 | |
|                     "explicited_ref_count":2,
 | |
|                     "enum_set_values": [
 | |
|                     ],
 | |
|                     "is_lob_column":false
 | |
|                   }
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677881,
 | |
|           "base_column_id":20
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 46   ***************
 | |
| insert into test (c1,c2,c3,c4) values (1,2,'test','test') on duplicate key update c5 = c2
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677881,
 | |
|       "table_name":"test",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677881,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677881,
 | |
|           "index_name":"test",
 | |
|           "rowkey_cnt":3,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":21,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c6",
 | |
|               "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":1099511677881,
 | |
|               "column_id":22,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c7",
 | |
|               "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": [
 | |
|           ]
 | |
|         },
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677882,
 | |
|           "index_name":"test_indx",
 | |
|           "rowkey_cnt":5,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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": [
 | |
|     16,
 | |
|     17,
 | |
|     18
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":19,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":4
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"DOUBLE",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":5
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":6
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":"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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":4
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"DOUBLE",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":12
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":5
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":3
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677881,
 | |
|         "table_name":"test",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677881,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "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":1099511677881,
 | |
|             "column_id":20,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"test",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c5",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "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": [
 | |
|               1
 | |
|             ],
 | |
|             "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":16387,
 | |
|                   "calc_type": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"invalid_type",
 | |
|                     "coercibility":"INVALID"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "IS_COLUMN",
 | |
|                   "CNT_COLUMN"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                   1
 | |
|                 ],
 | |
|                 "table_id":1099511677881,
 | |
|                 "column_id":17,
 | |
|                 "database_name":"insert_db",
 | |
|                 "table_name":"test",
 | |
|                 "synonym_name":"",
 | |
|                 "column_name":"c2",
 | |
|                 "expr_level":0,
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "column_flags":0,
 | |
|                 "is_explicited_referece":true,
 | |
|                 "explicited_ref_count":2,
 | |
|                 "enum_set_values": [
 | |
|                 ],
 | |
|                 "is_lob_column":false
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677881,
 | |
|           "base_column_id":20
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 47   ***************
 | |
| insert into test (c1,c2,c3,c4) values (1,2,'test','test') on duplicate key update c1 = c2
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677881,
 | |
|       "table_name":"test",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677881,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677881,
 | |
|           "index_name":"test",
 | |
|           "rowkey_cnt":3,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "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":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":21,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c6",
 | |
|               "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":1099511677881,
 | |
|               "column_id":22,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c7",
 | |
|               "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": [
 | |
|           ]
 | |
|         },
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677882,
 | |
|           "index_name":"test_indx",
 | |
|           "rowkey_cnt":5,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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": [
 | |
|     16,
 | |
|     17,
 | |
|     18
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":19,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":4
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"DOUBLE",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":5
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":6
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":"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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":4
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"DOUBLE",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":12
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":5
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":3
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677881,
 | |
|         "table_name":"test",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677881,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_COLUMN",
 | |
|               "CNT_COLUMN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "table_id":1099511677881,
 | |
|             "column_id":16,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"test",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_FUNC"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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":0
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "item_type":"T_REF_COLUMN",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"INT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":11,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":16387,
 | |
|                   "calc_type": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"invalid_type",
 | |
|                     "coercibility":"INVALID"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "IS_COLUMN",
 | |
|                   "CNT_COLUMN"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                   1
 | |
|                 ],
 | |
|                 "table_id":1099511677881,
 | |
|                 "column_id":17,
 | |
|                 "database_name":"insert_db",
 | |
|                 "table_name":"test",
 | |
|                 "synonym_name":"",
 | |
|                 "column_name":"c2",
 | |
|                 "expr_level":0,
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "column_flags":0,
 | |
|                 "is_explicited_referece":true,
 | |
|                 "explicited_ref_count":2,
 | |
|                 "enum_set_values": [
 | |
|                 ],
 | |
|                 "is_lob_column":false
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677881,
 | |
|           "base_column_id":16
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 48   ***************
 | |
| insert into t4(c1, c2) values(1,1), (2,2)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677885,
 | |
|       "table_name":"t4",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677885,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t4",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677885,
 | |
|           "index_tid":1099511677885,
 | |
|           "index_name":"t4",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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_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":1099511677885,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":4
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "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",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":5
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":6,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":1
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":4
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "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":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":0
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":2
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":5
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 49   ***************
 | |
| insert into t4(c1, c2, c3) values(1,1,1), (2,2,2), (3,3,3)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677885,
 | |
|       "table_name":"t4",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677885,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t4",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677885,
 | |
|           "index_tid":1099511677885,
 | |
|           "index_name":"t4",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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_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":1099511677885,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677885,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "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",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":9
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":10,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "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":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":0
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":2
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":9
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":6
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":7
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":8
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 50   ***************
 | |
| insert into t4 values(1,2,3,4)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677885,
 | |
|       "table_name":"t4",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677885,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t4",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677885,
 | |
|           "index_tid":1099511677885,
 | |
|           "index_name":"t4",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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_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":1099511677885,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677885,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "column_id":19,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":4,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 51   ***************
 | |
| insert into ta(c1,c2) values (1,0),(2,0)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":4,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 52   ***************
 | |
| insert into ta(c1,c2) values (3,NULL), (4, NULL)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":4,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IGNORABLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":0,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IGNORABLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":0,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 53   ***************
 | |
| insert into ta(c1) values (5),(6)
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":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":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":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":17
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 54   ***************
 | |
| insert into ta set c1 = 1, c2 = c1 + 1;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":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":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "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":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":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_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR",
 | |
|             "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_OP_ADD",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"BIGINT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":12,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"BIGINT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CALCULABLE_EXPR",
 | |
|                 "IS_CONST_EXPR",
 | |
|                 "CNT_CONST",
 | |
|                 "CNT_STATIC_PARAM",
 | |
|                 "CNT_FUNC",
 | |
|                 "CNT_CALCULABLE_EXPR"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "expr_levels": [
 | |
|               ],
 | |
|               "children": [
 | |
|                  {
 | |
|                   "item_type":"T_FUN_COLUMN_CONV",
 | |
|                   "result_type": {
 | |
|                     "meta": {
 | |
|                       "type":"INT",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"IMPLICIT"
 | |
|                     },
 | |
|                     "accuracy": {
 | |
|                       "length":-1,
 | |
|                       "precision":11,
 | |
|                       "scale":0
 | |
|                     },
 | |
|                     "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_STATIC_PARAM",
 | |
|                     "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":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":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":0
 | |
|                       }
 | |
|                     }
 | |
|                   ],
 | |
|                   "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":1
 | |
|                   }
 | |
|                 }
 | |
|               ]
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 55   ***************
 | |
| insert into ta set c2 = c1, c1 = c2 + 1;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":1,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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":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":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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":0
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_FUN_COLUMN_CONV",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "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":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":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":17
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "item_type":"T_INT32",
 | |
|                       "result_type": {
 | |
|                         "meta": {
 | |
|                           "type":"INT",
 | |
|                           "collation":"binary",
 | |
|                           "coercibility":"NUMERIC"
 | |
|                         },
 | |
|                         "accuracy": {
 | |
|                           "length":-1,
 | |
|                           "precision":11,
 | |
|                           "scale":0
 | |
|                         },
 | |
|                         "flag":1,
 | |
|                         "calc_type": {
 | |
|                           "type":"NULL",
 | |
|                           "collation":"invalid_type",
 | |
|                           "coercibility":"INVALID"
 | |
|                         }
 | |
|                       },
 | |
|                       "expr_info": [
 | |
|                         "IS_CONST",
 | |
|                         "CNT_CONST"
 | |
|                       ],
 | |
|                       "rel_id": [
 | |
|                       ],
 | |
|                       "value": {
 | |
|                         "INT":0
 | |
|                       }
 | |
|                     }
 | |
|                   ],
 | |
|                   "enum_set_values": [
 | |
|                   ]
 | |
|                 }
 | |
|               ],
 | |
|               "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
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 56   ***************
 | |
| insert into ta values(1, c1 + 1);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":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":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_OP_ADD",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":12,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_STATIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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
 | |
|         },
 | |
|          {
 | |
|           "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
 | |
|           }
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 57   ***************
 | |
| insert into ta(c2,c1) values(NULL, c2+1);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":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":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_STATIC_PARAM",
 | |
|             "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_QUESTIONMARK",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IGNORABLE"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":0,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "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
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_OP_ADD",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":12,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_STATIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":641,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677886,
 | |
|           "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
 | |
|         },
 | |
|          {
 | |
|           "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
 | |
|           }
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 58   ***************
 | |
| insert into ta select * from t3;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":0,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1099511677879,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":0,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677879,
 | |
|         "table_name":"t3",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677879,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|     ],
 | |
|     "column": [
 | |
|        {
 | |
|         "column_id":16,
 | |
|         "table_id":1099511677879,
 | |
|         "column":"c3",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677879,
 | |
|         "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1099511677879,
 | |
|         "column":"c4",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677879,
 | |
|         "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":1099511677879,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"c3",
 | |
|         "expr_name":"c3",
 | |
|         "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":1099511677879,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":"c4",
 | |
|         "expr_name":"c4",
 | |
|         "default": {
 | |
|           "NULL":"NULL"
 | |
|         }
 | |
|       }
 | |
|     ],
 | |
|     "distinct":false,
 | |
|     "rollup":false,
 | |
|     "nocycle":false,
 | |
|     "from": [
 | |
|        {
 | |
|         "table_id":1099511677879,
 | |
|         "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":0,
 | |
|       "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
 | |
|   }
 | |
| }
 | |
| ***************   Case 59   ***************
 | |
| insert into ta select * from t3 on duplicate key update c1 = c1 + 2, c2 = values(c2);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677886,
 | |
|       "table_name":"ta",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677886,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"ta",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677886,
 | |
|           "index_tid":1099511677886,
 | |
|           "index_name":"ta",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677886,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"ta",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|     16
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":0,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1099511677879,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":1,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":1,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677879,
 | |
|         "table_name":"t3",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677879,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|     ],
 | |
|     "column": [
 | |
|        {
 | |
|         "column_id":16,
 | |
|         "table_id":1099511677879,
 | |
|         "column":"c3",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677879,
 | |
|         "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1099511677879,
 | |
|         "column":"c4",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677879,
 | |
|         "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":1099511677879,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"c3",
 | |
|         "expr_name":"c3",
 | |
|         "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":1099511677879,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"t3",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":"c4",
 | |
|         "expr_name":"c4",
 | |
|         "default": {
 | |
|           "NULL":"NULL"
 | |
|         }
 | |
|       }
 | |
|     ],
 | |
|     "distinct":false,
 | |
|     "rollup":false,
 | |
|     "nocycle":false,
 | |
|     "from": [
 | |
|        {
 | |
|         "table_id":1099511677879,
 | |
|         "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":0,
 | |
|       "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
 | |
|   },
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677886,
 | |
|         "table_name":"ta",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677886,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_COLUMN",
 | |
|               "CNT_COLUMN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "table_id":1099511677886,
 | |
|             "column_id":16,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"ta",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_STATIC_PARAM",
 | |
|               "CNT_FUNC"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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":0
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "item_type":"T_OP_ADD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":12,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":1,
 | |
|                   "calc_type": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_STATIC_PARAM"
 | |
|                 ],
 | |
|                 "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":16387,
 | |
|                       "calc_type": {
 | |
|                         "type":"NULL",
 | |
|                         "collation":"invalid_type",
 | |
|                         "coercibility":"INVALID"
 | |
|                       }
 | |
|                     },
 | |
|                     "expr_info": [
 | |
|                       "IS_COLUMN",
 | |
|                       "CNT_COLUMN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                       1
 | |
|                     ],
 | |
|                     "table_id":1099511677886,
 | |
|                     "column_id":16,
 | |
|                     "database_name":"insert_db",
 | |
|                     "table_name":"ta",
 | |
|                     "synonym_name":"",
 | |
|                     "column_name":"c1",
 | |
|                     "expr_level":0,
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "column_flags":0,
 | |
|                     "is_explicited_referece":true,
 | |
|                     "explicited_ref_count":3,
 | |
|                     "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
 | |
|                     }
 | |
|                   }
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677886,
 | |
|           "base_column_id":16
 | |
|         },
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":513,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_COLUMN",
 | |
|               "CNT_COLUMN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "table_id":1099511677886,
 | |
|             "column_id":17,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"ta",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_FUNC",
 | |
|               "UNKNOWN",
 | |
|               "CNT_STATE_FUNC"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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":0
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "item_type":"T_FUN_SYS_VALUES",
 | |
|                 "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",
 | |
|                   "IS_VALUES",
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_FUNC",
 | |
|                   "UNKNOWN",
 | |
|                   "CNT_STATE_FUNC"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                   1
 | |
|                 ],
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "func":"values",
 | |
|                 "children": [
 | |
|                    {
 | |
|                     "item_type":"T_FUN_COLUMN_CONV",
 | |
|                     "result_type": {
 | |
|                       "meta": {
 | |
|                         "type":"INT",
 | |
|                         "collation":"binary",
 | |
|                         "coercibility":"IMPLICIT"
 | |
|                       },
 | |
|                       "accuracy": {
 | |
|                         "length":-1,
 | |
|                         "precision":11,
 | |
|                         "scale":0
 | |
|                       },
 | |
|                       "flag":1,
 | |
|                       "calc_type": {
 | |
|                         "type":"NULL",
 | |
|                         "collation":"invalid_type",
 | |
|                         "coercibility":"INVALID"
 | |
|                       }
 | |
|                     },
 | |
|                     "expr_info": [
 | |
|                       "IS_FUNC",
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_FUNC",
 | |
|                       "CNT_STATE_FUNC"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                       1
 | |
|                     ],
 | |
|                     "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":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",
 | |
|                           "CNT_CONST",
 | |
|                           "CNT_COLUMN",
 | |
|                           "CNT_FUNC",
 | |
|                           "CNT_STATE_FUNC"
 | |
|                         ],
 | |
|                         "rel_id": [
 | |
|                           1
 | |
|                         ],
 | |
|                         "expr_levels": [
 | |
|                           0
 | |
|                         ],
 | |
|                         "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":17
 | |
|                             }
 | |
|                           },
 | |
|                            {
 | |
|                             "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":1099511677879,
 | |
|                             "column_id":17,
 | |
|                             "database_name":"insert_db",
 | |
|                             "table_name":"t3",
 | |
|                             "synonym_name":"",
 | |
|                             "column_name":"c4",
 | |
|                             "expr_level":0,
 | |
|                             "expr_levels": [
 | |
|                               0
 | |
|                             ],
 | |
|                             "column_flags":0,
 | |
|                             "is_explicited_referece":true,
 | |
|                             "explicited_ref_count":1,
 | |
|                             "enum_set_values": [
 | |
|                             ],
 | |
|                             "is_lob_column":false
 | |
|                           }
 | |
|                         ],
 | |
|                         "enum_set_values": [
 | |
|                         ]
 | |
|                       }
 | |
|                     ],
 | |
|                     "enum_set_values": [
 | |
|                     ]
 | |
|                   }
 | |
|                 ],
 | |
|                 "enum_set_values": [
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677886,
 | |
|           "base_column_id":17
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 60   ***************
 | |
| insert into bt(c1, c2) values(1,2);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677895,
 | |
|       "table_name":"bt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677895,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"bt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677895,
 | |
|           "index_tid":1099511677895,
 | |
|           "index_name":"bt",
 | |
|           "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":1099511677895,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677895
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":3
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":4,
 | |
|     "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":2
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"CHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":6,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":23
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":-4294967290
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":3
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 61   ***************
 | |
| insert into bt (c1,c2)values(2, c1 + 1);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677895,
 | |
|       "table_name":"bt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677895,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"bt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677895,
 | |
|           "index_tid":1099511677895,
 | |
|           "index_name":"bt",
 | |
|           "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":1099511677895,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677895
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":3
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":4,
 | |
|     "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":2
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"CHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":6,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":23
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":-4294967290
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":3
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "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_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_OP_ADD",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"DOUBLE",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"DOUBLE",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_STATIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"CHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":4,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":128,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677895,
 | |
|           "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
 | |
|         },
 | |
|          {
 | |
|           "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
 | |
|           }
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 62   ***************
 | |
| insert into bt set c1 = 2, c2 = c1 + 1;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677895,
 | |
|       "table_name":"bt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677895,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"bt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677895,
 | |
|           "index_tid":1099511677895,
 | |
|           "index_name":"bt",
 | |
|           "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":1099511677895,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677895
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":3
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":4,
 | |
|     "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":2
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"CHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":6,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":23
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":-4294967290
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":3
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "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_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_OP_ADD",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CALCULABLE_EXPR",
 | |
|                 "IS_CONST_EXPR",
 | |
|                 "CNT_CONST",
 | |
|                 "CNT_STATIC_PARAM",
 | |
|                 "CNT_FUNC",
 | |
|                 "CNT_CALCULABLE_EXPR"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "expr_levels": [
 | |
|               ],
 | |
|               "children": [
 | |
|                  {
 | |
|                   "item_type":"T_FUN_COLUMN_CONV",
 | |
|                   "result_type": {
 | |
|                     "meta": {
 | |
|                       "type":"CHAR",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"IMPLICIT"
 | |
|                     },
 | |
|                     "accuracy": {
 | |
|                       "length":4,
 | |
|                       "precision":-1,
 | |
|                       "scale":-1
 | |
|                     },
 | |
|                     "flag":0,
 | |
|                     "calc_type": {
 | |
|                       "type":"NULL",
 | |
|                       "collation":"invalid_type",
 | |
|                       "coercibility":"INVALID"
 | |
|                     }
 | |
|                   },
 | |
|                   "expr_info": [
 | |
|                     "IS_CONST",
 | |
|                     "IS_FUNC",
 | |
|                     "IS_CALCULABLE_EXPR",
 | |
|                     "IS_CONST_EXPR",
 | |
|                     "CNT_CONST",
 | |
|                     "CNT_STATIC_PARAM",
 | |
|                     "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":23
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "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":-4294967292
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "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_FUN_PAD",
 | |
|                       "result_type": {
 | |
|                         "meta": {
 | |
|                           "type":"VARCHAR",
 | |
|                           "collation":"binary",
 | |
|                           "coercibility":"IMPLICIT"
 | |
|                         },
 | |
|                         "accuracy": {
 | |
|                           "length":1048576,
 | |
|                           "precision":-1,
 | |
|                           "scale":-1
 | |
|                         },
 | |
|                         "flag":0,
 | |
|                         "calc_type": {
 | |
|                           "type":"NULL",
 | |
|                           "collation":"invalid_type",
 | |
|                           "coercibility":"INVALID"
 | |
|                         }
 | |
|                       },
 | |
|                       "expr_info": [
 | |
|                         "IS_CONST",
 | |
|                         "IS_FUNC",
 | |
|                         "IS_CALCULABLE_EXPR",
 | |
|                         "IS_CONST_EXPR",
 | |
|                         "CNT_CONST",
 | |
|                         "CNT_STATIC_PARAM",
 | |
|                         "CNT_FUNC",
 | |
|                         "CNT_CALCULABLE_EXPR"
 | |
|                       ],
 | |
|                       "rel_id": [
 | |
|                       ],
 | |
|                       "expr_levels": [
 | |
|                       ],
 | |
|                       "func":"pad",
 | |
|                       "children": [
 | |
|                          {
 | |
|                           "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_VARCHAR",
 | |
|                           "result_type": {
 | |
|                             "meta": {
 | |
|                               "type":"VARCHAR",
 | |
|                               "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",
 | |
|                             "CNT_CONST"
 | |
|                           ],
 | |
|                           "rel_id": [
 | |
|                           ],
 | |
|                           "value": {
 | |
|                             "VARCHAR":"",
 | |
|                             "collation":"binary"
 | |
|                           }
 | |
|                         },
 | |
|                          {
 | |
|                           "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":4
 | |
|                           }
 | |
|                         }
 | |
|                       ],
 | |
|                       "enum_set_values": [
 | |
|                       ]
 | |
|                     }
 | |
|                   ],
 | |
|                   "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":1
 | |
|                   }
 | |
|                 }
 | |
|               ]
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 63   ***************
 | |
| insert into bt set c1 = 2, c2 = c1 + 1, c3 = c1 + 2;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677895,
 | |
|       "table_name":"bt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677895,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"bt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677895,
 | |
|           "index_tid":1099511677895,
 | |
|           "index_name":"bt",
 | |
|           "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":1099511677895,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":3
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677895
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "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
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967290
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "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":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":128,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"",
 | |
|               "table_name":"__values",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":false,
 | |
|               "explicited_ref_count":0,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":6
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":4,
 | |
|     "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":3
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "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_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_OP_ADD",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CALCULABLE_EXPR",
 | |
|                 "IS_CONST_EXPR",
 | |
|                 "CNT_CONST",
 | |
|                 "CNT_STATIC_PARAM",
 | |
|                 "CNT_FUNC",
 | |
|                 "CNT_CALCULABLE_EXPR"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "expr_levels": [
 | |
|               ],
 | |
|               "children": [
 | |
|                  {
 | |
|                   "item_type":"T_FUN_COLUMN_CONV",
 | |
|                   "result_type": {
 | |
|                     "meta": {
 | |
|                       "type":"CHAR",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"IMPLICIT"
 | |
|                     },
 | |
|                     "accuracy": {
 | |
|                       "length":4,
 | |
|                       "precision":-1,
 | |
|                       "scale":-1
 | |
|                     },
 | |
|                     "flag":0,
 | |
|                     "calc_type": {
 | |
|                       "type":"NULL",
 | |
|                       "collation":"invalid_type",
 | |
|                       "coercibility":"INVALID"
 | |
|                     }
 | |
|                   },
 | |
|                   "expr_info": [
 | |
|                     "IS_CONST",
 | |
|                     "IS_FUNC",
 | |
|                     "IS_CALCULABLE_EXPR",
 | |
|                     "IS_CONST_EXPR",
 | |
|                     "CNT_CONST",
 | |
|                     "CNT_STATIC_PARAM",
 | |
|                     "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":23
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "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":-4294967292
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "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_FUN_PAD",
 | |
|                       "result_type": {
 | |
|                         "meta": {
 | |
|                           "type":"VARCHAR",
 | |
|                           "collation":"binary",
 | |
|                           "coercibility":"IMPLICIT"
 | |
|                         },
 | |
|                         "accuracy": {
 | |
|                           "length":1048576,
 | |
|                           "precision":-1,
 | |
|                           "scale":-1
 | |
|                         },
 | |
|                         "flag":0,
 | |
|                         "calc_type": {
 | |
|                           "type":"NULL",
 | |
|                           "collation":"invalid_type",
 | |
|                           "coercibility":"INVALID"
 | |
|                         }
 | |
|                       },
 | |
|                       "expr_info": [
 | |
|                         "IS_CONST",
 | |
|                         "IS_FUNC",
 | |
|                         "IS_CALCULABLE_EXPR",
 | |
|                         "IS_CONST_EXPR",
 | |
|                         "CNT_CONST",
 | |
|                         "CNT_STATIC_PARAM",
 | |
|                         "CNT_FUNC",
 | |
|                         "CNT_CALCULABLE_EXPR"
 | |
|                       ],
 | |
|                       "rel_id": [
 | |
|                       ],
 | |
|                       "expr_levels": [
 | |
|                       ],
 | |
|                       "func":"pad",
 | |
|                       "children": [
 | |
|                          {
 | |
|                           "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_VARCHAR",
 | |
|                           "result_type": {
 | |
|                             "meta": {
 | |
|                               "type":"VARCHAR",
 | |
|                               "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",
 | |
|                             "CNT_CONST"
 | |
|                           ],
 | |
|                           "rel_id": [
 | |
|                           ],
 | |
|                           "value": {
 | |
|                             "VARCHAR":"",
 | |
|                             "collation":"binary"
 | |
|                           }
 | |
|                         },
 | |
|                          {
 | |
|                           "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":4
 | |
|                           }
 | |
|                         }
 | |
|                       ],
 | |
|                       "enum_set_values": [
 | |
|                       ]
 | |
|                     }
 | |
|                   ],
 | |
|                   "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":1
 | |
|                   }
 | |
|                 }
 | |
|               ]
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967290
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_OP_ADD",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CALCULABLE_EXPR",
 | |
|                 "IS_CONST_EXPR",
 | |
|                 "CNT_CONST",
 | |
|                 "CNT_STATIC_PARAM",
 | |
|                 "CNT_FUNC",
 | |
|                 "CNT_CALCULABLE_EXPR"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "expr_levels": [
 | |
|               ],
 | |
|               "children": [
 | |
|                  {
 | |
|                   "item_type":"T_FUN_COLUMN_CONV",
 | |
|                   "result_type": {
 | |
|                     "meta": {
 | |
|                       "type":"CHAR",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"IMPLICIT"
 | |
|                     },
 | |
|                     "accuracy": {
 | |
|                       "length":4,
 | |
|                       "precision":-1,
 | |
|                       "scale":-1
 | |
|                     },
 | |
|                     "flag":0,
 | |
|                     "calc_type": {
 | |
|                       "type":"NULL",
 | |
|                       "collation":"invalid_type",
 | |
|                       "coercibility":"INVALID"
 | |
|                     }
 | |
|                   },
 | |
|                   "expr_info": [
 | |
|                     "IS_CONST",
 | |
|                     "IS_FUNC",
 | |
|                     "IS_CALCULABLE_EXPR",
 | |
|                     "IS_CONST_EXPR",
 | |
|                     "CNT_CONST",
 | |
|                     "CNT_STATIC_PARAM",
 | |
|                     "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":23
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "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":-4294967292
 | |
|                       }
 | |
|                     },
 | |
|                      {
 | |
|                       "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_FUN_PAD",
 | |
|                       "result_type": {
 | |
|                         "meta": {
 | |
|                           "type":"VARCHAR",
 | |
|                           "collation":"binary",
 | |
|                           "coercibility":"IMPLICIT"
 | |
|                         },
 | |
|                         "accuracy": {
 | |
|                           "length":1048576,
 | |
|                           "precision":-1,
 | |
|                           "scale":-1
 | |
|                         },
 | |
|                         "flag":0,
 | |
|                         "calc_type": {
 | |
|                           "type":"NULL",
 | |
|                           "collation":"invalid_type",
 | |
|                           "coercibility":"INVALID"
 | |
|                         }
 | |
|                       },
 | |
|                       "expr_info": [
 | |
|                         "IS_CONST",
 | |
|                         "IS_FUNC",
 | |
|                         "IS_CALCULABLE_EXPR",
 | |
|                         "IS_CONST_EXPR",
 | |
|                         "CNT_CONST",
 | |
|                         "CNT_STATIC_PARAM",
 | |
|                         "CNT_FUNC",
 | |
|                         "CNT_CALCULABLE_EXPR"
 | |
|                       ],
 | |
|                       "rel_id": [
 | |
|                       ],
 | |
|                       "expr_levels": [
 | |
|                       ],
 | |
|                       "func":"pad",
 | |
|                       "children": [
 | |
|                          {
 | |
|                           "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_VARCHAR",
 | |
|                           "result_type": {
 | |
|                             "meta": {
 | |
|                               "type":"VARCHAR",
 | |
|                               "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",
 | |
|                             "CNT_CONST"
 | |
|                           ],
 | |
|                           "rel_id": [
 | |
|                           ],
 | |
|                           "value": {
 | |
|                             "VARCHAR":"",
 | |
|                             "collation":"binary"
 | |
|                           }
 | |
|                         },
 | |
|                          {
 | |
|                           "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":4
 | |
|                           }
 | |
|                         }
 | |
|                       ],
 | |
|                       "enum_set_values": [
 | |
|                       ]
 | |
|                     }
 | |
|                   ],
 | |
|                   "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":2
 | |
|                   }
 | |
|                 }
 | |
|               ]
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":6
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 64   ***************
 | |
| insert into bt select c1,c2,c3 from test;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677895,
 | |
|       "table_name":"bt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677895,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"bt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677895,
 | |
|           "index_tid":1099511677895,
 | |
|           "index_name":"bt",
 | |
|           "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":1099511677895,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":0
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677895
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967290
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "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":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":0,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "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":1,
 | |
|     "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":0
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677881,
 | |
|         "table_name":"test",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677881,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|     ],
 | |
|     "column": [
 | |
|        {
 | |
|         "column_id":16,
 | |
|         "table_id":1099511677881,
 | |
|         "column":"c1",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677881,
 | |
|         "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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":1099511677881,
 | |
|         "column":"c2",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677881,
 | |
|         "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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":18,
 | |
|         "table_id":1099511677881,
 | |
|         "column":"c3",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677881,
 | |
|         "base_cid":18,
 | |
|         "expression": {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "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":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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"
 | |
|         }
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "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":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"c3",
 | |
|         "expr_name":"c3",
 | |
|         "default": {
 | |
|           "NULL":"NULL"
 | |
|         }
 | |
|       }
 | |
|     ],
 | |
|     "distinct":false,
 | |
|     "rollup":false,
 | |
|     "nocycle":false,
 | |
|     "from": [
 | |
|        {
 | |
|         "table_id":1099511677881,
 | |
|         "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":0,
 | |
|       "use join filter":false,
 | |
|       "org_pq_distributes": [
 | |
|       ],
 | |
|       "pq_distributes": [
 | |
|       ]
 | |
|     },
 | |
|     "query_context": {
 | |
|       "param_num":1,
 | |
|       "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":0
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|     "extra_output_exprs": [
 | |
|     ],
 | |
|     "current_level":0,
 | |
|     "equal_sets": [
 | |
|     ],
 | |
|     "pseudo_column_exprs": [
 | |
|     ],
 | |
|     "child_stmts": [
 | |
|     ],
 | |
|     "has_transformed_for_hierarchical_query":false,
 | |
|     "is_hierarchical_query":false
 | |
|   }
 | |
| }
 | |
| ***************   Case 65   ***************
 | |
| insert into bt  select c1,c2,c3 from test on duplicate key update c1 = c1 + 1, c2 = values(c2);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677895,
 | |
|       "table_name":"bt",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677895,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"bt",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677895,
 | |
|           "index_tid":1099511677895,
 | |
|           "index_name":"bt",
 | |
|           "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":1099511677895,
 | |
|               "column_id":1,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":4,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":1099511677895,
 | |
|               "column_id":5,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "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":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":4,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":5,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":6,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677895,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"bt",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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": [
 | |
|     1,
 | |
|     4,
 | |
|     5
 | |
|   ],
 | |
|   "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":1
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677895
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967292
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":5,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967291
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_PAD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":1048576,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_FUNC",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "func":"pad",
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "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_VARCHAR",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "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",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "VARCHAR":"",
 | |
|                 "collation":"binary"
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":5
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"CHAR",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":6,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|         1
 | |
|       ],
 | |
|       "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967290
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "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":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":0,
 | |
|           "is_explicited_referece":true,
 | |
|           "explicited_ref_count":1,
 | |
|           "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":3,
 | |
|     "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":1
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_SYS_TO_TYPE",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"DOUBLE",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"to_type",
 | |
|           "children": [
 | |
|              {
 | |
|               "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
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":2
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "select": {
 | |
|     "stmt_type":1,
 | |
|     "table": [
 | |
|        {
 | |
|         "table_id":1099511677881,
 | |
|         "table_name":"test",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677881,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       }
 | |
|     ],
 | |
|     "joined_table": [
 | |
|     ],
 | |
|     "partition_express": [
 | |
|     ],
 | |
|     "column": [
 | |
|        {
 | |
|         "column_id":16,
 | |
|         "table_id":1099511677881,
 | |
|         "column":"c1",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677881,
 | |
|         "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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":1099511677881,
 | |
|         "column":"c2",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677881,
 | |
|         "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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":18,
 | |
|         "table_id":1099511677881,
 | |
|         "column":"c3",
 | |
|         "auto_filled_timestamp":false,
 | |
|         "default_value": {
 | |
|           "NULL":"NULL"
 | |
|         },
 | |
|         "base_tid":1099511677881,
 | |
|         "base_cid":18,
 | |
|         "expression": {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "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":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":16,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|             1
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":17,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "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"
 | |
|         }
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "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":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"insert_db",
 | |
|           "table_name":"test",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":"c3",
 | |
|         "expr_name":"c3",
 | |
|         "default": {
 | |
|           "NULL":"NULL"
 | |
|         }
 | |
|       }
 | |
|     ],
 | |
|     "distinct":false,
 | |
|     "rollup":false,
 | |
|     "nocycle":false,
 | |
|     "from": [
 | |
|        {
 | |
|         "table_id":1099511677881,
 | |
|         "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":0,
 | |
|       "use join filter":false,
 | |
|       "org_pq_distributes": [
 | |
|       ],
 | |
|       "pq_distributes": [
 | |
|       ]
 | |
|     },
 | |
|     "query_context": {
 | |
|       "param_num":3,
 | |
|       "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":1
 | |
|         },
 | |
|          {
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_SYS_TO_TYPE",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"DOUBLE",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":-1,
 | |
|                 "scale":-1
 | |
|               },
 | |
|               "flag":0,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_CONST",
 | |
|               "IS_FUNC",
 | |
|               "IS_CALCULABLE_EXPR",
 | |
|               "IS_CONST_EXPR",
 | |
|               "CNT_CONST",
 | |
|               "CNT_STATIC_PARAM",
 | |
|               "CNT_FUNC",
 | |
|               "CNT_CALCULABLE_EXPR"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "expr_levels": [
 | |
|             ],
 | |
|             "func":"to_type",
 | |
|             "children": [
 | |
|                {
 | |
|                 "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
 | |
|                 }
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "idx":2
 | |
|         }
 | |
|       ]
 | |
|     },
 | |
|     "extra_output_exprs": [
 | |
|     ],
 | |
|     "current_level":0,
 | |
|     "equal_sets": [
 | |
|     ],
 | |
|     "pseudo_column_exprs": [
 | |
|     ],
 | |
|     "child_stmts": [
 | |
|     ],
 | |
|     "has_transformed_for_hierarchical_query":false,
 | |
|     "is_hierarchical_query":false
 | |
|   },
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677895,
 | |
|         "table_name":"bt",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677895,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"CHAR",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":4,
 | |
|                 "precision":-1,
 | |
|                 "scale":-1
 | |
|               },
 | |
|               "flag":0,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_COLUMN",
 | |
|               "CNT_COLUMN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "table_id":1099511677895,
 | |
|             "column_id":16,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"bt",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"CHAR",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":4,
 | |
|                 "precision":-1,
 | |
|                 "scale":-1
 | |
|               },
 | |
|               "flag":0,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_STATIC_PARAM",
 | |
|               "CNT_FUNC"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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":23
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "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":-4294967292
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "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_FUN_PAD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"VARCHAR",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"IMPLICIT"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":1048576,
 | |
|                     "precision":-1,
 | |
|                     "scale":-1
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"invalid_type",
 | |
|                     "coercibility":"INVALID"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "IS_FUNC",
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_STATIC_PARAM",
 | |
|                   "CNT_FUNC"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                   1
 | |
|                 ],
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "func":"pad",
 | |
|                 "children": [
 | |
|                    {
 | |
|                     "item_type":"T_OP_ADD",
 | |
|                     "result_type": {
 | |
|                       "meta": {
 | |
|                         "type":"DOUBLE",
 | |
|                         "collation":"binary",
 | |
|                         "coercibility":"NUMERIC"
 | |
|                       },
 | |
|                       "accuracy": {
 | |
|                         "length":-1,
 | |
|                         "precision":-1,
 | |
|                         "scale":-1
 | |
|                       },
 | |
|                       "flag":0,
 | |
|                       "calc_type": {
 | |
|                         "type":"DOUBLE",
 | |
|                         "collation":"binary",
 | |
|                         "coercibility":"NUMERIC"
 | |
|                       }
 | |
|                     },
 | |
|                     "expr_info": [
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_STATIC_PARAM"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                       1
 | |
|                     ],
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "children": [
 | |
|                        {
 | |
|                         "item_type":"T_REF_COLUMN",
 | |
|                         "result_type": {
 | |
|                           "meta": {
 | |
|                             "type":"CHAR",
 | |
|                             "collation":"binary",
 | |
|                             "coercibility":"IMPLICIT"
 | |
|                           },
 | |
|                           "accuracy": {
 | |
|                             "length":4,
 | |
|                             "precision":-1,
 | |
|                             "scale":-1
 | |
|                           },
 | |
|                           "flag":0,
 | |
|                           "calc_type": {
 | |
|                             "type":"NULL",
 | |
|                             "collation":"invalid_type",
 | |
|                             "coercibility":"INVALID"
 | |
|                           }
 | |
|                         },
 | |
|                         "expr_info": [
 | |
|                           "IS_COLUMN",
 | |
|                           "CNT_COLUMN"
 | |
|                         ],
 | |
|                         "rel_id": [
 | |
|                           1
 | |
|                         ],
 | |
|                         "table_id":1099511677895,
 | |
|                         "column_id":16,
 | |
|                         "database_name":"insert_db",
 | |
|                         "table_name":"bt",
 | |
|                         "synonym_name":"",
 | |
|                         "column_name":"c1",
 | |
|                         "expr_level":0,
 | |
|                         "expr_levels": [
 | |
|                           0
 | |
|                         ],
 | |
|                         "column_flags":0,
 | |
|                         "is_explicited_referece":true,
 | |
|                         "explicited_ref_count":3,
 | |
|                         "enum_set_values": [
 | |
|                         ],
 | |
|                         "is_lob_column":false
 | |
|                       },
 | |
|                        {
 | |
|                         "item_type":"T_QUESTIONMARK",
 | |
|                         "result_type": {
 | |
|                           "meta": {
 | |
|                             "type":"DOUBLE",
 | |
|                             "collation":"binary",
 | |
|                             "coercibility":"NUMERIC"
 | |
|                           },
 | |
|                           "accuracy": {
 | |
|                             "length":-1,
 | |
|                             "precision":-1,
 | |
|                             "scale":-1
 | |
|                           },
 | |
|                           "flag":0,
 | |
|                           "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":2
 | |
|                         }
 | |
|                       }
 | |
|                     ]
 | |
|                   },
 | |
|                    {
 | |
|                     "item_type":"T_VARCHAR",
 | |
|                     "result_type": {
 | |
|                       "meta": {
 | |
|                         "type":"VARCHAR",
 | |
|                         "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",
 | |
|                       "CNT_CONST"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                     ],
 | |
|                     "value": {
 | |
|                       "VARCHAR":"",
 | |
|                       "collation":"binary"
 | |
|                     }
 | |
|                   },
 | |
|                    {
 | |
|                     "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":4
 | |
|                     }
 | |
|                   }
 | |
|                 ],
 | |
|                 "enum_set_values": [
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677895,
 | |
|           "base_column_id":16
 | |
|         },
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"CHAR",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":5,
 | |
|                 "precision":-1,
 | |
|                 "scale":-1
 | |
|               },
 | |
|               "flag":0,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_COLUMN",
 | |
|               "CNT_COLUMN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "table_id":1099511677895,
 | |
|             "column_id":17,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"bt",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"CHAR",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":5,
 | |
|                 "precision":-1,
 | |
|                 "scale":-1
 | |
|               },
 | |
|               "flag":0,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_FUNC",
 | |
|               "UNKNOWN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "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":23
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "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":-4294967291
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "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_FUN_PAD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"VARCHAR",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"IMPLICIT"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":1048576,
 | |
|                     "precision":-1,
 | |
|                     "scale":-1
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"NULL",
 | |
|                     "collation":"invalid_type",
 | |
|                     "coercibility":"INVALID"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "IS_FUNC",
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_FUNC",
 | |
|                   "UNKNOWN"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                   1
 | |
|                 ],
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "func":"pad",
 | |
|                 "children": [
 | |
|                    {
 | |
|                     "item_type":"T_FUN_SYS_VALUES",
 | |
|                     "result_type": {
 | |
|                       "meta": {
 | |
|                         "type":"CHAR",
 | |
|                         "collation":"binary",
 | |
|                         "coercibility":"IMPLICIT"
 | |
|                       },
 | |
|                       "accuracy": {
 | |
|                         "length":5,
 | |
|                         "precision":-1,
 | |
|                         "scale":-1
 | |
|                       },
 | |
|                       "flag":0,
 | |
|                       "calc_type": {
 | |
|                         "type":"NULL",
 | |
|                         "collation":"invalid_type",
 | |
|                         "coercibility":"INVALID"
 | |
|                       }
 | |
|                     },
 | |
|                     "expr_info": [
 | |
|                       "IS_FUNC",
 | |
|                       "IS_VALUES",
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_FUNC",
 | |
|                       "UNKNOWN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                       1
 | |
|                     ],
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "func":"values",
 | |
|                     "children": [
 | |
|                        {
 | |
|                         "item_type":"T_FUN_COLUMN_CONV",
 | |
|                         "result_type": {
 | |
|                           "meta": {
 | |
|                             "type":"CHAR",
 | |
|                             "collation":"binary",
 | |
|                             "coercibility":"IMPLICIT"
 | |
|                           },
 | |
|                           "accuracy": {
 | |
|                             "length":5,
 | |
|                             "precision":-1,
 | |
|                             "scale":-1
 | |
|                           },
 | |
|                           "flag":0,
 | |
|                           "calc_type": {
 | |
|                             "type":"NULL",
 | |
|                             "collation":"invalid_type",
 | |
|                             "coercibility":"INVALID"
 | |
|                           }
 | |
|                         },
 | |
|                         "expr_info": [
 | |
|                           "IS_FUNC",
 | |
|                           "CNT_CONST",
 | |
|                           "CNT_COLUMN",
 | |
|                           "CNT_FUNC"
 | |
|                         ],
 | |
|                         "rel_id": [
 | |
|                           1
 | |
|                         ],
 | |
|                         "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":23
 | |
|                             }
 | |
|                           },
 | |
|                            {
 | |
|                             "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":-4294967291
 | |
|                             }
 | |
|                           },
 | |
|                            {
 | |
|                             "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_FUN_PAD",
 | |
|                             "result_type": {
 | |
|                               "meta": {
 | |
|                                 "type":"VARCHAR",
 | |
|                                 "collation":"binary",
 | |
|                                 "coercibility":"IMPLICIT"
 | |
|                               },
 | |
|                               "accuracy": {
 | |
|                                 "length":1048576,
 | |
|                                 "precision":-1,
 | |
|                                 "scale":-1
 | |
|                               },
 | |
|                               "flag":0,
 | |
|                               "calc_type": {
 | |
|                                 "type":"NULL",
 | |
|                                 "collation":"invalid_type",
 | |
|                                 "coercibility":"INVALID"
 | |
|                               }
 | |
|                             },
 | |
|                             "expr_info": [
 | |
|                               "IS_FUNC",
 | |
|                               "CNT_CONST",
 | |
|                               "CNT_COLUMN",
 | |
|                               "CNT_FUNC"
 | |
|                             ],
 | |
|                             "rel_id": [
 | |
|                               1
 | |
|                             ],
 | |
|                             "expr_levels": [
 | |
|                               0
 | |
|                             ],
 | |
|                             "func":"pad",
 | |
|                             "children": [
 | |
|                                {
 | |
|                                 "item_type":"T_REF_COLUMN",
 | |
|                                 "result_type": {
 | |
|                                   "meta": {
 | |
|                                     "type":"INT",
 | |
|                                     "collation":"binary",
 | |
|                                     "coercibility":"NUMERIC"
 | |
|                                   },
 | |
|                                   "accuracy": {
 | |
|                                     "length":-1,
 | |
|                                     "precision":11,
 | |
|                                     "scale":0
 | |
|                                   },
 | |
|                                   "flag":16387,
 | |
|                                   "calc_type": {
 | |
|                                     "type":"NULL",
 | |
|                                     "collation":"invalid_type",
 | |
|                                     "coercibility":"INVALID"
 | |
|                                   }
 | |
|                                 },
 | |
|                                 "expr_info": [
 | |
|                                   "IS_COLUMN",
 | |
|                                   "CNT_COLUMN"
 | |
|                                 ],
 | |
|                                 "rel_id": [
 | |
|                                   1
 | |
|                                 ],
 | |
|                                 "table_id":1099511677881,
 | |
|                                 "column_id":17,
 | |
|                                 "database_name":"insert_db",
 | |
|                                 "table_name":"test",
 | |
|                                 "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_VARCHAR",
 | |
|                                 "result_type": {
 | |
|                                   "meta": {
 | |
|                                     "type":"VARCHAR",
 | |
|                                     "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",
 | |
|                                   "CNT_CONST"
 | |
|                                 ],
 | |
|                                 "rel_id": [
 | |
|                                 ],
 | |
|                                 "value": {
 | |
|                                   "VARCHAR":"",
 | |
|                                   "collation":"binary"
 | |
|                                 }
 | |
|                               },
 | |
|                                {
 | |
|                                 "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":5
 | |
|                                 }
 | |
|                               }
 | |
|                             ],
 | |
|                             "enum_set_values": [
 | |
|                             ]
 | |
|                           }
 | |
|                         ],
 | |
|                         "enum_set_values": [
 | |
|                         ]
 | |
|                       }
 | |
|                     ],
 | |
|                     "enum_set_values": [
 | |
|                     ]
 | |
|                   },
 | |
|                    {
 | |
|                     "item_type":"T_VARCHAR",
 | |
|                     "result_type": {
 | |
|                       "meta": {
 | |
|                         "type":"VARCHAR",
 | |
|                         "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",
 | |
|                       "CNT_CONST"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                     ],
 | |
|                     "value": {
 | |
|                       "VARCHAR":"",
 | |
|                       "collation":"binary"
 | |
|                     }
 | |
|                   },
 | |
|                    {
 | |
|                     "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":5
 | |
|                     }
 | |
|                   }
 | |
|                 ],
 | |
|                 "enum_set_values": [
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677895,
 | |
|           "base_column_id":17
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 66   ***************
 | |
| insert into test2(c1,c2, c3) values(1,'test', default);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677884,
 | |
|       "table_name":"test2",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677884,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test2",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677884,
 | |
|           "index_tid":1099511677884,
 | |
|           "index_name":"test2",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677884,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test2",
 | |
|               "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":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":30,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677884,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test2",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"TIMESTAMP",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":25,
 | |
|                   "scale":6
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677884,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test2",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677884,
 | |
|           "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":30,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967266
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":30,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677884,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"TIMESTAMP",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":25,
 | |
|           "scale":6
 | |
|         },
 | |
|         "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":18
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":1688961529413631
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"TIMESTAMP",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":25,
 | |
|               "scale":6
 | |
|             },
 | |
|             "flag":128,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677884,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":4,
 | |
|           "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"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":1
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_SYS_DEFAULT",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"TIMESTAMP",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":25,
 | |
|           "scale":6
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CUR_TIME",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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":18
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":1688961529413631
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_FUN_SYS_CUR_TIMESTAMP",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"DATETIME",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":25,
 | |
|               "scale":6
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CUR_TIME",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CUR_TIME",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "func":"current_timestamp",
 | |
|           "children": [
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 67   ***************
 | |
| insert into t4 (c1,c2,c3) values(11, 1, default), (13,1, default);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677885,
 | |
|       "table_name":"t4",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677885,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t4",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677885,
 | |
|           "index_tid":1099511677885,
 | |
|           "index_name":"t4",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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_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":1099511677885,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677885,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "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",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":4
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":5,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "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":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":0
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":2
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":4
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":2,
 | |
|           "precision":2,
 | |
|           "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_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":1
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":2,
 | |
|           "precision":2,
 | |
|           "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_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":1
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 68   ***************
 | |
| insert into t4 (c1,c2,c3) values(11, 2, default), (13,3, default) on duplicate key update c2 = 5, c3=4;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677885,
 | |
|       "table_name":"t4",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677885,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t4",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677885,
 | |
|           "index_tid":1099511677885,
 | |
|           "index_name":"t4",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":1099511677885,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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": [
 | |
|     16
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677885,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "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",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":6
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":9,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "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":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":0
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":2
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":6
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "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_STATIC_PARAM",
 | |
|             "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":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":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":4
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":7
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_CONST",
 | |
|             "IS_FUNC",
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "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":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_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
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":8
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":2,
 | |
|           "precision":2,
 | |
|           "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_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":1
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"BIGINT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"NUMERIC"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":2,
 | |
|           "precision":2,
 | |
|           "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_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":1
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677885,
 | |
|         "table_name":"t4",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677885,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_COLUMN",
 | |
|               "CNT_COLUMN"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|               1
 | |
|             ],
 | |
|             "table_id":1099511677885,
 | |
|             "column_id":17,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t4",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_QUESTIONMARK",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "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",
 | |
|               "IS_DYNAMIC_PARAM"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "UNKNOWN":7
 | |
|             }
 | |
|           },
 | |
|           "base_table_id":1099511677885,
 | |
|           "base_column_id":17
 | |
|         },
 | |
|          {
 | |
|           "column": {
 | |
|             "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":1099511677885,
 | |
|             "column_id":18,
 | |
|             "database_name":"insert_db",
 | |
|             "table_name":"t4",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c3",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_QUESTIONMARK",
 | |
|             "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_CONST",
 | |
|               "IS_STATIC_PARAM",
 | |
|               "CNT_CONST",
 | |
|               "CNT_STATIC_PARAM",
 | |
|               "IS_DYNAMIC_PARAM"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "UNKNOWN":8
 | |
|             }
 | |
|           },
 | |
|           "base_table_id":1099511677885,
 | |
|           "base_column_id":18
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":false,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 69   ***************
 | |
| insert into t_auto_inc values (1, default), (2, default);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677889,
 | |
|       "table_name":"t_auto_inc",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677889,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t_auto_inc",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677889,
 | |
|           "index_tid":1099511677889,
 | |
|           "index_name":"t_auto_inc",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677889,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t_auto_inc",
 | |
|               "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":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677889,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t_auto_inc",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677889,
 | |
|           "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":17
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677889,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "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":1
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 70   ***************
 | |
| insert into t4 values(1, 3, default, 4);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677885,
 | |
|       "table_name":"t4",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677885,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t4",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677885,
 | |
|           "index_tid":1099511677885,
 | |
|           "index_name":"t4",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "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_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":1099511677885,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677885,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t4",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677885,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":129,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677885,
 | |
|           "column_id":19,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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_FUN_SYS_DEFAULT",
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "UNKNOWN",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"default",
 | |
|       "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_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":1
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "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":2
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 71   ***************
 | |
| insert into t1 values (1,2) on duplicate key update c1=values(c2);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|     16
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677877,
 | |
|         "table_name":"t1",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677877,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_FUNC",
 | |
|               "UNKNOWN"
 | |
|             ],
 | |
|             "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":0
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "item_type":"T_FUN_SYS_VALUES",
 | |
|                 "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",
 | |
|                   "IS_VALUES",
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_FUNC",
 | |
|                   "UNKNOWN"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                 ],
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "func":"values",
 | |
|                 "children": [
 | |
|                    {
 | |
|                     "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":1099511677877,
 | |
|                         "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": [
 | |
|                     ]
 | |
|                   }
 | |
|                 ],
 | |
|                 "enum_set_values": [
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677877,
 | |
|           "base_column_id":16
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":true,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 72   ***************
 | |
| insert into t1 values (1,2),(3,4) on duplicate key update c1=values(c2)+values(c1), c2= values(c1)+values(c1);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":5,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":5,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             }
 | |
|           ],
 | |
|           "assignments": [
 | |
|           ]
 | |
|         }
 | |
|       ]
 | |
|     }
 | |
|   ],
 | |
|   "is_ignore":false,
 | |
|   "primary_key_ids": [
 | |
|     16
 | |
|   ],
 | |
|   "column_conv": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":4,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "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
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "assign": [
 | |
|      {
 | |
|       "table": {
 | |
|         "table_id":1099511677877,
 | |
|         "table_name":"t1",
 | |
|         "alias_name":"",
 | |
|         "synonym_name":"",
 | |
|         "table_type":0,
 | |
|         "ref_id":1099511677877,
 | |
|         "database_name":"insert_db",
 | |
|         "for_update":false,
 | |
|         "wait":-1,
 | |
|         "mock_id":-1,
 | |
|         "view_base_item":-1
 | |
|       },
 | |
|       "assign": [
 | |
|          {
 | |
|           "column": {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":5,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "item_type":"T_FUN_COLUMN_CONV",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"IMPLICIT"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":1,
 | |
|               "calc_type": {
 | |
|                 "type":"NULL",
 | |
|                 "collation":"invalid_type",
 | |
|                 "coercibility":"INVALID"
 | |
|               }
 | |
|             },
 | |
|             "expr_info": [
 | |
|               "IS_FUNC",
 | |
|               "CNT_CONST",
 | |
|               "CNT_COLUMN",
 | |
|               "CNT_FUNC",
 | |
|               "UNKNOWN"
 | |
|             ],
 | |
|             "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":0
 | |
|                 }
 | |
|               },
 | |
|                {
 | |
|                 "item_type":"T_OP_ADD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":12,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_FUNC",
 | |
|                   "UNKNOWN"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                 ],
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "children": [
 | |
|                    {
 | |
|                     "item_type":"T_FUN_SYS_VALUES",
 | |
|                     "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",
 | |
|                       "IS_VALUES",
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_FUNC",
 | |
|                       "UNKNOWN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                     ],
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "func":"values",
 | |
|                     "children": [
 | |
|                        {
 | |
|                         "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":1099511677877,
 | |
|                             "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": [
 | |
|                         ]
 | |
|                       }
 | |
|                     ],
 | |
|                     "enum_set_values": [
 | |
|                     ]
 | |
|                   },
 | |
|                    {
 | |
|                     "item_type":"T_FUN_SYS_VALUES",
 | |
|                     "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",
 | |
|                       "IS_VALUES",
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_FUNC",
 | |
|                       "UNKNOWN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                     ],
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "func":"values",
 | |
|                     "children": [
 | |
|                        {
 | |
|                         "item_type":"T_FUN_COLUMN_CONV",
 | |
|                         "result_type": {
 | |
|                           "meta": {
 | |
|                             "type":"INT",
 | |
|                             "collation":"binary",
 | |
|                             "coercibility":"IMPLICIT"
 | |
|                           },
 | |
|                           "accuracy": {
 | |
|                             "length":-1,
 | |
|                             "precision":11,
 | |
|                             "scale":0
 | |
|                           },
 | |
|                           "flag":1,
 | |
|                           "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":0
 | |
|                             }
 | |
|                           },
 | |
|                            {
 | |
|                             "item_type":"T_REF_COLUMN",
 | |
|                             "result_type": {
 | |
|                               "meta": {
 | |
|                                 "type":"INT",
 | |
|                                 "collation":"binary",
 | |
|                                 "coercibility":"NUMERIC"
 | |
|                               },
 | |
|                               "accuracy": {
 | |
|                                 "length":-1,
 | |
|                                 "precision":11,
 | |
|                                 "scale":0
 | |
|                               },
 | |
|                               "flag":16515,
 | |
|                               "calc_type": {
 | |
|                                 "type":"NULL",
 | |
|                                 "collation":"invalid_type",
 | |
|                                 "coercibility":"INVALID"
 | |
|                               }
 | |
|                             },
 | |
|                             "expr_info": [
 | |
|                               "IS_COLUMN",
 | |
|                               "CNT_COLUMN"
 | |
|                             ],
 | |
|                             "rel_id": [
 | |
|                             ],
 | |
|                             "table_id":1099511677877,
 | |
|                             "column_id":16,
 | |
|                             "database_name":"",
 | |
|                             "table_name":"__values",
 | |
|                             "synonym_name":"",
 | |
|                             "column_name":"c1",
 | |
|                             "expr_level":0,
 | |
|                             "expr_levels": [
 | |
|                               0
 | |
|                             ],
 | |
|                             "column_flags":17179869184,
 | |
|                             "is_explicited_referece":false,
 | |
|                             "explicited_ref_count":0,
 | |
|                             "enum_set_values": [
 | |
|                             ],
 | |
|                             "is_lob_column":false
 | |
|                           }
 | |
|                         ],
 | |
|                         "enum_set_values": [
 | |
|                         ]
 | |
|                       }
 | |
|                     ],
 | |
|                     "enum_set_values": [
 | |
|                     ]
 | |
|                   }
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677877,
 | |
|           "base_column_id":16
 | |
|         },
 | |
|          {
 | |
|           "column": {
 | |
|             "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c2",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":0,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":3,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|           "expression": {
 | |
|             "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",
 | |
|               "UNKNOWN"
 | |
|             ],
 | |
|             "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_OP_ADD",
 | |
|                 "result_type": {
 | |
|                   "meta": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   },
 | |
|                   "accuracy": {
 | |
|                     "length":-1,
 | |
|                     "precision":12,
 | |
|                     "scale":0
 | |
|                   },
 | |
|                   "flag":0,
 | |
|                   "calc_type": {
 | |
|                     "type":"BIGINT",
 | |
|                     "collation":"binary",
 | |
|                     "coercibility":"NUMERIC"
 | |
|                   }
 | |
|                 },
 | |
|                 "expr_info": [
 | |
|                   "CNT_CONST",
 | |
|                   "CNT_COLUMN",
 | |
|                   "CNT_FUNC",
 | |
|                   "UNKNOWN"
 | |
|                 ],
 | |
|                 "rel_id": [
 | |
|                 ],
 | |
|                 "expr_levels": [
 | |
|                   0
 | |
|                 ],
 | |
|                 "children": [
 | |
|                    {
 | |
|                     "item_type":"T_FUN_SYS_VALUES",
 | |
|                     "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",
 | |
|                       "IS_VALUES",
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_FUNC",
 | |
|                       "UNKNOWN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                     ],
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "func":"values",
 | |
|                     "children": [
 | |
|                        {
 | |
|                         "item_type":"T_FUN_COLUMN_CONV",
 | |
|                         "result_type": {
 | |
|                           "meta": {
 | |
|                             "type":"INT",
 | |
|                             "collation":"binary",
 | |
|                             "coercibility":"IMPLICIT"
 | |
|                           },
 | |
|                           "accuracy": {
 | |
|                             "length":-1,
 | |
|                             "precision":11,
 | |
|                             "scale":0
 | |
|                           },
 | |
|                           "flag":1,
 | |
|                           "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":0
 | |
|                             }
 | |
|                           },
 | |
|                            {
 | |
|                             "item_type":"T_REF_COLUMN",
 | |
|                             "result_type": {
 | |
|                               "meta": {
 | |
|                                 "type":"INT",
 | |
|                                 "collation":"binary",
 | |
|                                 "coercibility":"NUMERIC"
 | |
|                               },
 | |
|                               "accuracy": {
 | |
|                                 "length":-1,
 | |
|                                 "precision":11,
 | |
|                                 "scale":0
 | |
|                               },
 | |
|                               "flag":16515,
 | |
|                               "calc_type": {
 | |
|                                 "type":"NULL",
 | |
|                                 "collation":"invalid_type",
 | |
|                                 "coercibility":"INVALID"
 | |
|                               }
 | |
|                             },
 | |
|                             "expr_info": [
 | |
|                               "IS_COLUMN",
 | |
|                               "CNT_COLUMN"
 | |
|                             ],
 | |
|                             "rel_id": [
 | |
|                             ],
 | |
|                             "table_id":1099511677877,
 | |
|                             "column_id":16,
 | |
|                             "database_name":"",
 | |
|                             "table_name":"__values",
 | |
|                             "synonym_name":"",
 | |
|                             "column_name":"c1",
 | |
|                             "expr_level":0,
 | |
|                             "expr_levels": [
 | |
|                               0
 | |
|                             ],
 | |
|                             "column_flags":17179869184,
 | |
|                             "is_explicited_referece":false,
 | |
|                             "explicited_ref_count":0,
 | |
|                             "enum_set_values": [
 | |
|                             ],
 | |
|                             "is_lob_column":false
 | |
|                           }
 | |
|                         ],
 | |
|                         "enum_set_values": [
 | |
|                         ]
 | |
|                       }
 | |
|                     ],
 | |
|                     "enum_set_values": [
 | |
|                     ]
 | |
|                   },
 | |
|                    {
 | |
|                     "item_type":"T_FUN_SYS_VALUES",
 | |
|                     "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",
 | |
|                       "IS_VALUES",
 | |
|                       "CNT_CONST",
 | |
|                       "CNT_COLUMN",
 | |
|                       "CNT_FUNC",
 | |
|                       "UNKNOWN"
 | |
|                     ],
 | |
|                     "rel_id": [
 | |
|                     ],
 | |
|                     "expr_levels": [
 | |
|                       0
 | |
|                     ],
 | |
|                     "func":"values",
 | |
|                     "children": [
 | |
|                        {
 | |
|                         "item_type":"T_FUN_COLUMN_CONV",
 | |
|                         "result_type": {
 | |
|                           "meta": {
 | |
|                             "type":"INT",
 | |
|                             "collation":"binary",
 | |
|                             "coercibility":"IMPLICIT"
 | |
|                           },
 | |
|                           "accuracy": {
 | |
|                             "length":-1,
 | |
|                             "precision":11,
 | |
|                             "scale":0
 | |
|                           },
 | |
|                           "flag":1,
 | |
|                           "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":0
 | |
|                             }
 | |
|                           },
 | |
|                            {
 | |
|                             "item_type":"T_REF_COLUMN",
 | |
|                             "result_type": {
 | |
|                               "meta": {
 | |
|                                 "type":"INT",
 | |
|                                 "collation":"binary",
 | |
|                                 "coercibility":"NUMERIC"
 | |
|                               },
 | |
|                               "accuracy": {
 | |
|                                 "length":-1,
 | |
|                                 "precision":11,
 | |
|                                 "scale":0
 | |
|                               },
 | |
|                               "flag":16515,
 | |
|                               "calc_type": {
 | |
|                                 "type":"NULL",
 | |
|                                 "collation":"invalid_type",
 | |
|                                 "coercibility":"INVALID"
 | |
|                               }
 | |
|                             },
 | |
|                             "expr_info": [
 | |
|                               "IS_COLUMN",
 | |
|                               "CNT_COLUMN"
 | |
|                             ],
 | |
|                             "rel_id": [
 | |
|                             ],
 | |
|                             "table_id":1099511677877,
 | |
|                             "column_id":16,
 | |
|                             "database_name":"",
 | |
|                             "table_name":"__values",
 | |
|                             "synonym_name":"",
 | |
|                             "column_name":"c1",
 | |
|                             "expr_level":0,
 | |
|                             "expr_levels": [
 | |
|                               0
 | |
|                             ],
 | |
|                             "column_flags":17179869184,
 | |
|                             "is_explicited_referece":false,
 | |
|                             "explicited_ref_count":0,
 | |
|                             "enum_set_values": [
 | |
|                             ],
 | |
|                             "is_lob_column":false
 | |
|                           }
 | |
|                         ],
 | |
|                         "enum_set_values": [
 | |
|                         ]
 | |
|                       }
 | |
|                     ],
 | |
|                     "enum_set_values": [
 | |
|                     ]
 | |
|                   }
 | |
|                 ]
 | |
|               }
 | |
|             ],
 | |
|             "enum_set_values": [
 | |
|             ]
 | |
|           },
 | |
|           "base_table_id":1099511677877,
 | |
|           "base_column_id":17
 | |
|         }
 | |
|       ],
 | |
|       "is_update_part_key":true,
 | |
|       "subquery_expr":null
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 73   ***************
 | |
| insert into tt1 ()values(),();
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677892,
 | |
|       "table_name":"tt1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677892,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"tt1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677892,
 | |
|           "index_tid":1099511677892,
 | |
|           "index_name":"tt1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16899,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677892,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tt1",
 | |
|               "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":1099511677892,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tt1",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":16
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":17027,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677892,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":1099511677892,
 | |
|           "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":0,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "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":16
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_NULL",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"INVALID"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "CNT_CONST"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "NULL":"NULL"
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":16
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_NULL",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"INVALID"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "CNT_CONST"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "NULL":"NULL"
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 74   ***************
 | |
| insert into tt1 values(),();
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677892,
 | |
|       "table_name":"tt1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677892,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"tt1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677892,
 | |
|           "index_tid":1099511677892,
 | |
|           "index_name":"tt1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16899,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677892,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tt1",
 | |
|               "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":1099511677892,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tt1",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":16
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":17027,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677892,
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":1099511677892,
 | |
|           "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":0,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "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":16
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_NULL",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"INVALID"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "CNT_CONST"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "NULL":"NULL"
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "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":16
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_NULL",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"INVALID"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "CNT_CONST"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "NULL":"NULL"
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 75   ***************
 | |
| insert into test set c1=1, c2=c1+1, c3=c2+c1;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677881,
 | |
|       "table_name":"test",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677881,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677881,
 | |
|           "index_name":"test",
 | |
|           "rowkey_cnt":3,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "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":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":21,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c6",
 | |
|               "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":1099511677881,
 | |
|               "column_id":22,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c7",
 | |
|               "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": [
 | |
|           ]
 | |
|         },
 | |
|          {
 | |
|           "table_id":1099511677881,
 | |
|           "index_tid":1099511677882,
 | |
|           "index_name":"test_indx",
 | |
|           "rowkey_cnt":5,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":19,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":1099511677881,
 | |
|               "column_id":20,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c5",
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":3,
 | |
|               "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":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677881,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c2",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"VARCHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "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":1099511677881,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":16387,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677881,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":3
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"DOUBLE",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "flag":0,
 | |
|         "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":4
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":5
 | |
|       }
 | |
|     }
 | |
|   ],
 | |
|   "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":6,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"VARCHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":50,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":22
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":45
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":-4294967246
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":50,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":2
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":3
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "item_type":"T_FUN_COLUMN_CONV",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"DOUBLE",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "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":12
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "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":1
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":4
 | |
|       },
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":5
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":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":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "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":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_STATIC_PARAM",
 | |
|         "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":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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_FUN_COLUMN_CONV",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "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_STATIC_PARAM",
 | |
|                 "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":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":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":0
 | |
|                   }
 | |
|                 }
 | |
|               ],
 | |
|               "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":1
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":50,
 | |
|           "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_STATIC_PARAM",
 | |
|         "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":22
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967246
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "item_type":"T_FUN_COLUMN_CONV",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "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_STATIC_PARAM",
 | |
|                 "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":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":0
 | |
|                   }
 | |
|                 },
 | |
|                  {
 | |
|                   "item_type":"T_OP_ADD",
 | |
|                   "result_type": {
 | |
|                     "meta": {
 | |
|                       "type":"BIGINT",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"NUMERIC"
 | |
|                     },
 | |
|                     "accuracy": {
 | |
|                       "length":-1,
 | |
|                       "precision":12,
 | |
|                       "scale":0
 | |
|                     },
 | |
|                     "flag":1,
 | |
|                     "calc_type": {
 | |
|                       "type":"BIGINT",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"NUMERIC"
 | |
|                     }
 | |
|                   },
 | |
|                   "expr_info": [
 | |
|                     "IS_CALCULABLE_EXPR",
 | |
|                     "IS_CONST_EXPR",
 | |
|                     "CNT_CONST",
 | |
|                     "CNT_STATIC_PARAM",
 | |
|                     "CNT_FUNC",
 | |
|                     "CNT_CALCULABLE_EXPR"
 | |
|                   ],
 | |
|                   "rel_id": [
 | |
|                   ],
 | |
|                   "expr_levels": [
 | |
|                   ],
 | |
|                   "children": [
 | |
|                      {
 | |
|                       "item_type":"T_FUN_COLUMN_CONV",
 | |
|                       "result_type": {
 | |
|                         "meta": {
 | |
|                           "type":"INT",
 | |
|                           "collation":"binary",
 | |
|                           "coercibility":"IMPLICIT"
 | |
|                         },
 | |
|                         "accuracy": {
 | |
|                           "length":-1,
 | |
|                           "precision":11,
 | |
|                           "scale":0
 | |
|                         },
 | |
|                         "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_STATIC_PARAM",
 | |
|                         "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":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":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":0
 | |
|                           }
 | |
|                         }
 | |
|                       ],
 | |
|                       "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":1
 | |
|                       }
 | |
|                     }
 | |
|                   ]
 | |
|                 }
 | |
|               ],
 | |
|               "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":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_STATIC_PARAM",
 | |
|                 "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":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":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":0
 | |
|                   }
 | |
|                 }
 | |
|               ],
 | |
|               "enum_set_values": [
 | |
|               ]
 | |
|             }
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 76   ***************
 | |
| insert into t1 set c1 = 1 + c1, c2 = 1;
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "table_name":"t1",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677877,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|      {
 | |
|       "table_id":1099511677877,
 | |
|       "index_tid":1099511677877,
 | |
|       "part_expr": {
 | |
|         "item_type":"T_OP_ADD",
 | |
|         "result_type": {
 | |
|           "meta": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           },
 | |
|           "accuracy": {
 | |
|             "length":-1,
 | |
|             "precision":12,
 | |
|             "scale":0
 | |
|           },
 | |
|           "flag":1,
 | |
|           "calc_type": {
 | |
|             "type":"BIGINT",
 | |
|             "collation":"binary",
 | |
|             "coercibility":"NUMERIC"
 | |
|           }
 | |
|         },
 | |
|         "expr_info": [
 | |
|           "CNT_CONST",
 | |
|           "CNT_COLUMN"
 | |
|         ],
 | |
|         "rel_id": [
 | |
|         ],
 | |
|         "expr_levels": [
 | |
|         ],
 | |
|         "children": [
 | |
|            {
 | |
|             "item_type":"T_REF_COLUMN",
 | |
|             "result_type": {
 | |
|               "meta": {
 | |
|                 "type":"INT",
 | |
|                 "collation":"binary",
 | |
|                 "coercibility":"NUMERIC"
 | |
|               },
 | |
|               "accuracy": {
 | |
|                 "length":-1,
 | |
|                 "precision":11,
 | |
|                 "scale":0
 | |
|               },
 | |
|               "flag":16387,
 | |
|               "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":"insert_db",
 | |
|             "table_name":"t1",
 | |
|             "synonym_name":"",
 | |
|             "column_name":"c1",
 | |
|             "expr_level":0,
 | |
|             "expr_levels": [
 | |
|               0
 | |
|             ],
 | |
|             "column_flags":17179869184,
 | |
|             "is_explicited_referece":true,
 | |
|             "explicited_ref_count":2,
 | |
|             "enum_set_values": [
 | |
|             ],
 | |
|             "is_lob_column":false
 | |
|           },
 | |
|            {
 | |
|             "item_type":"T_INT",
 | |
|             "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",
 | |
|               "CNT_CONST"
 | |
|             ],
 | |
|             "rel_id": [
 | |
|             ],
 | |
|             "value": {
 | |
|               "BIGINT":1
 | |
|             }
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "subpart_expr":null
 | |
|     }
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t1",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677877,
 | |
|           "index_tid":1099511677877,
 | |
|           "index_name":"t1",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":3,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"t1",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":17179869184,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":1099511677877,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677877,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c1",
 | |
|           "expr_level":0,
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "column_flags":17179869184,
 | |
|           "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":1099511677877,
 | |
|           "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":2,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_OP_ADD",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":12,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CALCULABLE_EXPR",
 | |
|             "IS_CONST_EXPR",
 | |
|             "CNT_CONST",
 | |
|             "CNT_STATIC_PARAM",
 | |
|             "CNT_CALCULABLE_EXPR"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|           ],
 | |
|           "children": [
 | |
|              {
 | |
|               "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_INT32",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":1,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "INT":0
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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_CONST",
 | |
|         "IS_FUNC",
 | |
|         "IS_CALCULABLE_EXPR",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "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":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_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
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 77   ***************
 | |
| insert into tm values(1, substr(c1,1,3), c3);
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677893,
 | |
|       "table_name":"tm",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677893,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"tm",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677893,
 | |
|           "index_tid":1099511677893,
 | |
|           "index_name":"tm",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677893,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tm",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c1",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "enum_set_values": [
 | |
|               ],
 | |
|               "is_lob_column":false
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"CHAR",
 | |
|                   "collation":"utf8mb4_general_ci",
 | |
|                   "coercibility":"IMPLICIT"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":100,
 | |
|                   "precision":-1,
 | |
|                   "scale":-1
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677893,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tm",
 | |
|               "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_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":1099511677893,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"tm",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677893,
 | |
|           "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":"CHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":100,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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":23
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":45
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":-4294967196
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "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":"CHAR",
 | |
|               "collation":"utf8mb4_general_ci",
 | |
|               "coercibility":"IMPLICIT"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":100,
 | |
|               "precision":-1,
 | |
|               "scale":-1
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677893,
 | |
|           "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": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "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":1099511677893,
 | |
|           "column_id":18,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":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":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_SYS_SUBSTR",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"VARCHAR",
 | |
|           "collation":"utf8mb4_general_ci",
 | |
|           "coercibility":"COERCIBLE"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":3,
 | |
|           "precision":-1,
 | |
|           "scale":-1
 | |
|         },
 | |
|         "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": [
 | |
|       ],
 | |
|       "func":"substr",
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677893,
 | |
|           "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
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_INT",
 | |
|           "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",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "BIGINT":1
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_INT",
 | |
|           "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",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "BIGINT":3
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_NULL",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"INVALID"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_CONST",
 | |
|         "CNT_CONST"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "NULL":"NULL"
 | |
|       }
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 78   ***************
 | |
| create table test3(c1 int primary key, c2 int, c3 int auto_increment unique key);
 | |
| {"ObTableStmt":{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[], "index_partition_resolve_results":[{"partition_fun_expr":[], "range_values_exprs":[], "list_values_exprs":[]}], "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":"test3", "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":18, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":1, "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":18, "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":16, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":1}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}, "index_arg_list":[], "constraint_list":[], "db_name":"insert_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[{"index_arg":{"tenant_id":18446744073709551615, "session_id":18446744073709551615, "index_name":"c3", "table_name":"", "database_name":"", "index_action_type":2}, "index_type":4, "index_columns":[{"column_name":"c3", "prefix_len":0, "order_type":0, "column_id":18446744073709551615}], "fulltext_columns":[], "store_columns":[], "index_option":{"block_size":16384, "replica_num":-1, "index_status":2, "use_bloom_filter":false, "compress_method":"", "comment":"", "tablegroup_name":"", "progressive_merge_num":0, "primary_zone":"", "parser_name":"", "index_attributes_set":0, "row_store_type":3, "store_format":0}, "index_using_type":0, "data_table_id":18446744073709551615, "index_table_id":18446744073709551615, "if_not_exist":false, "index_schema":{"simple_table_schema":{"tenant_id":18446744073709551615, "database_id":18446744073709551615, "tablegroup_id":18446744073709551615, "table_id":18446744073709551615, "table_name":"", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":4, "table_type":5, "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":0, "subpartition_num":0, "partition_array":null, "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":32783, "max_used_constraint_id":0, "sess_active_time":0, "rowkey_column_num":2, "index_column_num":1, "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":"", "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":18, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}, {"length":0, "column_id":32783, "type":{"type":"INT", "collation":"binary", "coercibility":"NUMERIC"}, "order":0, "fulltext_flag":false}], "capacity":2}, "partition_key_info":{"columns":null, "capacity":0}, "aux_vp_tid_array":[]}}]}
 | |
| ***************   Case 79   ***************
 | |
| insert into test3 set c1 = 135, c3 = c2 + 1
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677896,
 | |
|       "table_name":"test3",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677896,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"test3",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677896,
 | |
|           "index_tid":1099511677896,
 | |
|           "index_name":"test3",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "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":"insert_db",
 | |
|               "table_name":"test3",
 | |
|               "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":1099511677896,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test3",
 | |
|               "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_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":513,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677896,
 | |
|               "column_id":18,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"test3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677896,
 | |
|           "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_QUESTIONMARK",
 | |
|       "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_CONST",
 | |
|         "IS_STATIC_PARAM",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "IS_DYNAMIC_PARAM"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "value": {
 | |
|         "UNKNOWN":2
 | |
|       }
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "CNT_CONST",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_STATE_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":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",
 | |
|             "CNT_CONST",
 | |
|             "CNT_COLUMN",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_STATE_FUNC"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "expr_levels": [
 | |
|             0
 | |
|           ],
 | |
|           "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":18
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":641,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "table_id":1099511677896,
 | |
|               "column_id":18,
 | |
|               "database_name":"",
 | |
|               "table_name":"__values",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "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": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "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":3,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|        {
 | |
|         "expression": {
 | |
|           "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_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":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_NULL",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"INVALID"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CONST",
 | |
|                 "CNT_CONST"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "value": {
 | |
|                 "NULL":"NULL"
 | |
|               }
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         },
 | |
|         "idx":2
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_QUESTIONMARK",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"BIGINT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":3,
 | |
|               "precision":3,
 | |
|               "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
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "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":1,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_STATIC_PARAM",
 | |
|         "CNT_FUNC",
 | |
|         "CNT_CALCULABLE_EXPR",
 | |
|         "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":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":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_STATIC_PARAM",
 | |
|             "CNT_FUNC",
 | |
|             "CNT_CALCULABLE_EXPR",
 | |
|             "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":18
 | |
|               }
 | |
|             },
 | |
|              {
 | |
|               "item_type":"T_OP_ADD",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":12,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":0,
 | |
|                 "calc_type": {
 | |
|                   "type":"DOUBLE",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_CALCULABLE_EXPR",
 | |
|                 "IS_CONST_EXPR",
 | |
|                 "CNT_CONST",
 | |
|                 "CNT_STATIC_PARAM",
 | |
|                 "CNT_CALCULABLE_EXPR"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|               ],
 | |
|               "expr_levels": [
 | |
|               ],
 | |
|               "children": [
 | |
|                  {
 | |
|                   "item_type":"T_NULL",
 | |
|                   "result_type": {
 | |
|                     "meta": {
 | |
|                       "type":"NULL",
 | |
|                       "collation":"binary",
 | |
|                       "coercibility":"INVALID"
 | |
|                     },
 | |
|                     "accuracy": {
 | |
|                       "length":-1,
 | |
|                       "precision":11,
 | |
|                       "scale":0
 | |
|                     },
 | |
|                     "flag":0,
 | |
|                     "calc_type": {
 | |
|                       "type":"NULL",
 | |
|                       "collation":"invalid_type",
 | |
|                       "coercibility":"INVALID"
 | |
|                     }
 | |
|                   },
 | |
|                   "expr_info": [
 | |
|                     "IS_CONST",
 | |
|                     "CNT_CONST"
 | |
|                   ],
 | |
|                   "rel_id": [
 | |
|                   ],
 | |
|                   "value": {
 | |
|                     "NULL":"NULL"
 | |
|                   }
 | |
|                 },
 | |
|                  {
 | |
|                   "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
 | |
|                   }
 | |
|                 }
 | |
|               ]
 | |
|             }
 | |
|           ],
 | |
|           "enum_set_values": [
 | |
|           ]
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 80   ***************
 | |
| insert into t3 values(1, values(c3))
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677879,
 | |
|       "table_name":"t3",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677879,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t3",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677879,
 | |
|           "index_tid":1099511677879,
 | |
|           "index_name":"t3",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677879,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":1099511677879,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1099511677879,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":1,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_COLUMN_CONV",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "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_STATIC_PARAM",
 | |
|         "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":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":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":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_SYS_VALUES",
 | |
|       "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_FUNC",
 | |
|         "IS_VALUES",
 | |
|         "CNT_COLUMN",
 | |
|         "CNT_FUNC",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"values",
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 81   ***************
 | |
| insert into t3 values(values(c3), values(c4))
 | |
| {
 | |
|   "stmt_type":2,
 | |
|   "table": [
 | |
|      {
 | |
|       "table_id":1099511677879,
 | |
|       "table_name":"t3",
 | |
|       "alias_name":"",
 | |
|       "synonym_name":"",
 | |
|       "table_type":0,
 | |
|       "ref_id":1099511677879,
 | |
|       "database_name":"insert_db",
 | |
|       "for_update":false,
 | |
|       "wait":-1,
 | |
|       "mock_id":-1,
 | |
|       "view_base_item":-1
 | |
|     }
 | |
|   ],
 | |
|   "partition_express": [
 | |
|   ],
 | |
|   "all_table_columns": [
 | |
|      {
 | |
|       "table_name":"t3",
 | |
|       "index_dml_infos": [
 | |
|          {
 | |
|           "table_id":1099511677879,
 | |
|           "index_tid":1099511677879,
 | |
|           "index_name":"t3",
 | |
|           "rowkey_cnt":1,
 | |
|           "part_cnt":1,
 | |
|           "column_exprs": [
 | |
|              {
 | |
|               "item_type":"T_REF_COLUMN",
 | |
|               "result_type": {
 | |
|                 "meta": {
 | |
|                   "type":"INT",
 | |
|                   "collation":"binary",
 | |
|                   "coercibility":"NUMERIC"
 | |
|                 },
 | |
|                 "accuracy": {
 | |
|                   "length":-1,
 | |
|                   "precision":11,
 | |
|                   "scale":0
 | |
|                 },
 | |
|                 "flag":16387,
 | |
|                 "calc_type": {
 | |
|                   "type":"NULL",
 | |
|                   "collation":"invalid_type",
 | |
|                   "coercibility":"INVALID"
 | |
|                 }
 | |
|               },
 | |
|               "expr_info": [
 | |
|                 "IS_COLUMN",
 | |
|                 "CNT_COLUMN"
 | |
|               ],
 | |
|               "rel_id": [
 | |
|                 1
 | |
|               ],
 | |
|               "table_id":1099511677879,
 | |
|               "column_id":16,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c3",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":1099511677879,
 | |
|               "column_id":17,
 | |
|               "database_name":"insert_db",
 | |
|               "table_name":"t3",
 | |
|               "synonym_name":"",
 | |
|               "column_name":"c4",
 | |
|               "expr_level":0,
 | |
|               "expr_levels": [
 | |
|                 0
 | |
|               ],
 | |
|               "column_flags":0,
 | |
|               "is_explicited_referece":true,
 | |
|               "explicited_ref_count":2,
 | |
|               "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":"INT",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"IMPLICIT"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":1,
 | |
|         "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":0
 | |
|           }
 | |
|         },
 | |
|          {
 | |
|           "item_type":"T_REF_COLUMN",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":16515,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_COLUMN",
 | |
|             "CNT_COLUMN"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "table_id":1099511677879,
 | |
|           "column_id":16,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c3",
 | |
|           "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":1099511677879,
 | |
|           "column_id":17,
 | |
|           "database_name":"",
 | |
|           "table_name":"__values",
 | |
|           "synonym_name":"",
 | |
|           "column_name":"c4",
 | |
|           "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":0,
 | |
|     "fetch_cur_time":true,
 | |
|     "calculable_items": [
 | |
|     ]
 | |
|   },
 | |
|   "value": [
 | |
|      {
 | |
|       "item_type":"T_FUN_SYS_VALUES",
 | |
|       "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_FUNC",
 | |
|         "IS_VALUES",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"values",
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_INT32",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"INT",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"NUMERIC"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":1,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "INT":0
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     },
 | |
|      {
 | |
|       "item_type":"T_FUN_SYS_VALUES",
 | |
|       "result_type": {
 | |
|         "meta": {
 | |
|           "type":"NULL",
 | |
|           "collation":"binary",
 | |
|           "coercibility":"INVALID"
 | |
|         },
 | |
|         "accuracy": {
 | |
|           "length":-1,
 | |
|           "precision":11,
 | |
|           "scale":0
 | |
|         },
 | |
|         "flag":0,
 | |
|         "calc_type": {
 | |
|           "type":"NULL",
 | |
|           "collation":"invalid_type",
 | |
|           "coercibility":"INVALID"
 | |
|         }
 | |
|       },
 | |
|       "expr_info": [
 | |
|         "IS_FUNC",
 | |
|         "IS_VALUES",
 | |
|         "IS_CONST_EXPR",
 | |
|         "CNT_CONST",
 | |
|         "CNT_FUNC",
 | |
|         "UNKNOWN"
 | |
|       ],
 | |
|       "rel_id": [
 | |
|       ],
 | |
|       "expr_levels": [
 | |
|       ],
 | |
|       "func":"values",
 | |
|       "children": [
 | |
|          {
 | |
|           "item_type":"T_NULL",
 | |
|           "result_type": {
 | |
|             "meta": {
 | |
|               "type":"NULL",
 | |
|               "collation":"binary",
 | |
|               "coercibility":"INVALID"
 | |
|             },
 | |
|             "accuracy": {
 | |
|               "length":-1,
 | |
|               "precision":11,
 | |
|               "scale":0
 | |
|             },
 | |
|             "flag":0,
 | |
|             "calc_type": {
 | |
|               "type":"NULL",
 | |
|               "collation":"invalid_type",
 | |
|               "coercibility":"INVALID"
 | |
|             }
 | |
|           },
 | |
|           "expr_info": [
 | |
|             "IS_CONST",
 | |
|             "CNT_CONST"
 | |
|           ],
 | |
|           "rel_id": [
 | |
|           ],
 | |
|           "value": {
 | |
|             "NULL":"NULL"
 | |
|           }
 | |
|         }
 | |
|       ],
 | |
|       "enum_set_values": [
 | |
|       ]
 | |
|     }
 | |
|   ]
 | |
| }
 | |
| ***************   Case 82   ***************
 | |
| drop database insert_db;
 | |
| {
 | |
|   "drop_database_arg":"tenant_id",
 | |
|   "database_name":"insert_db",
 | |
|   "if_exist":false,
 | |
|   "to_recyclebin":false
 | |
| }
 | 
