Skip to content

Commit

Permalink
chore: after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Jan 2, 2025
1 parent 6eb8a69 commit 50cdc8a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/flow/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ use tokio::sync::broadcast::error::TryRecvError;
use tokio::sync::{broadcast, watch, Mutex, RwLock};

pub(crate) use crate::adapter::node_context::FlownodeContext;
use crate::adapter::table_source::ManagedTableSource;
use crate::adapter::refill::RefillTask;
use crate::adapter::table_source::KvBackendTableSource;
use crate::adapter::table_source::ManagedTableSource;
use crate::adapter::util::relation_desc_to_column_schemas_with_fallback;
use crate::adapter::worker::{create_worker, Worker, WorkerHandle};
use crate::compute::ErrCollector;
Expand Down Expand Up @@ -737,7 +736,7 @@ impl CreateFlowArgs {
/// Create&Remove flow
impl FlowWorkerManager {
/// Get table info source
pub fn table_info_source(&self) -> &KvBackendTableSource {
pub fn table_info_source(&self) -> &ManagedTableSource {
&self.table_info_source
}

Expand Down
4 changes: 2 additions & 2 deletions src/flow/src/adapter/refill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use snafu::{OptionExt, ResultExt};
use table::metadata::TableId;

use super::{FlowId, FlowWorkerManager};
use crate::adapter::table_source::KvBackendTableSource;
use crate::adapter::table_source::ManagedTableSource;
use crate::adapter::FlowWorkerManagerRef;
use crate::error::{FlowNotFoundSnafu, JoinTaskSnafu, UnexpectedSnafu};
use crate::expr::error::ExternalSnafu;
Expand Down Expand Up @@ -331,7 +331,7 @@ impl RefillTask {
table_id: TableId,
time_range: Option<(common_time::Timestamp, common_time::Timestamp)>,
time_col_name: &str,
table_src: &KvBackendTableSource,
table_src: &ManagedTableSource,
) -> Result<RefillTask, Error> {
let (table_name, table_schema) = table_src.get_table_name_schema(&table_id).await?;
let all_col_names: BTreeSet<_> = table_schema
Expand Down
2 changes: 1 addition & 1 deletion src/flow/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use table::table::numbers::{NumbersTable, NUMBERS_TABLE_NAME};
use table::test_util::MemTable;

use crate::adapter::node_context::IdToNameMap;
use crate::adapter::table_source::FlowDummyTableSource;
use crate::adapter::table_source::test::FlowDummyTableSource;
use crate::adapter::FlownodeContext;
use crate::df_optimizer::apply_df_optimizer;
use crate::expr::GlobalId;
Expand Down
5 changes: 0 additions & 5 deletions src/flow/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ mod test {
use query::parser::QueryLanguageParser;
use session::context::QueryContext;

use super::*;
use crate::adapter::node_context::IdToNameMap;
use crate::adapter::table_source::test::FlowDummyTableSource;
use crate::df_optimizer::apply_df_optimizer;
use crate::expr::GlobalId;
use crate::df_optimizer::apply_df_optimizer;
use crate::test_utils::create_test_query_engine;

Expand Down

0 comments on commit 50cdc8a

Please sign in to comment.