Skip to content

Commit

Permalink
Change cast error from Internal to NotImplemented (apache#3924)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored and Dandandan committed Nov 5, 2022
1 parent 84f3b33 commit 3a7c83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datafusion/physical-expr/src/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn cast_with_options(
} else if can_cast_types(&expr_type, &cast_type) {
Ok(Arc::new(CastExpr::new(expr, cast_type, cast_options)))
} else {
Err(DataFusionError::Internal(format!(
Err(DataFusionError::NotImplemented(format!(
"Unsupported CAST from {:?} to {:?}",
expr_type, cast_type
)))
Expand Down
2 changes: 1 addition & 1 deletion datafusion/physical-expr/src/expressions/try_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn try_cast(
} else if can_cast_types(&expr_type, &cast_type) {
Ok(Arc::new(TryCastExpr::new(expr, cast_type)))
} else {
Err(DataFusionError::Internal(format!(
Err(DataFusionError::NotImplemented(format!(
"Unsupported CAST from {:?} to {:?}",
expr_type, cast_type
)))
Expand Down

0 comments on commit 3a7c83c

Please sign in to comment.