3287 lines
		
	
	
		
			86 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			3287 lines
		
	
	
		
			86 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
***************   Case 1   ***************
 | 
						|
drop database if exists index_db;
 | 
						|
{
 | 
						|
  "drop_database_arg":"tenant_id",
 | 
						|
  "database_name":"index_db",
 | 
						|
  "if_exist":true,
 | 
						|
  "to_recyclebin":false
 | 
						|
}
 | 
						|
***************   Case 2   ***************
 | 
						|
create database index_db;
 | 
						|
{
 | 
						|
  "create_database_arg":"database_schema",
 | 
						|
  "database_id":-1,
 | 
						|
  "schema_version":1,
 | 
						|
  "database_name":"index_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 index_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":"index_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | 
						|
***************   Case 5   ***************
 | 
						|
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":"index_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | 
						|
***************   Case 6   ***************
 | 
						|
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":"index_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 7   ***************
 | 
						|
drop table if exists index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":21,
 | 
						|
  "drop_table_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "table_type":3,
 | 
						|
    "tables": [
 | 
						|
       {
 | 
						|
        "database_name":"index_db",
 | 
						|
        "table_name":"index_t1"
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "if_exist":true,
 | 
						|
    "to_recyclebin":false,
 | 
						|
    "session_id":-1,
 | 
						|
    "sess_create_time":0
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 8   ***************
 | 
						|
create table index_t1(c1 int primary key, c2 int, c3 int, c4 varchar(50));
 | 
						|
{"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":"index_t1", "replica_num":0, "previous_locality_str":"", "min_partition_id":0, "session_id":0, "index_type":0, "table_type":3, "data_table_id":0, "name_casemode":-1, "schema_version":0, "part_level":0, "part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":0}, "sub_part_option":{"part_func_type":0, "part_func_expr":"", "part_num":1, "partition_cnt_within_partition_table":-1, "max_used_part_id":-1}, "locality_str":"", "zone_list":[], "primary_zone":"", "part_num":0, "subpart_num":0, "partition_num":1, "subpartition_num":0, "partition_array":[{"BasePartition":{"tenant_id":18446744073709551615, "table_id":18446744073709551615, "part_id":0, "name":"p0", "high_bound_val":, "list_row_values":[], "part_idx":0}, "mapping_pg_part_id":-1}], "subpartition_array":null, "index_status":1, "binding":false, "duplicate_scope":0}, "max_used_column_id":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":"index_db", "last_replay_log_id":0, "foreign_key_arg_list":[], "vertical_partition_arg_list":[]}, "index_arg_list":[]}
 | 
						|
***************   Case 9   ***************
 | 
						|
create index index_ia1 on index_t1(c2, c3) LOCAL;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_ia1",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":1,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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 10   ***************
 | 
						|
create unique index index_ia2 on index_t1(c2, c3) LOCAL;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_ia2",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":2,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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 11   ***************
 | 
						|
create index index_ia3 on index_t1(c2, c3) GLOBAL;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_ia3",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":18,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "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
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 12   ***************
 | 
						|
create unique index index_ia4 on index_t1(c2, c3) GLOBAL;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_ia4",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":4,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":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":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "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":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 13   ***************
 | 
						|
create index index_ib1 on index_t1(c2, c3);
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_ib1",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":18,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "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
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 14   ***************
 | 
						|
create unique index index_ib2 on index_t1(c2, c3);
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_ib2",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":4,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":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":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "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":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 15   ***************
 | 
						|
create index index_i1 on index_t1(c2, c3) BLOCK_SIZE=16384;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i1",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":18,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "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
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 16   ***************
 | 
						|
create unique index index_i2 on index_t1(c2, c3) comment 'unique index';
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i2",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":4,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":"unique index",
 | 
						|
      "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":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":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "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":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 17   ***************
 | 
						|
create index index_i3 on index_t1(c2 asc, c3 desc);
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i3",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":-1,
 | 
						|
        "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":18,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":-1,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":16,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 18   ***************
 | 
						|
create index index_i4 on index_t1(c2, c3) comment 'kk contains c2/c3' BLOCK_SIZE=16384;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i4",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "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":"kk contains c2/c3",
 | 
						|
      "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":18,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "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
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 19   ***************
 | 
						|
create index index_i5 on index_t1(c2, c3) storing(c4);
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i5",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "fulltext_columns": [
 | 
						|
    ],
 | 
						|
    "store_columns": [
 | 
						|
      "c4"
 | 
						|
    ],
 | 
						|
    "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":19,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "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
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 20   ***************
 | 
						|
create index index_i6 on index_t1(c2, c3) storing(c4) comment 'kk contains c2/c3' BLOCK_SIZE=16384 LOCAL;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i6",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":1,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"c2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"c3",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "fulltext_columns": [
 | 
						|
    ],
 | 
						|
    "store_columns": [
 | 
						|
      "c4"
 | 
						|
    ],
 | 
						|
    "index_option": {
 | 
						|
      "block_size":16384,
 | 
						|
      "replica_num":0,
 | 
						|
      "index_status":1,
 | 
						|
      "use_bloom_filter":false,
 | 
						|
      "compress_method":"none",
 | 
						|
      "comment":"kk contains c2/c3",
 | 
						|
      "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 21   ***************
 | 
						|
create index index_i7 on index_t1(C2, C3) storing(C4);
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"index_i7",
 | 
						|
      "table_name":"index_t1",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "index_columns": [
 | 
						|
       {
 | 
						|
        "column_name":"C2",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      },
 | 
						|
       {
 | 
						|
        "column_name":"C3",
 | 
						|
        "prefix_len":0,
 | 
						|
        "order_type":0,
 | 
						|
        "column_id":-1
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "fulltext_columns": [
 | 
						|
    ],
 | 
						|
    "store_columns": [
 | 
						|
      "C4"
 | 
						|
    ],
 | 
						|
    "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":19,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":0,
 | 
						|
            "column_id":17,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":18,
 | 
						|
            "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
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":3
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 22   ***************
 | 
						|
drop index index_ia1 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_ia1",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 23   ***************
 | 
						|
drop index index_ia2 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_ia2",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 24   ***************
 | 
						|
drop index index_ia3 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_ia3",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 25   ***************
 | 
						|
drop index index_ia4 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_ia4",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 26   ***************
 | 
						|
drop index index_ib1 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_ib1",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 27   ***************
 | 
						|
drop index index_ib2 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_ib2",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 28   ***************
 | 
						|
drop index index_i1 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i1",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 29   ***************
 | 
						|
drop index index_i2 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i2",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 30   ***************
 | 
						|
drop index index_i3 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i3",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 31   ***************
 | 
						|
drop index index_i4 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i4",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 32   ***************
 | 
						|
drop index index_i5 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i5",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 33   ***************
 | 
						|
drop index index_i6 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i6",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 34   ***************
 | 
						|
drop index index_i7 on index_t1;
 | 
						|
{
 | 
						|
  "stmt_type":24,
 | 
						|
  "drop_index_arg": {
 | 
						|
    "tenant_id":1,
 | 
						|
    "index_name":"index_i7",
 | 
						|
    "table_name":"index_t1",
 | 
						|
    "database_name":"index_db",
 | 
						|
    "index_action_type":3,
 | 
						|
    "to_recyclebin":false
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 35   ***************
 | 
						|
create index test_idx3 on test (c1, c3(0));
 | 
						|
***************   Case 36   ***************
 | 
						|
create index test_idx3 on test (xx(0));
 | 
						|
***************   Case 37   ***************
 | 
						|
create index test_idx4 using btree on test(c1) using hash;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"test_idx4",
 | 
						|
      "table_name":"test",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":3,
 | 
						|
    "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":1,
 | 
						|
    "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":18,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":3,
 | 
						|
      "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":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": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 38   ***************
 | 
						|
create unique index test_uidx4 using btree on test(c1) using hash;
 | 
						|
{
 | 
						|
  "stmt_type":23,
 | 
						|
  "create_index_arg": {
 | 
						|
    "index_arg": {
 | 
						|
      "tenant_id":1,
 | 
						|
      "session_id":-1,
 | 
						|
      "index_name":"test_uidx4",
 | 
						|
      "table_name":"test",
 | 
						|
      "database_name":"index_db",
 | 
						|
      "index_action_type":2
 | 
						|
    },
 | 
						|
    "index_type":4,
 | 
						|
    "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":1,
 | 
						|
    "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":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":32785,
 | 
						|
      "max_used_constraint_id":0,
 | 
						|
      "sess_active_time":0,
 | 
						|
      "rowkey_column_num":4,
 | 
						|
      "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":16,
 | 
						|
            "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
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":0,
 | 
						|
            "column_id":32784,
 | 
						|
            "type": {
 | 
						|
              "type":"INT",
 | 
						|
              "collation":"binary",
 | 
						|
              "coercibility":"NUMERIC"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          },
 | 
						|
           {
 | 
						|
            "length":50,
 | 
						|
            "column_id":32785,
 | 
						|
            "type": {
 | 
						|
              "type":"VARCHAR",
 | 
						|
              "collation":"utf8mb4_general_ci",
 | 
						|
              "coercibility":"INVALID"
 | 
						|
            },
 | 
						|
            "order":0,
 | 
						|
            "fulltext_flag":false
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "capacity":4
 | 
						|
      },
 | 
						|
      "partition_key_info": {
 | 
						|
        "columns":null,
 | 
						|
        "capacity":0
 | 
						|
      },
 | 
						|
      "aux_vp_tid_array": [
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
***************   Case 39   ***************
 | 
						|
drop database index_db;
 | 
						|
{
 | 
						|
  "drop_database_arg":"tenant_id",
 | 
						|
  "database_name":"index_db",
 | 
						|
  "if_exist":false,
 | 
						|
  "to_recyclebin":false
 | 
						|
}
 |