refactor: make Selection Copy
parent
aa09cd3579
commit
4caa1d732f
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue