Skip to content

Commit

Permalink
update document
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Jun 7, 2024
1 parent f41263c commit 34e8923
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion datafusion/common/src/scalar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4816,7 +4816,6 @@ mod tests {
TimestampNanosecond,
Some("UTC".into())
),
// TODO: add them back
make_test_case!(i32_vals, IntervalYearMonthArray, IntervalYearMonth),
make_test_case!(interval_dt_vals, IntervalDayTimeArray, IntervalDayTime),
make_test_case!(
Expand Down
3 changes: 1 addition & 2 deletions datafusion/optimizer/src/analyzer/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ mod test {
use arrow::datatypes::DataType::Utf8;
use arrow::datatypes::{DataType, Field, TimeUnit};

use arrow_buffer::IntervalDayTime;
use datafusion_common::tree_node::{TransformedResult, TreeNode};
use datafusion_common::{DFSchema, DFSchemaRef, Result, ScalarValue};
use datafusion_expr::expr::{self, InSubquery, Like, ScalarFunction};
Expand Down Expand Up @@ -1085,7 +1084,7 @@ mod test {
fn binary_op_date32_op_interval() -> Result<()> {
// CAST(Utf8("1998-03-18") AS Date32) + IntervalDayTime("...")
let expr = cast(lit("1998-03-18"), DataType::Date32)
+ lit(ScalarValue::new_interval_dt(123, 456))
+ lit(ScalarValue::new_interval_dt(123, 456));
let empty = empty();
let plan = LogicalPlan::Projection(Projection::try_new(vec![expr], empty)?);
let expected =
Expand Down
3 changes: 2 additions & 1 deletion datafusion/physical-plan/src/aggregates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,7 @@ mod tests {
))];

let task_ctx = if spill {
// set to an appropriate value to trigger spill
new_spill_ctx(2, 1600)
} else {
Arc::new(TaskContext::default())
Expand Down Expand Up @@ -1545,8 +1546,8 @@ mod tests {
input_schema,
)?);

// enlarge memory limit in spill mode
let task_ctx = if spill {
// enlarge memory limit to let the final aggregation finish
new_spill_ctx(2, 2600)
} else {
task_ctx.clone()
Expand Down

0 comments on commit 34e8923

Please sign in to comment.