Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
2010YOUY01 committed Dec 1, 2024
1 parent 28f0f33 commit f171bee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions datafusion/functions-table/src/generate_series.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct GenerateSeriesTable {
#[derive(Debug, Clone)]
struct GenerateSeriesState {
schema: SchemaRef,
_start: i64, // Kept for display
start: i64, // Kept for display
end: i64,
batch_size: usize,

Expand All @@ -58,7 +58,7 @@ impl fmt::Display for GenerateSeriesState {
write!(
f,
"generate_series: start={}, end={}, batch_size={}",
self._start, self.end, self.batch_size
self.start, self.end, self.batch_size
)
}
}
Expand Down Expand Up @@ -116,7 +116,7 @@ impl TableProvider for GenerateSeriesTable {
self.schema.clone(),
vec![Arc::new(RwLock::new(GenerateSeriesState {
schema: self.schema.clone(),
_start: start,
start,
end,
current: start,
batch_size,
Expand All @@ -129,7 +129,7 @@ impl TableProvider for GenerateSeriesTable {
self.schema.clone(),
vec![Arc::new(RwLock::new(GenerateSeriesState {
schema: self.schema.clone(),
_start: 0,
start: 0,
end: 0,
current: 1,
batch_size,
Expand Down
2 changes: 1 addition & 1 deletion datafusion/physical-plan/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ pub struct LazyMemoryExec {
schema: SchemaRef,
/// Functions to generate batches for each partition
batch_generators: Vec<Arc<RwLock<dyn LazyBatchGenerator>>>,
/// Total number of rows to generate for statistics
/// Plan properties cache storing equivalence properties, partitioning, and execution mode
cache: PlanProperties,
}

Expand Down

0 comments on commit f171bee

Please sign in to comment.