Skip to content
Snippets Groups Projects
Verified Commit 57bfc483 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

refactoring: remove bucket_id export for picodata engine

parent 1453bdf4
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -3,7 +3,7 @@ use crate::runtime::storage::StorageRuntime;
use sbroad::backend::sql::ir::PatternWithParams;
use sbroad::debug;
use sbroad::errors::{Action, SbroadError};
use sbroad::executor::engine::{helpers::decode_msgpack, Vshard};
use sbroad::executor::engine::helpers::decode_msgpack;
use sbroad::executor::protocol::{EncodedRequiredData, RequiredData};
use sbroad::executor::Query;
use sbroad::otm::query_span;
......@@ -89,12 +89,3 @@ pub fn execute_sql(tuple_buf: &[u8]) -> Result<Vec<u8>, SbroadError> {
}
})
}
/// Determine bucket id for the given values.
///
/// # Errors
/// - Failed to initialize router runtime.
pub fn determine_bucket_id(values: &[&sbroad::ir::value::Value]) -> Result<u64, SbroadError> {
let runtime = RouterRuntime::new()?;
runtime.determine_bucket_id(values)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment