Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Apr 4, 2023
1 parent 3115666 commit 95e9980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/src/influxql/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ use crate::{
// Same with iox
pub const CERESDB_MEASUREMENT_COLUMN_NAME: &str = "iox::measurement";

// Port from https://github.com/ceresdb/influxql/blob/36fc4d873e/iox_query_influxql/src/frontend/planner.rs#L28
struct InfluxQLSchemaProvider<'a, P: MetaProvider> {
context_provider: ContextProviderAdapter<'a, P>,
// TODO: avoid load all tables.
// if we can ensure `table_names` is only called once, then load tables lazily is better.
tables: HashMap<String, (Arc<dyn TableSource>, Schema)>,
}

Expand Down

0 comments on commit 95e9980

Please sign in to comment.