Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 committed Jan 15, 2025
1 parent d30434a commit 791aafb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions datafusion/optimizer/tests/optimizer_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use std::sync::Arc;
use arrow::datatypes::{DataType, Field, Schema, SchemaRef, TimeUnit};

use datafusion_common::config::ConfigOptions;
use datafusion_common::{plan_err, Result};
use datafusion_common::{assert_contains, plan_err, Result};
use datafusion_expr::sqlparser::dialect::PostgreSqlDialect;
use datafusion_expr::test::function_stub::sum_udaf;
use datafusion_expr::{AggregateUDF, LogicalPlan, ScalarUDF, TableSource, WindowUDF};
Expand Down Expand Up @@ -405,7 +405,10 @@ fn test_union_coercion_with_wildcard() -> Result<()> {
.err()
.unwrap()
.to_string();
assert_eq!(err, "Error during planning: Wildcard should be expanded before going to the method");
assert_contains!(
err,
"Error during planning: Wildcard should be expanded before type coercion"
);
}
Ok(())
}
Expand Down

0 comments on commit 791aafb

Please sign in to comment.