Skip to content

Commit

Permalink
reabse changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlifoobar committed Jul 17, 2024
1 parent 7ac2dc8 commit b8eb341
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datafusion/sql/src/statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,8 +1153,8 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
let value_string = match &value[0] {
SQLExpr::Identifier(i) => ident_to_string(i),
SQLExpr::Value(v) => match crate::utils::value_to_string(v) {
Err(_) => return plan_err!("Unsupported Value {}", value[0]),
Ok(v) => v,
None => return plan_err!("Unsupported Value {}", value[0]),
Some(v) => v,
},
// for capture signed number e.g. +8, -8
SQLExpr::UnaryOp { op, expr } => match op {
Expand Down
2 changes: 1 addition & 1 deletion datafusion/sql/tests/sql_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fn test_parse_options_value_normalization() {
enable_options_value_normalization,
},
);
if let Ok(plan) = plan {
if let Ok(plan) = plan {
assert_eq!(expected_plan, format!("{plan:?}"));

match plan {
Expand Down

0 comments on commit b8eb341

Please sign in to comment.