Skip to main content Module util Copy item path Source OptionValue QueryScope ๐ RelationCollector ๐ DATABASE_MATCHER ๐ DEFAULT_INFO_METRIC ๐ The table PromQL info reads when its label selector names no info metric. FIELD_MATCHER ๐ SCHEMA_MATCHER ๐ collect_relations ๐ collect_relations_from_ast Walks any sqlparser AST node using RelationCollector so CTE aliases are
scoped accurately while collecting all referenced table relations. extract_metric_name_from_vector_selector ๐ extract_tables_from_hybrid_cte_query ๐ extract_tables_from_prom_expr ๐ extract_tables_from_prom_expr_checked Extracts all tables referenced by a [PromExpr], returning None
if any table reference cannot be resolved statically. extract_tables_from_prom_expr_partial Extracts the tables referenced by a [PromExpr] that can be resolved statically,
ignoring the ones that cannot. extract_tables_from_query Walk through a Query and extract all the tables referenced in it. extract_tables_from_query_ast ๐ extract_tables_from_query_checked Walk through a Query and extract its referenced tables, returning None
if any table reference cannot be resolved statically. extract_tables_from_query_inner ๐ extract_tables_from_sql_or_tql ๐ extract_tables_from_sql_query ๐ extract_tables_from_sql_query_ast Helper function for extract_tables_from_query . extract_tables_from_statement ๐ extract_tables_from_statement_checked Walks through a Statement and extracts all referenced tables, returning
None if any table reference cannot be resolved statically. extract_tables_from_statement_partial Extracts the tables referenced by a Statement that can be resolved statically,
ignoring the ones that cannot. extract_tables_from_tql ๐ extract_tql_exprs_from_statement The PromQL expressions a query statement evaluates through TQL: its own, or those of its TQL
CTEs, looking through EXPLAIN. Returns None when one of them does not parse. format_raw_object_name Format an ObjectName without any quote of its idents. location_to_index translate the start location to the index in the sql string metadata_table_name ๐ parse_option_string reads_default_info_metric Whether labels, the second argument of PromQL info, selects the default info metric in the
current schema: data label matchers only, with no name, modifier or or. remove_cte_names ๐