mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 12:44:10 +00:00
Expose live compaction tasks through the datanode inspection path with node pruning, lazy projected batches, and residual SQL filtering. Reuse inspection request and plan helpers across compaction and SST tables. Cover routing, projection, predicates, and lifecycle behavior in datanode, standalone and distributed integration, and SQL tests. Use the production information extension in the standalone test fixture. Signed-off-by: WenyXu <wenymedia@gmail.com>
219 lines
12 KiB
Plaintext
219 lines
12 KiB
Plaintext
SHOW DATABASES;
|
|
|
|
+--------------------+
|
|
| Database |
|
|
+--------------------+
|
|
| greptime_private |
|
|
| information_schema |
|
|
| public |
|
|
+--------------------+
|
|
|
|
SHOW FULL DATABASES;
|
|
|
|
+--------------------+---------+
|
|
| Database | Options |
|
|
+--------------------+---------+
|
|
| greptime_private | |
|
|
| information_schema | |
|
|
| public | |
|
|
+--------------------+---------+
|
|
|
|
USE information_schema;
|
|
|
|
Affected Rows: 0
|
|
|
|
SHOW TABLES;
|
|
|
|
+---------------------------------------+
|
|
| Tables_in_information_schema |
|
|
+---------------------------------------+
|
|
| build_info |
|
|
| character_sets |
|
|
| check_constraints |
|
|
| cluster_info |
|
|
| collation_character_set_applicability |
|
|
| collations |
|
|
| column_privileges |
|
|
| column_statistics |
|
|
| columns |
|
|
| compaction_tasks |
|
|
| engines |
|
|
| events |
|
|
| files |
|
|
| flow_statistics |
|
|
| flows |
|
|
| global_status |
|
|
| key_column_usage |
|
|
| optimizer_trace |
|
|
| parameters |
|
|
| partitions |
|
|
| plugins |
|
|
| procedure_info |
|
|
| process_list |
|
|
| processlist |
|
|
| profiling |
|
|
| referential_constraints |
|
|
| region_info |
|
|
| region_peers |
|
|
| region_statistics |
|
|
| routines |
|
|
| schema_privileges |
|
|
| schemata |
|
|
| session_status |
|
|
| ssts_index_meta |
|
|
| ssts_manifest |
|
|
| ssts_storage |
|
|
| statistics |
|
|
| table_constraints |
|
|
| table_privileges |
|
|
| table_semantics |
|
|
| tables |
|
|
| user_privileges |
|
|
| views |
|
|
+---------------------------------------+
|
|
|
|
SHOW TABLES LIKE 'tables';
|
|
|
|
+------------------------------+
|
|
| Tables_in_information_schema |
|
|
+------------------------------+
|
|
| tables |
|
|
+------------------------------+
|
|
|
|
SHOW FULL TABLES;
|
|
|
|
+---------------------------------------+-----------------+
|
|
| Tables_in_information_schema | Table_type |
|
|
+---------------------------------------+-----------------+
|
|
| build_info | LOCAL TEMPORARY |
|
|
| character_sets | LOCAL TEMPORARY |
|
|
| check_constraints | LOCAL TEMPORARY |
|
|
| cluster_info | LOCAL TEMPORARY |
|
|
| collation_character_set_applicability | LOCAL TEMPORARY |
|
|
| collations | LOCAL TEMPORARY |
|
|
| column_privileges | LOCAL TEMPORARY |
|
|
| column_statistics | LOCAL TEMPORARY |
|
|
| columns | LOCAL TEMPORARY |
|
|
| compaction_tasks | LOCAL TEMPORARY |
|
|
| engines | LOCAL TEMPORARY |
|
|
| events | LOCAL TEMPORARY |
|
|
| files | LOCAL TEMPORARY |
|
|
| flow_statistics | LOCAL TEMPORARY |
|
|
| flows | LOCAL TEMPORARY |
|
|
| global_status | LOCAL TEMPORARY |
|
|
| key_column_usage | LOCAL TEMPORARY |
|
|
| optimizer_trace | LOCAL TEMPORARY |
|
|
| parameters | LOCAL TEMPORARY |
|
|
| partitions | LOCAL TEMPORARY |
|
|
| plugins | LOCAL TEMPORARY |
|
|
| procedure_info | LOCAL TEMPORARY |
|
|
| process_list | LOCAL TEMPORARY |
|
|
| processlist | LOCAL TEMPORARY |
|
|
| profiling | LOCAL TEMPORARY |
|
|
| referential_constraints | LOCAL TEMPORARY |
|
|
| region_info | LOCAL TEMPORARY |
|
|
| region_peers | LOCAL TEMPORARY |
|
|
| region_statistics | LOCAL TEMPORARY |
|
|
| routines | LOCAL TEMPORARY |
|
|
| schema_privileges | LOCAL TEMPORARY |
|
|
| schemata | LOCAL TEMPORARY |
|
|
| session_status | LOCAL TEMPORARY |
|
|
| ssts_index_meta | LOCAL TEMPORARY |
|
|
| ssts_manifest | LOCAL TEMPORARY |
|
|
| ssts_storage | LOCAL TEMPORARY |
|
|
| statistics | LOCAL TEMPORARY |
|
|
| table_constraints | LOCAL TEMPORARY |
|
|
| table_privileges | LOCAL TEMPORARY |
|
|
| table_semantics | LOCAL TEMPORARY |
|
|
| tables | LOCAL TEMPORARY |
|
|
| user_privileges | LOCAL TEMPORARY |
|
|
| views | LOCAL TEMPORARY |
|
|
+---------------------------------------+-----------------+
|
|
|
|
-- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) DATETIME
|
|
-- SQLNESS REPLACE [\u0020\-]+
|
|
SHOW TABLE STATUS;
|
|
|
|
+++++++++++++++++++
|
|
|Name|Engine|Version|Row_format|Rows|Avg_row_length|Data_length|Max_data_length|Index_length|Data_free|Auto_increment|Create_time|Update_time|Check_time|Collation|Checksum|Create_options|Comment|
|
|
+++++++++++++++++++
|
|
|build_info||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=public_global||
|
|
|character_sets||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=public_global||
|
|
|check_constraints||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|cluster_info||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|collation_character_set_applicability||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=public_global||
|
|
|collations||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=public_global||
|
|
|column_privileges||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|column_statistics||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|columns||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|compaction_tasks||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|engines||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=public_global||
|
|
|events||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|files||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|flow_statistics||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|flows||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|global_status||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|key_column_usage||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|optimizer_trace||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|parameters||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|partitions||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|plugins||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|procedure_info||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|process_list||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|processlist||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|profiling||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|referential_constraints||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|region_info||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|region_peers||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|region_statistics||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|routines||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|schema_privileges||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|schemata||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|session_status||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|ssts_index_meta||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|ssts_manifest||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|ssts_storage||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|statistics||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|table_constraints||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|table_privileges||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|table_semantics||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|tables||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
|user_privileges||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=global||
|
|
|views||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
+++++++++++++++++++
|
|
|
|
-- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) DATETIME
|
|
-- SQLNESS REPLACE [\u0020\-]+
|
|
SHOW TABLE STATUS LIKE 'tables';
|
|
|
|
+++++++++++++++++++
|
|
|Name|Engine|Version|Row_format|Rows|Avg_row_length|Data_length|Max_data_length|Index_length|Data_free|Auto_increment|Create_time|Update_time|Check_time|Collation|Checksum|Create_options|Comment|
|
|
+++++++++++++++++++
|
|
|tables||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
+++++++++++++++++++
|
|
|
|
-- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) DATETIME
|
|
-- SQLNESS REPLACE [\u0020\-]+
|
|
SHOW TABLE STATUS WHERE Name = 'tables';
|
|
|
|
+++++++++++++++++++
|
|
|Name|Engine|Version|Row_format|Rows|Avg_row_length|Data_length|Max_data_length|Index_length|Data_free|Auto_increment|Create_time|Update_time|Check_time|Collation|Checksum|Create_options|Comment|
|
|
+++++++++++++++++++
|
|
|tables||11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|greptime.semantic.table_scope=catalog||
|
|
+++++++++++++++++++
|
|
|
|
-- SQLNESS REPLACE (\s[\-0-9T:\.]{15,}) DATETIME
|
|
-- SQLNESS REPLACE [\u0020\-]+
|
|
SHOW TABLE STATUS from public;
|
|
|
|
+++++++++++++++++++
|
|
|Name|Engine|Version|Row_format|Rows|Avg_row_length|Data_length|Max_data_length|Index_length|Data_free|Auto_increment|Create_time|Update_time|Check_time|Collation|Checksum|Create_options|Comment|
|
|
+++++++++++++++++++
|
|
|numbers|test_engine|11|Fixed|0|0|0|0|0|0|0|DATETIME|DATETIME||utf8_bin|0|||
|
|
+++++++++++++++++++
|
|
|
|
USE public;
|
|
|
|
Affected Rows: 0
|
|
|