mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 22:40:40 +00:00
feat: ignore internal columns in SHOW CREATE TABLE (#3950)
* feat: ignore internal columns * chore: add new line * chore: apply suggestions from CR * chore: apply suggestions from CR
This commit is contained in:
@@ -70,3 +70,13 @@ pub const LOGICAL_TABLE_METADATA_KEY: &str = "on_physical_table";
|
||||
/// HashMap key to be used in the region server's extension response.
|
||||
/// Represent a list of column metadata that are added to physical table.
|
||||
pub const ALTER_PHYSICAL_EXTENSION_KEY: &str = "ALTER_PHYSICAL";
|
||||
|
||||
/// Returns true if it's a internal column of the metric engine.
|
||||
pub fn is_metric_engine_internal_column(name: &str) -> bool {
|
||||
name == DATA_SCHEMA_TABLE_ID_COLUMN_NAME || name == DATA_SCHEMA_TSID_COLUMN_NAME
|
||||
}
|
||||
|
||||
/// Returns true if it's metric engine
|
||||
pub fn is_metric_engine(name: &str) -> bool {
|
||||
name == METRIC_ENGINE_NAME
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user