refactor: make Selection Copy

pull/24376/head
Edd Robinson 2021-02-22 12:23:31 +00:00 committed by kodiakhq[bot]
parent aa09cd3579
commit 4caa1d732f
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Copy)]
/// A collection of columns to include in query results.
///
/// The `All` variant denotes that the caller wishes to include all table

View File

@ -522,7 +522,7 @@ impl InfluxRPCPlanner {
);
let chunk_table_schema = chunk
.table_schema(table_name, selection.clone())
.table_schema(table_name, selection)
.await
.map_err(|e| Box::new(e) as _)
.context(GettingTableSchema {

View File

@ -246,7 +246,7 @@ impl PartitionChunk for DBChunk {
// Note Mutable buffer doesn't support predicate
// pushdown (other than pruning out the entire chunk
// via `might_pass_predicate)
let schema: Schema = self.table_schema(table_name, selection.clone()).await?;
let schema: Schema = self.table_schema(table_name, selection).await?;
Ok(Box::pin(MutableBufferChunkStream::new(
Arc::clone(&chunk),