diff --git a/Cargo.lock b/Cargo.lock index c313dbd558bb..e4f36669e8f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1290,6 +1290,7 @@ dependencies = [ "serde_json", "session", "snafu", + "sql", "store-api", "table", "tokio", diff --git a/src/catalog/Cargo.toml b/src/catalog/Cargo.toml index 1c0a9a9b170b..ff57e0cb0add 100644 --- a/src/catalog/Cargo.toml +++ b/src/catalog/Cargo.toml @@ -40,6 +40,7 @@ prometheus.workspace = true serde_json.workspace = true session.workspace = true snafu.workspace = true +sql.workspace = true store-api.workspace = true table.workspace = true tokio.workspace = true diff --git a/src/catalog/src/information_schema/columns.rs b/src/catalog/src/information_schema/columns.rs index 8b25ad08ddbf..ef355585733d 100644 --- a/src/catalog/src/information_schema/columns.rs +++ b/src/catalog/src/information_schema/columns.rs @@ -26,13 +26,16 @@ use common_recordbatch::{RecordBatch, SendableRecordBatchStream}; use datafusion::physical_plan::stream::RecordBatchStreamAdapter as DfRecordBatchStreamAdapter; use datafusion::physical_plan::streaming::PartitionStream as DfPartitionStream; use datafusion::physical_plan::SendableRecordBatchStream as DfSendableRecordBatchStream; -use datatypes::prelude::{ConcreteDataType, DataType}; +use datatypes::prelude::{ConcreteDataType, DataType, MutableVector}; use datatypes::scalars::ScalarVectorBuilder; use datatypes::schema::{ColumnSchema, Schema, SchemaRef}; use datatypes::value::Value; -use datatypes::vectors::{StringVectorBuilder, VectorRef}; +use datatypes::vectors::{ + ConstantVector, Int64Vector, Int64VectorBuilder, StringVector, StringVectorBuilder, VectorRef, +}; use futures::TryStreamExt; use snafu::{OptionExt, ResultExt}; +use sql::statements; use store_api::storage::{ScanRequest, TableId}; use super::{InformationTable, COLUMNS}; @@ -52,14 +55,38 @@ pub const TABLE_CATALOG: &str = "table_catalog"; pub const TABLE_SCHEMA: &str = "table_schema"; pub const TABLE_NAME: &str = "table_name"; pub const COLUMN_NAME: &str = "column_name"; +const ORDINAL_POSITION: &str = "ordinal_position"; +const CHARACTER_MAXIMUM_LENGTH: &str = "character_maximum_length"; +const CHARACTER_OCTET_LENGTH: &str = "character_octet_length"; +const NUMERIC_PRECISION: &str = "numeric_precision"; +const NUMERIC_SCALE: &str = "numeric_scale"; +const DATETIME_PRECISION: &str = "datetime_precision"; +const CHARACTER_SET_NAME: &str = "character_set_name"; +pub const COLLATION_NAME: &str = "collation_name"; +pub const COLUMN_KEY: &str = "column_key"; +pub const EXTRA: &str = "extra"; +pub const PRIVILEGES: &str = "privileges"; +const GENERATION_EXPRESSION: &str = "generation_expression"; +// Extension field to keep greptime data type name +pub const GREPTIME_DATA_TYPE: &str = "greptime_data_type"; pub const DATA_TYPE: &str = "data_type"; pub const SEMANTIC_TYPE: &str = "semantic_type"; pub const COLUMN_DEFAULT: &str = "column_default"; pub const IS_NULLABLE: &str = "is_nullable"; const COLUMN_TYPE: &str = "column_type"; pub const COLUMN_COMMENT: &str = "column_comment"; +const SRS_ID: &str = "srs_id"; const INIT_CAPACITY: usize = 42; +// The maximum length of string type +const MAX_STRING_LENGTH: i64 = 2147483647; +const UTF8_CHARSET_NAME: &str = "utf8"; +const UTF8_COLLATE_NAME: &str = "utf8_bin"; +const PRI_COLUMN_KEY: &str = "PRI"; +const TIME_INDEX_COLUMN_KEY: &str = "TIME INDEX"; +const DEFAULT_PRIVILEGES: &str = "select,insert"; +const EMPTY_STR: &str = ""; + impl InformationSchemaColumns { pub(super) fn new(catalog_name: String, catalog_manager: Weak) -> Self { Self { @@ -75,12 +102,46 @@ impl InformationSchemaColumns { ColumnSchema::new(TABLE_SCHEMA, ConcreteDataType::string_datatype(), false), ColumnSchema::new(TABLE_NAME, ConcreteDataType::string_datatype(), false), ColumnSchema::new(COLUMN_NAME, ConcreteDataType::string_datatype(), false), + ColumnSchema::new(ORDINAL_POSITION, ConcreteDataType::int64_datatype(), false), + ColumnSchema::new( + CHARACTER_MAXIMUM_LENGTH, + ConcreteDataType::int64_datatype(), + true, + ), + ColumnSchema::new( + CHARACTER_OCTET_LENGTH, + ConcreteDataType::int64_datatype(), + true, + ), + ColumnSchema::new(NUMERIC_PRECISION, ConcreteDataType::int64_datatype(), true), + ColumnSchema::new(NUMERIC_SCALE, ConcreteDataType::int64_datatype(), true), + ColumnSchema::new(DATETIME_PRECISION, ConcreteDataType::int64_datatype(), true), + ColumnSchema::new( + CHARACTER_SET_NAME, + ConcreteDataType::string_datatype(), + true, + ), + ColumnSchema::new(COLLATION_NAME, ConcreteDataType::string_datatype(), true), + ColumnSchema::new(COLUMN_KEY, ConcreteDataType::string_datatype(), false), + ColumnSchema::new(EXTRA, ConcreteDataType::string_datatype(), false), + ColumnSchema::new(PRIVILEGES, ConcreteDataType::string_datatype(), false), + ColumnSchema::new( + GENERATION_EXPRESSION, + ConcreteDataType::string_datatype(), + false, + ), + ColumnSchema::new( + GREPTIME_DATA_TYPE, + ConcreteDataType::string_datatype(), + false, + ), ColumnSchema::new(DATA_TYPE, ConcreteDataType::string_datatype(), false), ColumnSchema::new(SEMANTIC_TYPE, ConcreteDataType::string_datatype(), false), ColumnSchema::new(COLUMN_DEFAULT, ConcreteDataType::string_datatype(), true), ColumnSchema::new(IS_NULLABLE, ConcreteDataType::string_datatype(), false), ColumnSchema::new(COLUMN_TYPE, ConcreteDataType::string_datatype(), false), ColumnSchema::new(COLUMN_COMMENT, ConcreteDataType::string_datatype(), true), + ColumnSchema::new(SRS_ID, ConcreteDataType::int64_datatype(), true), ])) } @@ -136,9 +197,18 @@ struct InformationSchemaColumnsBuilder { schema_names: StringVectorBuilder, table_names: StringVectorBuilder, column_names: StringVectorBuilder, + ordinal_positions: Int64VectorBuilder, + character_maximum_lengths: Int64VectorBuilder, + character_octet_lengths: Int64VectorBuilder, + numeric_precisions: Int64VectorBuilder, + numeric_scales: Int64VectorBuilder, + datetime_precisions: Int64VectorBuilder, + character_set_names: StringVectorBuilder, + collation_names: StringVectorBuilder, + column_keys: StringVectorBuilder, + greptime_data_types: StringVectorBuilder, data_types: StringVectorBuilder, semantic_types: StringVectorBuilder, - column_defaults: StringVectorBuilder, is_nullables: StringVectorBuilder, column_types: StringVectorBuilder, @@ -159,6 +229,16 @@ impl InformationSchemaColumnsBuilder { schema_names: StringVectorBuilder::with_capacity(INIT_CAPACITY), table_names: StringVectorBuilder::with_capacity(INIT_CAPACITY), column_names: StringVectorBuilder::with_capacity(INIT_CAPACITY), + ordinal_positions: Int64VectorBuilder::with_capacity(INIT_CAPACITY), + character_maximum_lengths: Int64VectorBuilder::with_capacity(INIT_CAPACITY), + character_octet_lengths: Int64VectorBuilder::with_capacity(INIT_CAPACITY), + numeric_precisions: Int64VectorBuilder::with_capacity(INIT_CAPACITY), + numeric_scales: Int64VectorBuilder::with_capacity(INIT_CAPACITY), + datetime_precisions: Int64VectorBuilder::with_capacity(INIT_CAPACITY), + character_set_names: StringVectorBuilder::with_capacity(INIT_CAPACITY), + collation_names: StringVectorBuilder::with_capacity(INIT_CAPACITY), + column_keys: StringVectorBuilder::with_capacity(INIT_CAPACITY), + greptime_data_types: StringVectorBuilder::with_capacity(INIT_CAPACITY), data_types: StringVectorBuilder::with_capacity(INIT_CAPACITY), semantic_types: StringVectorBuilder::with_capacity(INIT_CAPACITY), column_defaults: StringVectorBuilder::with_capacity(INIT_CAPACITY), @@ -194,6 +274,7 @@ impl InformationSchemaColumnsBuilder { }; self.add_column( + idx, &predicates, &catalog_name, &schema_name, @@ -208,8 +289,10 @@ impl InformationSchemaColumnsBuilder { self.finish() } + #[allow(clippy::too_many_arguments)] fn add_column( &mut self, + index: usize, predicates: &Predicates, catalog_name: &str, schema_name: &str, @@ -217,7 +300,16 @@ impl InformationSchemaColumnsBuilder { semantic_type: &str, column_schema: &ColumnSchema, ) { - let data_type = &column_schema.data_type.name(); + // Use sql data type name + let data_type = statements::concrete_data_type_to_sql_data_type(&column_schema.data_type) + .map(|dt| dt.to_string().to_lowercase()) + .unwrap_or_else(|_| column_schema.data_type.name()); + + let column_key = match semantic_type { + SEMANTIC_TYPE_PRIMARY_KEY => PRI_COLUMN_KEY, + SEMANTIC_TYPE_TIME_INDEX => TIME_INDEX_COLUMN_KEY, + _ => EMPTY_STR, + }; let row = [ (TABLE_CATALOG, &Value::from(catalog_name)), @@ -226,6 +318,8 @@ impl InformationSchemaColumnsBuilder { (COLUMN_NAME, &Value::from(column_schema.name.as_str())), (DATA_TYPE, &Value::from(data_type.as_str())), (SEMANTIC_TYPE, &Value::from(semantic_type)), + (ORDINAL_POSITION, &Value::from((index + 1) as i64)), + (COLUMN_KEY, &Value::from(column_key)), ]; if !predicates.eval(&row) { @@ -236,7 +330,63 @@ impl InformationSchemaColumnsBuilder { self.schema_names.push(Some(schema_name)); self.table_names.push(Some(table_name)); self.column_names.push(Some(&column_schema.name)); - self.data_types.push(Some(data_type)); + // Starts from 1 + self.ordinal_positions.push(Some((index + 1) as i64)); + + if column_schema.data_type.is_string() { + self.character_maximum_lengths.push(Some(MAX_STRING_LENGTH)); + self.character_octet_lengths.push(Some(MAX_STRING_LENGTH)); + self.numeric_precisions.push(None); + self.numeric_scales.push(None); + self.datetime_precisions.push(None); + self.character_set_names.push(Some(UTF8_CHARSET_NAME)); + self.collation_names.push(Some(UTF8_COLLATE_NAME)); + } else if column_schema.data_type.is_numeric() || column_schema.data_type.is_decimal() { + self.character_maximum_lengths.push(None); + self.character_octet_lengths.push(None); + + self.numeric_precisions.push( + column_schema + .data_type + .numeric_precision() + .map(|x| x as i64), + ); + self.numeric_scales + .push(column_schema.data_type.numeric_scale().map(|x| x as i64)); + + self.datetime_precisions.push(None); + self.character_set_names.push(None); + self.collation_names.push(None); + } else { + self.character_maximum_lengths.push(None); + self.character_octet_lengths.push(None); + self.numeric_precisions.push(None); + self.numeric_scales.push(None); + + match &column_schema.data_type { + ConcreteDataType::DateTime(datetime_type) => { + self.datetime_precisions + .push(Some(datetime_type.precision() as i64)); + } + ConcreteDataType::Timestamp(ts_type) => { + self.datetime_precisions + .push(Some(ts_type.precision() as i64)); + } + ConcreteDataType::Time(time_type) => { + self.datetime_precisions + .push(Some(time_type.precision() as i64)); + } + _ => self.datetime_precisions.push(None), + } + + self.character_set_names.push(None); + self.collation_names.push(None); + } + + self.column_keys.push(Some(column_key)); + self.greptime_data_types + .push(Some(&column_schema.data_type.name())); + self.data_types.push(Some(&data_type)); self.semantic_types.push(Some(semantic_type)); self.column_defaults.push( column_schema @@ -249,23 +399,52 @@ impl InformationSchemaColumnsBuilder { } else { self.is_nullables.push(Some("No")); } - self.column_types.push(Some(data_type)); + self.column_types.push(Some(&data_type)); self.column_comments .push(column_schema.column_comment().map(|x| x.as_ref())); } fn finish(&mut self) -> Result { + let rows_num = self.collation_names.len(); + + let privileges = Arc::new(ConstantVector::new( + Arc::new(StringVector::from(vec![DEFAULT_PRIVILEGES])), + rows_num, + )); + let empty_string = Arc::new(ConstantVector::new( + Arc::new(StringVector::from(vec![EMPTY_STR])), + rows_num, + )); + let srs_ids = Arc::new(ConstantVector::new( + Arc::new(Int64Vector::from(vec![None])), + rows_num, + )); + let columns: Vec = vec![ Arc::new(self.catalog_names.finish()), Arc::new(self.schema_names.finish()), Arc::new(self.table_names.finish()), Arc::new(self.column_names.finish()), + Arc::new(self.ordinal_positions.finish()), + Arc::new(self.character_maximum_lengths.finish()), + Arc::new(self.character_octet_lengths.finish()), + Arc::new(self.numeric_precisions.finish()), + Arc::new(self.numeric_scales.finish()), + Arc::new(self.datetime_precisions.finish()), + Arc::new(self.character_set_names.finish()), + Arc::new(self.collation_names.finish()), + Arc::new(self.column_keys.finish()), + empty_string.clone(), + privileges, + empty_string, + Arc::new(self.greptime_data_types.finish()), Arc::new(self.data_types.finish()), Arc::new(self.semantic_types.finish()), Arc::new(self.column_defaults.finish()), Arc::new(self.is_nullables.finish()), Arc::new(self.column_types.finish()), Arc::new(self.column_comments.finish()), + srs_ids, ]; RecordBatch::new(self.schema.clone(), columns).context(CreateRecordBatchSnafu) diff --git a/src/datatypes/src/data_type.rs b/src/datatypes/src/data_type.rs index 6f715755e7d5..a73c7df86698 100644 --- a/src/datatypes/src/data_type.rs +++ b/src/datatypes/src/data_type.rs @@ -266,6 +266,38 @@ impl ConcreteDataType { } } + /// Try to get numeric precision, returns `None` if it's not numeric type + pub fn numeric_precision(&self) -> Option { + match self { + ConcreteDataType::Int8(_) | ConcreteDataType::UInt8(_) => Some(3), + ConcreteDataType::Int16(_) | ConcreteDataType::UInt16(_) => Some(5), + ConcreteDataType::Int32(_) | ConcreteDataType::UInt32(_) => Some(10), + ConcreteDataType::Int64(_) => Some(19), + ConcreteDataType::UInt64(_) => Some(20), + ConcreteDataType::Float32(_) => Some(12), + ConcreteDataType::Float64(_) => Some(22), + ConcreteDataType::Decimal128(decimal_type) => Some(decimal_type.precision()), + _ => None, + } + } + + /// Try to get numeric scale, returns `None` if it's float or not numeric type + pub fn numeric_scale(&self) -> Option { + match self { + ConcreteDataType::Int8(_) + | ConcreteDataType::UInt8(_) + | ConcreteDataType::Int16(_) + | ConcreteDataType::UInt16(_) + | ConcreteDataType::Int32(_) + | ConcreteDataType::UInt32(_) + | ConcreteDataType::Int64(_) + | ConcreteDataType::UInt64(_) => Some(0), + ConcreteDataType::Float32(_) | ConcreteDataType::Float64(_) => None, + ConcreteDataType::Decimal128(decimal_type) => Some(decimal_type.scale()), + _ => None, + } + } + /// Try to cast data type as a [`TimeType`]. pub fn as_time(&self) -> Option { match self { diff --git a/src/datatypes/src/types/datetime_type.rs b/src/datatypes/src/types/datetime_type.rs index 699eea3067ea..10e55000c276 100644 --- a/src/datatypes/src/types/datetime_type.rs +++ b/src/datatypes/src/types/datetime_type.rs @@ -23,10 +23,17 @@ use crate::prelude::{LogicalTypeId, MutableVector, ScalarVectorBuilder, Value, V use crate::types::LogicalPrimitiveType; use crate::vectors::{DateTimeVector, DateTimeVectorBuilder, PrimitiveVector}; +const MILLISECOND_VARIATION: u64 = 3; /// Data type for [`DateTime`]. #[derive(Debug, Default, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Serialize, Deserialize)] pub struct DateTimeType; +impl DateTimeType { + pub fn precision(&self) -> u64 { + MILLISECOND_VARIATION + } +} + impl DataType for DateTimeType { fn name(&self) -> String { "DateTime".to_string() diff --git a/src/query/src/sql.rs b/src/query/src/sql.rs index b3a0c4806eaf..645bac9f3158 100644 --- a/src/query/src/sql.rs +++ b/src/query/src/sql.rs @@ -65,6 +65,7 @@ const TABLES_COLUMN: &str = "Tables"; const FIELD_COLUMN: &str = "Field"; const TABLE_TYPE_COLUMN: &str = "Table_type"; const COLUMN_NAME_COLUMN: &str = "Column"; +const COLUMN_GREPTIME_TYPE_COLUMN: &str = "Greptime_type"; const COLUMN_TYPE_COLUMN: &str = "Type"; const COLUMN_KEY_COLUMN: &str = "Key"; const COLUMN_EXTRA_COLUMN: &str = "Extra"; @@ -293,54 +294,28 @@ pub async fn show_columns( query_ctx.current_schema().to_owned() }; - let select = vec![ - // '' as `Extra` - lit("").alias(COLUMN_EXTRA_COLUMN), - // 'select,insert,update,references' as `Privileges` - lit("select,insert,update,references").alias(COLUMN_PRIVILEGES_COLUMN), - // case `datatype` - // when 'String' then 'utf8_bin' - // else NULL - // end - case(col(columns::DATA_TYPE)) - .when(lit("String"), lit("utf8_bin")) - .otherwise(null()) - .context(error::PlanSqlSnafu)? - .alias(COLUMN_COLLATION_COLUMN), - // case `semantic_type` - // when 'TAG' then 'PRI' - // when 'TIMESTAMP' then 'TIME INDEX' - // else '' - // end as `Key` - case(col(columns::SEMANTIC_TYPE)) - .when(lit(SEMANTIC_TYPE_PRIMARY_KEY), lit(PRI_KEY)) - .when(lit(SEMANTIC_TYPE_TIME_INDEX), lit(TIME_INDEX)) - .otherwise(lit("")) - .context(error::PlanSqlSnafu)? - .alias(COLUMN_KEY_COLUMN), - Expr::Wildcard, - ]; - let projects = if stmt.full { vec![ (columns::COLUMN_NAME, FIELD_COLUMN), (columns::DATA_TYPE, COLUMN_TYPE_COLUMN), - (COLUMN_COLLATION_COLUMN, COLUMN_COLLATION_COLUMN), + (columns::COLLATION_NAME, COLUMN_COLLATION_COLUMN), (columns::IS_NULLABLE, COLUMN_NULLABLE_COLUMN), - (COLUMN_KEY_COLUMN, COLUMN_KEY_COLUMN), + (columns::COLUMN_KEY, COLUMN_KEY_COLUMN), (columns::COLUMN_DEFAULT, COLUMN_DEFAULT_COLUMN), (columns::COLUMN_COMMENT, COLUMN_COMMENT_COLUMN), - (COLUMN_PRIVILEGES_COLUMN, COLUMN_PRIVILEGES_COLUMN), - (COLUMN_EXTRA_COLUMN, COLUMN_EXTRA_COLUMN), + (columns::PRIVILEGES, COLUMN_PRIVILEGES_COLUMN), + (columns::EXTRA, COLUMN_EXTRA_COLUMN), + (columns::GREPTIME_DATA_TYPE, COLUMN_GREPTIME_TYPE_COLUMN), ] } else { vec![ (columns::COLUMN_NAME, FIELD_COLUMN), (columns::DATA_TYPE, COLUMN_TYPE_COLUMN), (columns::IS_NULLABLE, COLUMN_NULLABLE_COLUMN), - (COLUMN_KEY_COLUMN, COLUMN_KEY_COLUMN), + (columns::COLUMN_KEY, COLUMN_KEY_COLUMN), (columns::COLUMN_DEFAULT, COLUMN_DEFAULT_COLUMN), - (COLUMN_EXTRA_COLUMN, COLUMN_EXTRA_COLUMN), + (columns::EXTRA, COLUMN_EXTRA_COLUMN), + (columns::GREPTIME_DATA_TYPE, COLUMN_GREPTIME_TYPE_COLUMN), ] }; @@ -357,7 +332,7 @@ pub async fn show_columns( catalog_manager, query_ctx, COLUMNS, - select, + vec![], projects, filters, like_field, diff --git a/tests-fuzz/src/validator/column.rs b/tests-fuzz/src/validator/column.rs index 0736bbb48da4..349057817bf8 100644 --- a/tests-fuzz/src/validator/column.rs +++ b/tests-fuzz/src/validator/column.rs @@ -211,7 +211,7 @@ where for<'c> String: Encode<'c, DB> + Type, for<'c> &'c str: ColumnIndex<::Row>, { - let sql = "SELECT * FROM information_schema.columns WHERE table_schema = ? AND table_name = ?"; + let sql = "SELECT table_schema, table_name, column_name, greptime_data_type as data_type, semantic_type, column_default, is_nullable FROM information_schema.columns WHERE table_schema = ? AND table_name = ?"; sqlx::query_as::<_, ColumnEntry>(sql) .bind(schema_name.value.to_string()) .bind(table_name.value.to_string()) diff --git a/tests-integration/src/tests/instance_test.rs b/tests-integration/src/tests/instance_test.rs index 0c8aeaf09b99..622bb3d861d1 100644 --- a/tests-integration/src/tests/instance_test.rs +++ b/tests-integration/src/tests/instance_test.rs @@ -1897,57 +1897,85 @@ async fn test_information_schema_dot_columns(instance: Arc) { // User can only see information schema under current catalog. // A necessary requirement to GreptimeCloud. - let sql = "select table_catalog, table_schema, table_name, column_name, data_type, semantic_type from information_schema.columns where table_name in ('columns', 'numbers', 'tables', 'another_table') order by table_name"; + let sql = "select table_catalog, table_schema, table_name, column_name, data_type, semantic_type from information_schema.columns where table_name in ('columns', 'numbers', 'tables', 'another_table') order by table_name, column_name"; let output = execute_sql(&instance, sql).await.data; let expected = "\ -+---------------+--------------------+------------+----------------+-----------+---------------+ -| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | -+---------------+--------------------+------------+----------------+-----------+---------------+ -| greptime | information_schema | columns | table_catalog | String | FIELD | -| greptime | information_schema | columns | table_schema | String | FIELD | -| greptime | information_schema | columns | table_name | String | FIELD | -| greptime | information_schema | columns | column_name | String | FIELD | -| greptime | information_schema | columns | data_type | String | FIELD | -| greptime | information_schema | columns | semantic_type | String | FIELD | -| greptime | information_schema | columns | column_default | String | FIELD | -| greptime | information_schema | columns | is_nullable | String | FIELD | -| greptime | information_schema | columns | column_type | String | FIELD | -| greptime | information_schema | columns | column_comment | String | FIELD | -| greptime | public | numbers | number | UInt32 | TAG | -| greptime | information_schema | tables | table_catalog | String | FIELD | -| greptime | information_schema | tables | table_schema | String | FIELD | -| greptime | information_schema | tables | table_name | String | FIELD | -| greptime | information_schema | tables | table_type | String | FIELD | -| greptime | information_schema | tables | table_id | UInt32 | FIELD | -| greptime | information_schema | tables | engine | String | FIELD | -+---------------+--------------------+------------+----------------+-----------+---------------+"; ++---------------+--------------------+------------+--------------------------+--------------+---------------+ +| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | ++---------------+--------------------+------------+--------------------------+--------------+---------------+ +| greptime | information_schema | columns | character_maximum_length | bigint | FIELD | +| greptime | information_schema | columns | character_octet_length | bigint | FIELD | +| greptime | information_schema | columns | character_set_name | string | FIELD | +| greptime | information_schema | columns | collation_name | string | FIELD | +| greptime | information_schema | columns | column_comment | string | FIELD | +| greptime | information_schema | columns | column_default | string | FIELD | +| greptime | information_schema | columns | column_key | string | FIELD | +| greptime | information_schema | columns | column_name | string | FIELD | +| greptime | information_schema | columns | column_type | string | FIELD | +| greptime | information_schema | columns | data_type | string | FIELD | +| greptime | information_schema | columns | datetime_precision | bigint | FIELD | +| greptime | information_schema | columns | extra | string | FIELD | +| greptime | information_schema | columns | generation_expression | string | FIELD | +| greptime | information_schema | columns | greptime_data_type | string | FIELD | +| greptime | information_schema | columns | is_nullable | string | FIELD | +| greptime | information_schema | columns | numeric_precision | bigint | FIELD | +| greptime | information_schema | columns | numeric_scale | bigint | FIELD | +| greptime | information_schema | columns | ordinal_position | bigint | FIELD | +| greptime | information_schema | columns | privileges | string | FIELD | +| greptime | information_schema | columns | semantic_type | string | FIELD | +| greptime | information_schema | columns | srs_id | bigint | FIELD | +| greptime | information_schema | columns | table_catalog | string | FIELD | +| greptime | information_schema | columns | table_name | string | FIELD | +| greptime | information_schema | columns | table_schema | string | FIELD | +| greptime | public | numbers | number | int unsigned | TAG | +| greptime | information_schema | tables | engine | string | FIELD | +| greptime | information_schema | tables | table_catalog | string | FIELD | +| greptime | information_schema | tables | table_id | int unsigned | FIELD | +| greptime | information_schema | tables | table_name | string | FIELD | +| greptime | information_schema | tables | table_schema | string | FIELD | +| greptime | information_schema | tables | table_type | string | FIELD | ++---------------+--------------------+------------+--------------------------+--------------+---------------+"; check_output_stream(output, expected).await; let output = execute_sql_with(&instance, sql, query_ctx).await.data; let expected = "\ -+-----------------+--------------------+---------------+----------------+----------------------+---------------+ -| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | -+-----------------+--------------------+---------------+----------------+----------------------+---------------+ -| another_catalog | another_schema | another_table | i | TimestampMillisecond | TIMESTAMP | -| another_catalog | information_schema | columns | table_catalog | String | FIELD | -| another_catalog | information_schema | columns | table_schema | String | FIELD | -| another_catalog | information_schema | columns | table_name | String | FIELD | -| another_catalog | information_schema | columns | column_name | String | FIELD | -| another_catalog | information_schema | columns | data_type | String | FIELD | -| another_catalog | information_schema | columns | semantic_type | String | FIELD | -| another_catalog | information_schema | columns | column_default | String | FIELD | -| another_catalog | information_schema | columns | is_nullable | String | FIELD | -| another_catalog | information_schema | columns | column_type | String | FIELD | -| another_catalog | information_schema | columns | column_comment | String | FIELD | -| another_catalog | information_schema | tables | table_catalog | String | FIELD | -| another_catalog | information_schema | tables | table_schema | String | FIELD | -| another_catalog | information_schema | tables | table_name | String | FIELD | -| another_catalog | information_schema | tables | table_type | String | FIELD | -| another_catalog | information_schema | tables | table_id | UInt32 | FIELD | -| another_catalog | information_schema | tables | engine | String | FIELD | -+-----------------+--------------------+---------------+----------------+----------------------+---------------+"; ++-----------------+--------------------+---------------+--------------------------+--------------+---------------+ +| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | ++-----------------+--------------------+---------------+--------------------------+--------------+---------------+ +| another_catalog | another_schema | another_table | i | timestamp(3) | TIMESTAMP | +| another_catalog | information_schema | columns | character_maximum_length | bigint | FIELD | +| another_catalog | information_schema | columns | character_octet_length | bigint | FIELD | +| another_catalog | information_schema | columns | character_set_name | string | FIELD | +| another_catalog | information_schema | columns | collation_name | string | FIELD | +| another_catalog | information_schema | columns | column_comment | string | FIELD | +| another_catalog | information_schema | columns | column_default | string | FIELD | +| another_catalog | information_schema | columns | column_key | string | FIELD | +| another_catalog | information_schema | columns | column_name | string | FIELD | +| another_catalog | information_schema | columns | column_type | string | FIELD | +| another_catalog | information_schema | columns | data_type | string | FIELD | +| another_catalog | information_schema | columns | datetime_precision | bigint | FIELD | +| another_catalog | information_schema | columns | extra | string | FIELD | +| another_catalog | information_schema | columns | generation_expression | string | FIELD | +| another_catalog | information_schema | columns | greptime_data_type | string | FIELD | +| another_catalog | information_schema | columns | is_nullable | string | FIELD | +| another_catalog | information_schema | columns | numeric_precision | bigint | FIELD | +| another_catalog | information_schema | columns | numeric_scale | bigint | FIELD | +| another_catalog | information_schema | columns | ordinal_position | bigint | FIELD | +| another_catalog | information_schema | columns | privileges | string | FIELD | +| another_catalog | information_schema | columns | semantic_type | string | FIELD | +| another_catalog | information_schema | columns | srs_id | bigint | FIELD | +| another_catalog | information_schema | columns | table_catalog | string | FIELD | +| another_catalog | information_schema | columns | table_name | string | FIELD | +| another_catalog | information_schema | columns | table_schema | string | FIELD | +| another_catalog | information_schema | tables | engine | string | FIELD | +| another_catalog | information_schema | tables | table_catalog | string | FIELD | +| another_catalog | information_schema | tables | table_id | int unsigned | FIELD | +| another_catalog | information_schema | tables | table_name | string | FIELD | +| another_catalog | information_schema | tables | table_schema | string | FIELD | +| another_catalog | information_schema | tables | table_type | string | FIELD | ++-----------------+--------------------+---------------+--------------------------+--------------+---------------+"; check_output_stream(output, expected).await; } diff --git a/tests/cases/standalone/common/show/show_columns.result b/tests/cases/standalone/common/show/show_columns.result index 1af23bb4696c..2e9bdaae47fb 100644 --- a/tests/cases/standalone/common/show/show_columns.result +++ b/tests/cases/standalone/common/show/show_columns.result @@ -17,60 +17,60 @@ Error: 2000(InvalidSyntax), Unexpected token while parsing SQL statement: SHOW C SHOW COLUMNS FROM system_metrics; -+-------------+----------------------+------+------------+---------------------+-------+ -| Field | Type | Null | Key | Default | Extra | -+-------------+----------------------+------+------------+---------------------+-------+ -| cpu_util | Float64 | Yes | | | | -| disk_util | Float64 | Yes | | | | -| host | String | Yes | PRI | | | -| idc | String | Yes | PRI | | | -| memory_util | Float64 | Yes | | | | -| ts | TimestampMillisecond | No | TIME INDEX | current_timestamp() | | -+-------------+----------------------+------+------------+---------------------+-------+ ++-------------+--------------+------+------------+---------------------+-------+----------------------+ +| Field | Type | Null | Key | Default | Extra | Greptime_type | ++-------------+--------------+------+------------+---------------------+-------+----------------------+ +| cpu_util | double | Yes | | | | Float64 | +| disk_util | double | Yes | | | | Float64 | +| host | string | Yes | PRI | | | String | +| idc | string | Yes | PRI | | | String | +| memory_util | double | Yes | | | | Float64 | +| ts | timestamp(3) | No | TIME INDEX | current_timestamp() | | TimestampMillisecond | ++-------------+--------------+------+------------+---------------------+-------+----------------------+ SHOW COLUMNS FROM system_metrics in public; -+-------------+----------------------+------+------------+---------------------+-------+ -| Field | Type | Null | Key | Default | Extra | -+-------------+----------------------+------+------------+---------------------+-------+ -| cpu_util | Float64 | Yes | | | | -| disk_util | Float64 | Yes | | | | -| host | String | Yes | PRI | | | -| idc | String | Yes | PRI | | | -| memory_util | Float64 | Yes | | | | -| ts | TimestampMillisecond | No | TIME INDEX | current_timestamp() | | -+-------------+----------------------+------+------------+---------------------+-------+ ++-------------+--------------+------+------------+---------------------+-------+----------------------+ +| Field | Type | Null | Key | Default | Extra | Greptime_type | ++-------------+--------------+------+------------+---------------------+-------+----------------------+ +| cpu_util | double | Yes | | | | Float64 | +| disk_util | double | Yes | | | | Float64 | +| host | string | Yes | PRI | | | String | +| idc | string | Yes | PRI | | | String | +| memory_util | double | Yes | | | | Float64 | +| ts | timestamp(3) | No | TIME INDEX | current_timestamp() | | TimestampMillisecond | ++-------------+--------------+------+------------+---------------------+-------+----------------------+ SHOW FULL COLUMNS FROM `system_metrics`; -+-------------+----------------------+-----------+------+------------+---------------------+---------+---------------------------------+-------+ -| Field | Type | Collation | Null | Key | Default | Comment | Privileges | Extra | -+-------------+----------------------+-----------+------+------------+---------------------+---------+---------------------------------+-------+ -| cpu_util | Float64 | | Yes | | | | select,insert,update,references | | -| disk_util | Float64 | | Yes | | | | select,insert,update,references | | -| host | String | utf8_bin | Yes | PRI | | | select,insert,update,references | | -| idc | String | utf8_bin | Yes | PRI | | | select,insert,update,references | | -| memory_util | Float64 | | Yes | | | | select,insert,update,references | | -| ts | TimestampMillisecond | | No | TIME INDEX | current_timestamp() | | select,insert,update,references | | -+-------------+----------------------+-----------+------+------------+---------------------+---------+---------------------------------+-------+ ++-------------+--------------+-----------+------+------------+---------------------+---------+---------------+-------+----------------------+ +| Field | Type | Collation | Null | Key | Default | Comment | Privileges | Extra | Greptime_type | ++-------------+--------------+-----------+------+------------+---------------------+---------+---------------+-------+----------------------+ +| cpu_util | double | | Yes | | | | select,insert | | Float64 | +| disk_util | double | | Yes | | | | select,insert | | Float64 | +| host | string | utf8_bin | Yes | PRI | | | select,insert | | String | +| idc | string | utf8_bin | Yes | PRI | | | select,insert | | String | +| memory_util | double | | Yes | | | | select,insert | | Float64 | +| ts | timestamp(3) | | No | TIME INDEX | current_timestamp() | | select,insert | | TimestampMillisecond | ++-------------+--------------+-----------+------+------------+---------------------+---------+---------------+-------+----------------------+ SHOW COLUMNS FROM system_metrics like '%util%'; -+-------------+---------+------+-----+---------+-------+ -| Field | Type | Null | Key | Default | Extra | -+-------------+---------+------+-----+---------+-------+ -| cpu_util | Float64 | Yes | | | | -| disk_util | Float64 | Yes | | | | -| memory_util | Float64 | Yes | | | | -+-------------+---------+------+-----+---------+-------+ ++-------------+--------+------+-----+---------+-------+---------------+ +| Field | Type | Null | Key | Default | Extra | Greptime_type | ++-------------+--------+------+-----+---------+-------+---------------+ +| cpu_util | double | Yes | | | | Float64 | +| disk_util | double | Yes | | | | Float64 | +| memory_util | double | Yes | | | | Float64 | ++-------------+--------+------+-----+---------+-------+---------------+ SHOW COLUMNS FROM system_metrics WHERE Field = 'cpu_util'; -+----------+---------+------+-----+---------+-------+ -| Field | Type | Null | Key | Default | Extra | -+----------+---------+------+-----+---------+-------+ -| cpu_util | Float64 | Yes | | | | -+----------+---------+------+-----+---------+-------+ ++----------+--------+------+-----+---------+-------+---------------+ +| Field | Type | Null | Key | Default | Extra | Greptime_type | ++----------+--------+------+-----+---------+-------+---------------+ +| cpu_util | double | Yes | | | | Float64 | ++----------+--------+------+-----+---------+-------+---------------+ DROP TABLE system_metrics; diff --git a/tests/cases/standalone/common/system/information_schema.result b/tests/cases/standalone/common/system/information_schema.result index c25cea096cf0..e325f8c938e7 100644 --- a/tests/cases/standalone/common/system/information_schema.result +++ b/tests/cases/standalone/common/system/information_schema.result @@ -44,300 +44,314 @@ order by table_schema, table_name; select * from information_schema.columns order by table_schema, table_name, column_name; -+---------------+--------------------+---------------------------------------+-----------------------------------+----------------------+---------------+----------------+-------------+----------------------+----------------+ -| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | column_default | is_nullable | column_type | column_comment | -+---------------+--------------------+---------------------------------------+-----------------------------------+----------------------+---------------+----------------+-------------+----------------------+----------------+ -| greptime | information_schema | build_info | git_branch | String | FIELD | | No | String | | -| greptime | information_schema | build_info | git_commit | String | FIELD | | No | String | | -| greptime | information_schema | build_info | git_commit_short | String | FIELD | | No | String | | -| greptime | information_schema | build_info | git_dirty | String | FIELD | | No | String | | -| greptime | information_schema | build_info | pkg_version | String | FIELD | | No | String | | -| greptime | information_schema | character_sets | character_set_name | String | FIELD | | No | String | | -| greptime | information_schema | character_sets | default_collate_name | String | FIELD | | No | String | | -| greptime | information_schema | character_sets | description | String | FIELD | | No | String | | -| greptime | information_schema | character_sets | maxlen | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | check_constraints | check_clause | String | FIELD | | No | String | | -| greptime | information_schema | check_constraints | constraint_catalog | String | FIELD | | No | String | | -| greptime | information_schema | check_constraints | constraint_name | String | FIELD | | No | String | | -| greptime | information_schema | check_constraints | constraint_schema | String | FIELD | | No | String | | -| greptime | information_schema | collation_character_set_applicability | character_set_name | String | FIELD | | No | String | | -| greptime | information_schema | collation_character_set_applicability | collation_name | String | FIELD | | No | String | | -| greptime | information_schema | collations | character_set_name | String | FIELD | | No | String | | -| greptime | information_schema | collations | collation_name | String | FIELD | | No | String | | -| greptime | information_schema | collations | id | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | collations | is_compiled | String | FIELD | | No | String | | -| greptime | information_schema | collations | is_default | String | FIELD | | No | String | | -| greptime | information_schema | collations | sortlen | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | column_privileges | column_name | String | FIELD | | No | String | | -| greptime | information_schema | column_privileges | grantee | String | FIELD | | No | String | | -| greptime | information_schema | column_privileges | is_grantable | String | FIELD | | No | String | | -| greptime | information_schema | column_privileges | privilege_type | String | FIELD | | No | String | | -| greptime | information_schema | column_privileges | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | column_privileges | table_name | String | FIELD | | No | String | | -| greptime | information_schema | column_privileges | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | column_statistics | column_name | String | FIELD | | No | String | | -| greptime | information_schema | column_statistics | histogram | String | FIELD | | No | String | | -| greptime | information_schema | column_statistics | schema_name | String | FIELD | | No | String | | -| greptime | information_schema | column_statistics | table_name | String | FIELD | | No | String | | -| greptime | information_schema | columns | column_comment | String | FIELD | | Yes | String | | -| greptime | information_schema | columns | column_default | String | FIELD | | Yes | String | | -| greptime | information_schema | columns | column_name | String | FIELD | | No | String | | -| greptime | information_schema | columns | column_type | String | FIELD | | No | String | | -| greptime | information_schema | columns | data_type | String | FIELD | | No | String | | -| greptime | information_schema | columns | is_nullable | String | FIELD | | No | String | | -| greptime | information_schema | columns | semantic_type | String | FIELD | | No | String | | -| greptime | information_schema | columns | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | columns | table_name | String | FIELD | | No | String | | -| greptime | information_schema | columns | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | engines | comment | String | FIELD | | No | String | | -| greptime | information_schema | engines | engine | String | FIELD | | No | String | | -| greptime | information_schema | engines | savepoints | String | FIELD | | No | String | | -| greptime | information_schema | engines | support | String | FIELD | | No | String | | -| greptime | information_schema | engines | transactions | String | FIELD | | No | String | | -| greptime | information_schema | engines | xa | String | FIELD | | No | String | | -| greptime | information_schema | events | character_set_client | String | FIELD | | No | String | | -| greptime | information_schema | events | collation_connection | String | FIELD | | No | String | | -| greptime | information_schema | events | created | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | events | database_collation | String | FIELD | | No | String | | -| greptime | information_schema | events | definer | String | FIELD | | No | String | | -| greptime | information_schema | events | ends | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | events | event_body | String | FIELD | | No | String | | -| greptime | information_schema | events | event_catalog | String | FIELD | | No | String | | -| greptime | information_schema | events | event_comment | String | FIELD | | No | String | | -| greptime | information_schema | events | event_definition | String | FIELD | | No | String | | -| greptime | information_schema | events | event_name | String | FIELD | | No | String | | -| greptime | information_schema | events | event_schema | String | FIELD | | No | String | | -| greptime | information_schema | events | event_type | String | FIELD | | No | String | | -| greptime | information_schema | events | execute_at | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | events | interval_field | String | FIELD | | No | String | | -| greptime | information_schema | events | interval_value | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | events | last_altered | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | events | last_executed | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | events | on_completion | String | FIELD | | No | String | | -| greptime | information_schema | events | originator | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | events | sql_mode | String | FIELD | | No | String | | -| greptime | information_schema | events | starts | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | events | status | String | FIELD | | No | String | | -| greptime | information_schema | events | time_zone | String | FIELD | | No | String | | -| greptime | information_schema | files | autoextend_size | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | avg_row_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | check_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | checksum | String | FIELD | | No | String | | -| greptime | information_schema | files | create_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | creation_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | data_free | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | data_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | deleted_rows | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | engine | String | FIELD | | No | String | | -| greptime | information_schema | files | extent_size | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | extra | String | FIELD | | No | String | | -| greptime | information_schema | files | file_id | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | file_name | String | FIELD | | No | String | | -| greptime | information_schema | files | file_type | String | FIELD | | No | String | | -| greptime | information_schema | files | free_extents | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | fulltext_keys | String | FIELD | | No | String | | -| greptime | information_schema | files | index_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | initial_size | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | last_access_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | last_update_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | logfile_group_name | String | FIELD | | No | String | | -| greptime | information_schema | files | logfile_group_number | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | max_data_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | maximum_size | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | recover_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | row_format | String | FIELD | | No | String | | -| greptime | information_schema | files | status | String | FIELD | | No | String | | -| greptime | information_schema | files | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | files | table_name | String | FIELD | | No | String | | -| greptime | information_schema | files | table_rows | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | files | tablespace_name | String | FIELD | | No | String | | -| greptime | information_schema | files | total_extents | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | transaction_counter | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | update_count | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | files | update_time | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | files | version | String | FIELD | | No | String | | -| greptime | information_schema | global_status | variable_name | String | FIELD | | No | String | | -| greptime | information_schema | global_status | variable_value | String | FIELD | | No | String | | -| greptime | information_schema | greptime_region_peers | down_seconds | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | greptime_region_peers | is_leader | String | FIELD | | Yes | String | | -| greptime | information_schema | greptime_region_peers | peer_addr | String | FIELD | | Yes | String | | -| greptime | information_schema | greptime_region_peers | peer_id | UInt64 | FIELD | | Yes | UInt64 | | -| greptime | information_schema | greptime_region_peers | region_id | UInt64 | FIELD | | No | UInt64 | | -| greptime | information_schema | greptime_region_peers | status | String | FIELD | | Yes | String | | -| greptime | information_schema | key_column_usage | column_name | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | constraint_catalog | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | constraint_name | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | constraint_schema | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | ordinal_position | UInt32 | FIELD | | No | UInt32 | | -| greptime | information_schema | key_column_usage | position_in_unique_constraint | UInt32 | FIELD | | Yes | UInt32 | | -| greptime | information_schema | key_column_usage | real_table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | referenced_column_name | String | FIELD | | Yes | String | | -| greptime | information_schema | key_column_usage | referenced_table_name | String | FIELD | | Yes | String | | -| greptime | information_schema | key_column_usage | referenced_table_schema | String | FIELD | | Yes | String | | -| greptime | information_schema | key_column_usage | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | table_name | String | FIELD | | No | String | | -| greptime | information_schema | key_column_usage | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | optimizer_trace | insufficient_privileges | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | optimizer_trace | missing_bytes_beyond_max_mem_size | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | optimizer_trace | query | String | FIELD | | No | String | | -| greptime | information_schema | optimizer_trace | trace | String | FIELD | | No | String | | -| greptime | information_schema | parameters | character_maximum_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | parameters | character_octet_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | parameters | character_set_name | String | FIELD | | No | String | | -| greptime | information_schema | parameters | collation_name | String | FIELD | | No | String | | -| greptime | information_schema | parameters | data_type | String | FIELD | | No | String | | -| greptime | information_schema | parameters | datetime_precision | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | parameters | dtd_identifier | String | FIELD | | No | String | | -| greptime | information_schema | parameters | numeric_precision | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | parameters | numeric_scale | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | parameters | ordinal_position | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | parameters | parameter_mode | String | FIELD | | No | String | | -| greptime | information_schema | parameters | parameter_name | String | FIELD | | No | String | | -| greptime | information_schema | parameters | routine_type | String | FIELD | | No | String | | -| greptime | information_schema | parameters | specific_catalog | String | FIELD | | No | String | | -| greptime | information_schema | parameters | specific_name | String | FIELD | | No | String | | -| greptime | information_schema | parameters | specific_schema | String | FIELD | | No | String | | -| greptime | information_schema | partitions | avg_row_length | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | check_time | DateTime | FIELD | | Yes | DateTime | | -| greptime | information_schema | partitions | checksum | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | create_time | DateTime | FIELD | | Yes | DateTime | | -| greptime | information_schema | partitions | data_free | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | data_length | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | greptime_partition_id | UInt64 | FIELD | | Yes | UInt64 | | -| greptime | information_schema | partitions | index_length | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | max_data_length | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | nodegroup | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | partition_comment | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | partition_description | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | partition_expression | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | partition_method | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | partition_name | String | FIELD | | No | String | | -| greptime | information_schema | partitions | partition_ordinal_position | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | subpartition_expression | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | subpartition_method | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | subpartition_name | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | subpartition_ordinal_position | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | partitions | table_name | String | FIELD | | No | String | | -| greptime | information_schema | partitions | table_rows | Int64 | FIELD | | Yes | Int64 | | -| greptime | information_schema | partitions | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | partitions | tablespace_name | String | FIELD | | Yes | String | | -| greptime | information_schema | partitions | update_time | DateTime | FIELD | | Yes | DateTime | | -| greptime | information_schema | profiling | block_ops_in | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | block_ops_out | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | context_involuntary | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | context_voluntary | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | cpu_system | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | cpu_user | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | duration | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | messages_received | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | messages_sent | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | page_faults_major | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | page_faults_minor | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | query_id | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | seq | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | source_file | String | FIELD | | No | String | | -| greptime | information_schema | profiling | source_function | String | FIELD | | No | String | | -| greptime | information_schema | profiling | source_line | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | profiling | state | String | FIELD | | No | String | | -| greptime | information_schema | profiling | swaps | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | referential_constraints | constraint_catalog | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | constraint_name | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | constraint_schema | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | delete_rule | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | match_option | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | referenced_table_name | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | table_name | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | unique_constraint_catalog | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | unique_constraint_name | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | unique_constraint_schema | String | FIELD | | No | String | | -| greptime | information_schema | referential_constraints | update_rule | String | FIELD | | No | String | | -| greptime | information_schema | routines | character_maximum_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | routines | character_octet_length | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | routines | character_set_client | String | FIELD | | No | String | | -| greptime | information_schema | routines | character_set_name | String | FIELD | | No | String | | -| greptime | information_schema | routines | collation_connection | String | FIELD | | No | String | | -| greptime | information_schema | routines | collation_name | String | FIELD | | No | String | | -| greptime | information_schema | routines | created | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | routines | data_type | String | FIELD | | No | String | | -| greptime | information_schema | routines | database_collation | String | FIELD | | No | String | | -| greptime | information_schema | routines | datetime_precision | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | routines | definer | String | FIELD | | No | String | | -| greptime | information_schema | routines | dtd_identifier | String | FIELD | | No | String | | -| greptime | information_schema | routines | external_language | String | FIELD | | No | String | | -| greptime | information_schema | routines | external_name | String | FIELD | | No | String | | -| greptime | information_schema | routines | is_deterministic | String | FIELD | | No | String | | -| greptime | information_schema | routines | last_altered | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | routines | numeric_precision | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | routines | numeric_scale | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | routines | parameter_style | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_body | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_catalog | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_comment | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_definition | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_name | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_schema | String | FIELD | | No | String | | -| greptime | information_schema | routines | routine_type | String | FIELD | | No | String | | -| greptime | information_schema | routines | security_type | String | FIELD | | No | String | | -| greptime | information_schema | routines | specific_name | String | FIELD | | No | String | | -| greptime | information_schema | routines | sql_data_access | String | FIELD | | No | String | | -| greptime | information_schema | routines | sql_mode | String | FIELD | | No | String | | -| greptime | information_schema | routines | sql_path | String | FIELD | | No | String | | -| greptime | information_schema | runtime_metrics | labels | String | FIELD | | Yes | String | | -| greptime | information_schema | runtime_metrics | metric_name | String | FIELD | | No | String | | -| greptime | information_schema | runtime_metrics | node | String | FIELD | | No | String | | -| greptime | information_schema | runtime_metrics | node_type | String | FIELD | | No | String | | -| greptime | information_schema | runtime_metrics | timestamp | TimestampMillisecond | FIELD | | No | TimestampMillisecond | | -| greptime | information_schema | runtime_metrics | value | Float64 | FIELD | | No | Float64 | | -| greptime | information_schema | schema_privileges | grantee | String | FIELD | | No | String | | -| greptime | information_schema | schema_privileges | is_grantable | String | FIELD | | No | String | | -| greptime | information_schema | schema_privileges | privilege_type | String | FIELD | | No | String | | -| greptime | information_schema | schema_privileges | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | schema_privileges | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | schemata | catalog_name | String | FIELD | | No | String | | -| greptime | information_schema | schemata | default_character_set_name | String | FIELD | | No | String | | -| greptime | information_schema | schemata | default_collation_name | String | FIELD | | No | String | | -| greptime | information_schema | schemata | schema_name | String | FIELD | | No | String | | -| greptime | information_schema | schemata | sql_path | String | FIELD | | Yes | String | | -| greptime | information_schema | session_status | variable_name | String | FIELD | | No | String | | -| greptime | information_schema | session_status | variable_value | String | FIELD | | No | String | | -| greptime | information_schema | table_privileges | grantee | String | FIELD | | No | String | | -| greptime | information_schema | table_privileges | is_grantable | String | FIELD | | No | String | | -| greptime | information_schema | table_privileges | privilege_type | String | FIELD | | No | String | | -| greptime | information_schema | table_privileges | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | table_privileges | table_name | String | FIELD | | No | String | | -| greptime | information_schema | table_privileges | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | tables | engine | String | FIELD | | Yes | String | | -| greptime | information_schema | tables | table_catalog | String | FIELD | | No | String | | -| greptime | information_schema | tables | table_id | UInt32 | FIELD | | Yes | UInt32 | | -| greptime | information_schema | tables | table_name | String | FIELD | | No | String | | -| greptime | information_schema | tables | table_schema | String | FIELD | | No | String | | -| greptime | information_schema | tables | table_type | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_condition | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_order | Int64 | FIELD | | No | Int64 | | -| greptime | information_schema | triggers | action_orientation | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_reference_new_row | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_reference_new_table | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_reference_old_row | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_reference_old_table | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_statement | String | FIELD | | No | String | | -| greptime | information_schema | triggers | action_timing | String | FIELD | | No | String | | -| greptime | information_schema | triggers | character_set_client | String | FIELD | | No | String | | -| greptime | information_schema | triggers | collation_connection | String | FIELD | | No | String | | -| greptime | information_schema | triggers | created | DateTime | FIELD | | No | DateTime | | -| greptime | information_schema | triggers | database_collation | String | FIELD | | No | String | | -| greptime | information_schema | triggers | definer | String | FIELD | | No | String | | -| greptime | information_schema | triggers | event_manipulation | String | FIELD | | No | String | | -| greptime | information_schema | triggers | event_object_catalog | String | FIELD | | No | String | | -| greptime | information_schema | triggers | event_object_schema | String | FIELD | | No | String | | -| greptime | information_schema | triggers | event_object_table | String | FIELD | | No | String | | -| greptime | information_schema | triggers | sql_mode | String | FIELD | | No | String | | -| greptime | information_schema | triggers | trigger_catalog | String | FIELD | | No | String | | -| greptime | information_schema | triggers | trigger_name | String | FIELD | | No | String | | -| greptime | information_schema | triggers | trigger_schema | String | FIELD | | No | String | | -| greptime | public | numbers | number | UInt32 | TAG | | No | UInt32 | | -+---------------+--------------------+---------------------------------------+-----------------------------------+----------------------+---------------+----------------+-------------+----------------------+----------------+ ++---------------+--------------------+---------------------------------------+-----------------------------------+------------------+--------------------------+------------------------+-------------------+---------------+--------------------+--------------------+----------------+------------+-------+---------------+-----------------------+----------------------+-----------------+---------------+----------------+-------------+-----------------+----------------+--------+ +| table_catalog | table_schema | table_name | column_name | ordinal_position | character_maximum_length | character_octet_length | numeric_precision | numeric_scale | datetime_precision | character_set_name | collation_name | column_key | extra | privileges | generation_expression | greptime_data_type | data_type | semantic_type | column_default | is_nullable | column_type | column_comment | srs_id | ++---------------+--------------------+---------------------------------------+-----------------------------------+------------------+--------------------------+------------------------+-------------------+---------------+--------------------+--------------------+----------------+------------+-------+---------------+-----------------------+----------------------+-----------------+---------------+----------------+-------------+-----------------+----------------+--------+ +| greptime | information_schema | build_info | git_branch | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | build_info | git_commit | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | build_info | git_commit_short | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | build_info | git_dirty | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | build_info | pkg_version | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | character_sets | character_set_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | character_sets | default_collate_name | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | character_sets | description | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | character_sets | maxlen | 4 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | check_constraints | check_clause | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | check_constraints | constraint_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | check_constraints | constraint_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | check_constraints | constraint_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collation_character_set_applicability | character_set_name | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collation_character_set_applicability | collation_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collations | character_set_name | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collations | collation_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collations | id | 3 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | collations | is_compiled | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collations | is_default | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | collations | sortlen | 6 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | column_privileges | column_name | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_privileges | grantee | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_privileges | is_grantable | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_privileges | privilege_type | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_privileges | table_catalog | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_privileges | table_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_privileges | table_schema | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_statistics | column_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_statistics | histogram | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_statistics | schema_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | column_statistics | table_name | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | character_maximum_length | 6 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | columns | character_octet_length | 7 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | columns | character_set_name | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | columns | collation_name | 12 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | columns | column_comment | 23 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | columns | column_default | 20 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | columns | column_key | 13 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | column_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | column_type | 22 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | data_type | 18 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | datetime_precision | 10 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | columns | extra | 14 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | generation_expression | 16 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | greptime_data_type | 17 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | is_nullable | 21 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | numeric_precision | 8 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | columns | numeric_scale | 9 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | columns | ordinal_position | 5 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | columns | privileges | 15 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | semantic_type | 19 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | srs_id | 24 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | columns | table_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | table_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | columns | table_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | engines | comment | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | engines | engine | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | engines | savepoints | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | engines | support | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | engines | transactions | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | engines | xa | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | character_set_client | 22 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | collation_connection | 23 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | created | 17 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | events | database_collation | 24 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | definer | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | ends | 14 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | events | event_body | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | event_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | event_comment | 20 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | event_definition | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | event_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | event_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | event_type | 8 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | execute_at | 9 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | events | interval_field | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | interval_value | 10 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | events | last_altered | 18 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | events | last_executed | 19 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | events | on_completion | 16 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | originator | 21 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | events | sql_mode | 12 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | starts | 13 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | events | status | 15 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | events | time_zone | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | autoextend_size | 19 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | avg_row_length | 28 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | check_time | 35 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | checksum | 36 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | create_time | 33 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | creation_time | 20 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | data_free | 32 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | data_length | 29 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | deleted_rows | 12 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | engine | 10 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | extent_size | 16 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | extra | 38 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | file_id | 1 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | file_name | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | file_type | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | free_extents | 14 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | fulltext_keys | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | index_length | 31 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | initial_size | 17 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | last_access_time | 22 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | last_update_time | 21 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | logfile_group_name | 8 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | logfile_group_number | 9 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | max_data_length | 30 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | maximum_size | 18 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | recover_time | 23 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | row_format | 26 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | status | 37 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | table_catalog | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | table_name | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | table_rows | 27 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | table_schema | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | tablespace_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | files | total_extents | 15 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | transaction_counter | 24 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | update_count | 13 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | files | update_time | 34 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | files | version | 25 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | global_status | variable_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | global_status | variable_value | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | greptime_region_peers | down_seconds | 6 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | greptime_region_peers | is_leader | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | greptime_region_peers | peer_addr | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | greptime_region_peers | peer_id | 2 | | | 20 | 0 | | | | | | select,insert | | UInt64 | bigint unsigned | FIELD | | Yes | bigint unsigned | | | +| greptime | information_schema | greptime_region_peers | region_id | 1 | | | 20 | 0 | | | | | | select,insert | | UInt64 | bigint unsigned | FIELD | | No | bigint unsigned | | | +| greptime | information_schema | greptime_region_peers | status | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | key_column_usage | column_name | 8 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | constraint_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | constraint_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | constraint_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | ordinal_position | 9 | | | 10 | 0 | | | | | | select,insert | | UInt32 | int unsigned | FIELD | | No | int unsigned | | | +| greptime | information_schema | key_column_usage | position_in_unique_constraint | 10 | | | 10 | 0 | | | | | | select,insert | | UInt32 | int unsigned | FIELD | | Yes | int unsigned | | | +| greptime | information_schema | key_column_usage | real_table_catalog | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | referenced_column_name | 13 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | key_column_usage | referenced_table_name | 12 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | key_column_usage | referenced_table_schema | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | key_column_usage | table_catalog | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | table_name | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | key_column_usage | table_schema | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | optimizer_trace | insufficient_privileges | 4 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | optimizer_trace | missing_bytes_beyond_max_mem_size | 3 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | optimizer_trace | query | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | optimizer_trace | trace | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | character_maximum_length | 8 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | parameters | character_octet_length | 9 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | parameters | character_set_name | 13 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | collation_name | 14 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | data_type | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | datetime_precision | 12 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | parameters | dtd_identifier | 15 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | numeric_precision | 10 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | parameters | numeric_scale | 11 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | parameters | ordinal_position | 4 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | parameters | parameter_mode | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | parameter_name | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | routine_type | 16 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | specific_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | specific_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | parameters | specific_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | partitions | avg_row_length | 14 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | check_time | 21 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | Yes | datetime | | | +| greptime | information_schema | partitions | checksum | 22 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | create_time | 19 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | Yes | datetime | | | +| greptime | information_schema | partitions | data_free | 18 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | data_length | 15 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | greptime_partition_id | 26 | | | 20 | 0 | | | | | | select,insert | | UInt64 | bigint unsigned | FIELD | | Yes | bigint unsigned | | | +| greptime | information_schema | partitions | index_length | 17 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | max_data_length | 16 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | nodegroup | 24 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | partition_comment | 23 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | partition_description | 12 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | partition_expression | 10 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | partition_method | 8 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | partition_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | partitions | partition_ordinal_position | 6 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | subpartition_expression | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | subpartition_method | 9 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | subpartition_name | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | subpartition_ordinal_position | 7 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | table_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | partitions | table_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | partitions | table_rows | 13 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | Yes | bigint | | | +| greptime | information_schema | partitions | table_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | partitions | tablespace_name | 25 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | partitions | update_time | 20 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | Yes | datetime | | | +| greptime | information_schema | profiling | block_ops_in | 9 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | block_ops_out | 10 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | context_involuntary | 8 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | context_voluntary | 7 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | cpu_system | 6 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | cpu_user | 5 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | duration | 4 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | messages_received | 12 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | messages_sent | 11 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | page_faults_major | 13 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | page_faults_minor | 14 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | query_id | 1 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | seq | 2 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | source_file | 17 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | profiling | source_function | 16 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | profiling | source_line | 18 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | profiling | state | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | profiling | swaps | 15 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | referential_constraints | constraint_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | constraint_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | constraint_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | delete_rule | 9 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | match_option | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | referenced_table_name | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | table_name | 10 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | unique_constraint_catalog | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | unique_constraint_name | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | unique_constraint_schema | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | referential_constraints | update_rule | 8 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | character_maximum_length | 7 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | routines | character_octet_length | 8 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | routines | character_set_client | 29 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | character_set_name | 12 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | collation_connection | 30 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | collation_name | 13 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | created | 24 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | routines | data_type | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | database_collation | 31 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | datetime_precision | 11 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | routines | definer | 28 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | dtd_identifier | 14 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | external_language | 18 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | external_name | 17 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | is_deterministic | 20 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | last_altered | 25 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | routines | numeric_precision | 9 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | routines | numeric_scale | 10 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | routines | parameter_style | 19 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_body | 15 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_catalog | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_comment | 27 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_definition | 16 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_schema | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | routine_type | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | security_type | 23 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | specific_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | sql_data_access | 21 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | sql_mode | 26 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | routines | sql_path | 22 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | runtime_metrics | labels | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | runtime_metrics | metric_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | runtime_metrics | node | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | runtime_metrics | node_type | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | runtime_metrics | timestamp | 6 | | | | | 3 | | | | | select,insert | | TimestampMillisecond | timestamp(3) | FIELD | | No | timestamp(3) | | | +| greptime | information_schema | runtime_metrics | value | 2 | | | 22 | | | | | | | select,insert | | Float64 | double | FIELD | | No | double | | | +| greptime | information_schema | schema_privileges | grantee | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schema_privileges | is_grantable | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schema_privileges | privilege_type | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schema_privileges | table_catalog | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schema_privileges | table_schema | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schemata | catalog_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schemata | default_character_set_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schemata | default_collation_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schemata | schema_name | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | schemata | sql_path | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | session_status | variable_name | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | session_status | variable_value | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | table_privileges | grantee | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | table_privileges | is_grantable | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | table_privileges | privilege_type | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | table_privileges | table_catalog | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | table_privileges | table_name | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | table_privileges | table_schema | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | tables | engine | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | Yes | string | | | +| greptime | information_schema | tables | table_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | tables | table_id | 5 | | | 10 | 0 | | | | | | select,insert | | UInt32 | int unsigned | FIELD | | Yes | int unsigned | | | +| greptime | information_schema | tables | table_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | tables | table_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | tables | table_type | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_condition | 9 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_order | 8 | | | 19 | 0 | | | | | | select,insert | | Int64 | bigint | FIELD | | No | bigint | | | +| greptime | information_schema | triggers | action_orientation | 11 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_reference_new_row | 16 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_reference_new_table | 14 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_reference_old_row | 15 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_reference_old_table | 13 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_statement | 10 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | action_timing | 12 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | character_set_client | 20 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | collation_connection | 21 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | created | 17 | | | | | 3 | | | | | select,insert | | DateTime | datetime | FIELD | | No | datetime | | | +| greptime | information_schema | triggers | database_collation | 22 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | definer | 19 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | event_manipulation | 4 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | event_object_catalog | 5 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | event_object_schema | 6 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | event_object_table | 7 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | sql_mode | 18 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | trigger_catalog | 1 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | trigger_name | 3 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | information_schema | triggers | trigger_schema | 2 | 2147483647 | 2147483647 | | | | utf8 | utf8_bin | | | select,insert | | String | string | FIELD | | No | string | | | +| greptime | public | numbers | number | 1 | | | 10 | 0 | | | | PRI | | select,insert | | UInt32 | int unsigned | TAG | | No | int unsigned | | | ++---------------+--------------------+---------------------------------------+-----------------------------------+------------------+--------------------------+------------------------+-------------------+---------------+--------------------+--------------------+----------------+------------+-------+---------------+-----------------------+----------------------+-----------------+---------------+----------------+-------------+-----------------+----------------+--------+ create database my_db; @@ -420,11 +434,11 @@ where table_catalog = 'greptime' and table_schema != 'information_schema' order by table_schema, table_name, column_name; -+---------------+--------------+------------+-------------+----------------------+---------------+ -| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | -+---------------+--------------+------------+-------------+----------------------+---------------+ -| greptime | my_db | foo | ts | TimestampMillisecond | TIMESTAMP | -+---------------+--------------+------------+-------------+----------------------+---------------+ ++---------------+--------------+------------+-------------+--------------+---------------+ +| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | ++---------------+--------------+------------+-------------+--------------+---------------+ +| greptime | my_db | foo | ts | timestamp(3) | TIMESTAMP | ++---------------+--------------+------------+-------------+--------------+---------------+ -- test query filter for columns -- select table_catalog, table_schema, table_name, column_name, data_type, semantic_type @@ -435,12 +449,12 @@ where table_catalog = 'greptime' table_schema == 'my_db') order by table_schema, table_name, column_name; -+---------------+--------------+------------+-------------+----------------------+---------------+ -| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | -+---------------+--------------+------------+-------------+----------------------+---------------+ -| greptime | my_db | foo | ts | TimestampMillisecond | TIMESTAMP | -| greptime | public | numbers | number | UInt32 | TAG | -+---------------+--------------+------------+-------------+----------------------+---------------+ ++---------------+--------------+------------+-------------+--------------+---------------+ +| table_catalog | table_schema | table_name | column_name | data_type | semantic_type | ++---------------+--------------+------------+-------------+--------------+---------------+ +| greptime | my_db | foo | ts | timestamp(3) | TIMESTAMP | +| greptime | public | numbers | number | int unsigned | TAG | ++---------------+--------------+------------+-------------+--------------+---------------+ use public; @@ -680,20 +694,34 @@ Affected Rows: 0 DESC COLUMNS; -+----------------+--------+-----+------+---------+---------------+ -| Column | Type | Key | Null | Default | Semantic Type | -+----------------+--------+-----+------+---------+---------------+ -| table_catalog | String | | NO | | FIELD | -| table_schema | String | | NO | | FIELD | -| table_name | String | | NO | | FIELD | -| column_name | String | | NO | | FIELD | -| data_type | String | | NO | | FIELD | -| semantic_type | String | | NO | | FIELD | -| column_default | String | | YES | | FIELD | -| is_nullable | String | | NO | | FIELD | -| column_type | String | | NO | | FIELD | -| column_comment | String | | YES | | FIELD | -+----------------+--------+-----+------+---------+---------------+ ++--------------------------+--------+-----+------+---------+---------------+ +| Column | Type | Key | Null | Default | Semantic Type | ++--------------------------+--------+-----+------+---------+---------------+ +| table_catalog | String | | NO | | FIELD | +| table_schema | String | | NO | | FIELD | +| table_name | String | | NO | | FIELD | +| column_name | String | | NO | | FIELD | +| ordinal_position | Int64 | | NO | | FIELD | +| character_maximum_length | Int64 | | YES | | FIELD | +| character_octet_length | Int64 | | YES | | FIELD | +| numeric_precision | Int64 | | YES | | FIELD | +| numeric_scale | Int64 | | YES | | FIELD | +| datetime_precision | Int64 | | YES | | FIELD | +| character_set_name | String | | YES | | FIELD | +| collation_name | String | | YES | | FIELD | +| column_key | String | | NO | | FIELD | +| extra | String | | NO | | FIELD | +| privileges | String | | NO | | FIELD | +| generation_expression | String | | NO | | FIELD | +| greptime_data_type | String | | NO | | FIELD | +| data_type | String | | NO | | FIELD | +| semantic_type | String | | NO | | FIELD | +| column_default | String | | YES | | FIELD | +| is_nullable | String | | NO | | FIELD | +| column_type | String | | NO | | FIELD | +| column_comment | String | | YES | | FIELD | +| srs_id | Int64 | | YES | | FIELD | ++--------------------------+--------+-----+------+---------+---------------+ drop table my_db.foo;