Skip to content

Commit

Permalink
add comments of all_tables in MetaProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Apr 24, 2023
1 parent 4ce7193 commit 48e5ed0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions query_frontend/src/influxql/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ use std::{cell::OnceCell, sync::Arc};
use arrow::datatypes::SchemaRef as ArrowSchemaRef;
use common_util::error::BoxError;
use datafusion::{
error::DataFusionError,
logical_expr::TableSource,
sql::{planner::ContextProvider, TableReference},
error::DataFusionError, logical_expr::TableSource, sql::planner::ContextProvider,
};
use influxql_logical_planner::plan::{
ceresdb_schema_to_influxdb, InfluxQLToLogicalPlan, SchemaProvider,
Expand Down
4 changes: 4 additions & 0 deletions query_frontend/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ pub trait MetaProvider {
fn aggregate_udf(&self, name: &str) -> Result<Option<AggregateUdf>>;

/// Return all tables.
///
/// Note that it may incur expensive cost.
/// Now it is used in `table_names` method in `SchemaProvider`(introduced by
/// influxql).
fn all_tables(&self) -> Result<Vec<TableRef>>;
}

Expand Down

0 comments on commit 48e5ed0

Please sign in to comment.