refactor: remove unused QueryExec impl

This is completely unused and left over from the initial skeleton.
pull/24376/head
Dom Dwyer 2023-01-09 14:28:16 +01:00
parent 13f2f36a9c
commit aab4f6c651
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
2 changed files with 1 additions and 41 deletions

View File

@ -1,40 +0,0 @@
use async_trait::async_trait;
use data_types::{NamespaceId, TableId};
use observability_deps::tracing::*;
use trace::span::{Span, SpanRecorder};
use super::{QueryError, QueryExec};
use crate::query::response::QueryResponse;
#[derive(Debug)]
pub(crate) struct QueryRunner;
impl QueryRunner {
pub(crate) fn new() -> Self {
Self {}
}
}
#[async_trait]
impl QueryExec for QueryRunner {
type Response = QueryResponse;
async fn query_exec(
&self,
namespace_id: NamespaceId,
table_id: TableId,
columns: Vec<String>,
span: Option<Span>,
) -> Result<Self::Response, QueryError> {
let mut _span_recorder = SpanRecorder::new(span);
info!(
namespace_id=%namespace_id,
table_id=%table_id,
columns=?columns,
"executing query"
);
unimplemented!();
}
}

View File

@ -7,7 +7,7 @@ pub(crate) use r#trait::*;
pub(crate) mod partition_response;
pub(crate) mod response;
pub(crate) mod exec;
// Instrumentation
pub(crate) mod instrumentation;
pub(crate) mod tracing;