Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Dec 19, 2024
1 parent d12f345 commit 07dbb13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/flow/src/adapter/flownode_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use itertools::Itertools;
use snafu::{OptionExt, ResultExt};
use store_api::storage::RegionId;

use super::util::from_proto_to_column_schema;
use super::util::from_proto_to_data_type;
use crate::adapter::{CreateFlowArgs, FlowWorkerManager};
use crate::error::InternalSnafu;
use crate::metrics::METRIC_FLOW_TASK_COUNT;
Expand Down Expand Up @@ -209,7 +209,7 @@ impl Flownode for FlowWorkerManager {
.collect_vec();
let batch_datatypes = insert_schema
.iter()
.map(from_proto_to_column_schema)
.map(from_proto_to_data_type)
.collect::<std::result::Result<Vec<_>, _>>()
.map_err(to_meta_err)?;
self.handle_write_request(region_id.into(), rows, &batch_datatypes)
Expand Down
2 changes: 1 addition & 1 deletion src/flow/src/adapter/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use snafu::ResultExt;

use crate::error::{Error, ExternalSnafu};

pub fn from_proto_to_column_schema(
pub fn from_proto_to_data_type(
column_schema: &api::v1::ColumnSchema,
) -> Result<ConcreteDataType, Error> {
let wrapper = ColumnDataTypeWrapper::try_new(
Expand Down

0 comments on commit 07dbb13

Please sign in to comment.