Skip to content

Commit 685f5d6

Browse files
authored
fix error message typo (apache#17570)
1 parent 3f22f8c commit 685f5d6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

datafusion/sql/src/expr/substring.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
7979
}
8080
}
8181

82-
not_impl_err!("Substring could not be planned by registered expr planner. Hint: enable the `unicode_expressions" )
82+
not_impl_err!("Substring could not be planned by registered expr planner. \
83+
Hint: Please try with `unicode_expressions` DataFusion feature enabled")
8384
}
8485
}

datafusion/sql/tests/sql_integration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4633,7 +4633,7 @@ fn test_no_substring_registered() {
46334633

46344634
assert_snapshot!(
46354635
err.strip_backtrace(),
4636-
@"This feature is not implemented: Substring could not be planned by registered expr planner. Hint: enable the `unicode_expressions"
4636+
@"This feature is not implemented: Substring could not be planned by registered expr planner. Hint: Please try with `unicode_expressions` DataFusion feature enabled"
46374637
);
46384638
}
46394639

@@ -4645,7 +4645,7 @@ fn test_no_substring_registered_alt_syntax() {
46454645

46464646
assert_snapshot!(
46474647
err.strip_backtrace(),
4648-
@"This feature is not implemented: Substring could not be planned by registered expr planner. Hint: enable the `unicode_expressions"
4648+
@"This feature is not implemented: Substring could not be planned by registered expr planner. Hint: Please try with `unicode_expressions` DataFusion feature enabled"
46494649
);
46504650
}
46514651

0 commit comments

Comments
 (0)