Skip to content

Commit 96638e3

Browse files
committed
update
1 parent cb3a53b commit 96638e3

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

src/runtime/streaming/operators/grouping/incremental_aggregate.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ impl IncrementalAggregatingFunc {
465465
state
466466
});
467467

468-
for (idx, v) in agg.state_cols.iter().zip(state.into_iter()) {
468+
for (idx, v) in agg.state_cols.iter().zip(state) {
469469
states[*idx].push(v);
470470
}
471471
}
@@ -543,7 +543,7 @@ impl IncrementalAggregatingFunc {
543543
}
544544
}
545545

546-
let mut cols = self.key_converter.convert_rows(rows.into_iter())?;
546+
let mut cols = self.key_converter.convert_rows(rows)?;
547547
cols.push(Arc::new(accumulator_builder.finish()));
548548
cols.push(Arc::new(args_row_builder.finish()));
549549
cols.push(Arc::new(count_builder.finish()));
@@ -612,7 +612,7 @@ impl IncrementalAggregatingFunc {
612612
mem::take(&mut self.updated_keys).into_iter().unzip();
613613
let mut deleted_keys = vec![];
614614

615-
for (k, retract) in updated_keys.iter().zip(updated_values.into_iter()) {
615+
for (k, retract) in updated_keys.iter().zip(updated_values) {
616616
let append = self.evaluate(&k.0)?;
617617

618618
if let Some(v) = retract {

src/sql/logical_planner/streaming_planner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl PlanToGraphVisitor<'_> {
341341
let node_index = self.graph.add_node(execution_unit);
342342
self.add_index_to_traversal(node_index);
343343

344-
for (source, edge) in input_nodes.into_iter().zip(routing_edges.into_iter()) {
344+
for (source, edge) in input_nodes.into_iter().zip(routing_edges) {
345345
self.graph.add_edge(source, node_index, edge);
346346
}
347347

src/sql/types/data_type.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,11 @@ fn convert_simple_data_type(
9898
}
9999
},
100100
SQLDataType::Date => Ok(DataType::Date32),
101-
SQLDataType::Time(None, tz_info) => {
101+
SQLDataType::Time(None, tz_info)
102102
if matches!(tz_info, TimezoneInfo::None)
103-
|| matches!(tz_info, TimezoneInfo::WithoutTimeZone)
104-
{
105-
Ok(DataType::Time64(TimeUnit::Nanosecond))
106-
} else {
107-
return plan_err!("Unsupported SQL type {sql_type:?}");
108-
}
103+
|| matches!(tz_info, TimezoneInfo::WithoutTimeZone) =>
104+
{
105+
Ok(DataType::Time64(TimeUnit::Nanosecond))
109106
}
110107
SQLDataType::Numeric(exact_number_info) | SQLDataType::Decimal(exact_number_info) => {
111108
let (precision, scale) = match *exact_number_info {

tests/integration/framework/instance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
from types import TracebackType
2121
from typing import TYPE_CHECKING, Any, Optional, Type
2222

23-
from .paths import PathManager
24-
from .config import InstanceConfig
23+
from .config import InstanceConfig, PathManager
2524
from .process import FunctionStreamProcess
2625
from .utils import find_free_port, wait_for_port
2726
from .workspace import InstanceWorkspace

0 commit comments

Comments
 (0)