placehold about compressible tmp file
This commit is contained in:
parent
69b60bf921
commit
83215297ae
@ -194,6 +194,7 @@ enum TmpFileOp {
|
||||
WRITE,
|
||||
READ,
|
||||
TRUNCATE,
|
||||
SEAL,
|
||||
OP_MAX
|
||||
};
|
||||
|
||||
|
@ -215,6 +215,10 @@ int ObAllVirtualTmpFileInfo::fill_columns_(tmp_file::ObTmpFileInfo *tmp_file_inf
|
||||
}
|
||||
}
|
||||
break;
|
||||
case TYPE:
|
||||
break;
|
||||
case COMPRESSIBLE_FD:
|
||||
break;
|
||||
default:
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
SERVER_LOG(WARN, "invalid column_id", KR(ret), K(col_id));
|
||||
|
@ -78,6 +78,8 @@ private:
|
||||
CACHED_META_PAGE_NUM,
|
||||
WRITE_BACK_META_PAGE_NUM,
|
||||
PAGE_FLUSH_CNT,
|
||||
TYPE,
|
||||
COMPRESSIBLE_FD,
|
||||
};
|
||||
static const int64_t OB_MAX_FILE_LABEL_SIZE = tmp_file::ObTmpFileGlobal::TMP_FILE_MAX_LABEL_SIZE + 1;
|
||||
char ip_buffer_[common::OB_IP_STR_BUFF];
|
||||
|
@ -1626,6 +1626,36 @@ int ObInnerTableSchema::all_virtual_temp_file_schema(ObTableSchema &table_schema
|
||||
false, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ADD_COLUMN_SCHEMA("type", //column_name
|
||||
++column_id, //column_id
|
||||
0, //rowkey_id
|
||||
0, //index_id
|
||||
0, //part_key_pos
|
||||
ObIntType, //column_type
|
||||
CS_TYPE_INVALID, //column_collation_type
|
||||
sizeof(int64_t), //column_length
|
||||
-1, //column_precision
|
||||
-1, //column_scale
|
||||
false, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ADD_COLUMN_SCHEMA("compressible_fd", //column_name
|
||||
++column_id, //column_id
|
||||
0, //rowkey_id
|
||||
0, //index_id
|
||||
0, //part_key_pos
|
||||
ObIntType, //column_type
|
||||
CS_TYPE_INVALID, //column_collation_type
|
||||
sizeof(int64_t), //column_length
|
||||
-1, //column_precision
|
||||
-1, //column_scale
|
||||
false, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
table_schema.get_part_option().set_part_num(1);
|
||||
table_schema.set_part_level(PARTITION_LEVEL_ONE);
|
||||
|
@ -6968,6 +6968,36 @@ int ObInnerTableSchema::all_virtual_temp_file_ora_schema(ObTableSchema &table_sc
|
||||
false, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ADD_COLUMN_SCHEMA("TYPE", //column_name
|
||||
++column_id, //column_id
|
||||
0, //rowkey_id
|
||||
0, //index_id
|
||||
0, //part_key_pos
|
||||
ObNumberType, //column_type
|
||||
CS_TYPE_INVALID, //column_collation_type
|
||||
38, //column_length
|
||||
38, //column_precision
|
||||
0, //column_scale
|
||||
false, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
ADD_COLUMN_SCHEMA("COMPRESSIBLE_FD", //column_name
|
||||
++column_id, //column_id
|
||||
0, //rowkey_id
|
||||
0, //index_id
|
||||
0, //part_key_pos
|
||||
ObNumberType, //column_type
|
||||
CS_TYPE_INVALID, //column_collation_type
|
||||
38, //column_length
|
||||
38, //column_precision
|
||||
0, //column_scale
|
||||
false, //is_nullable
|
||||
false); //is_autoincrement
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
table_schema.get_part_option().set_part_num(1);
|
||||
table_schema.set_part_level(PARTITION_LEVEL_ONE);
|
||||
|
@ -15696,6 +15696,8 @@ def_table_schema(
|
||||
('cached_meta_page_num', 'int'),
|
||||
('write_back_meta_page_num', 'int'),
|
||||
('page_flush_cnt', 'int'),
|
||||
('type', 'int'),
|
||||
('compressible_fd', 'int'),
|
||||
],
|
||||
partition_columns = ['svr_ip', 'svr_port'],
|
||||
vtable_route_policy = 'distributed',
|
||||
|
@ -5618,6 +5618,8 @@ meta_bytes bigint(20) NO NULL
|
||||
cached_meta_page_num bigint(20) NO NULL
|
||||
write_back_meta_page_num bigint(20) NO NULL
|
||||
page_flush_cnt bigint(20) NO NULL
|
||||
type bigint(20) NO NULL
|
||||
compressible_fd bigint(20) NO NULL
|
||||
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_temp_file;
|
||||
IF(count(*) >= 0, 1, 0)
|
||||
1
|
||||
|
@ -10444,6 +10444,8 @@ meta_bytes bigint(20) NO NULL
|
||||
cached_meta_page_num bigint(20) NO NULL
|
||||
write_back_meta_page_num bigint(20) NO NULL
|
||||
page_flush_cnt bigint(20) NO NULL
|
||||
type bigint(20) NO NULL
|
||||
compressible_fd bigint(20) NO NULL
|
||||
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_temp_file;
|
||||
IF(count(*) >= 0, 1, 0)
|
||||
1
|
||||
|
Loading…
x
Reference in New Issue
Block a user