Skip to content

Commit 6796053

Browse files
authored
test: update sqllogictest expectation for negation type coercion (#21102)
## Which issue does this PR close? - Fixes CI breakage on main introduced by #20965. link: https://github.com/apache/datafusion/actions/runs/23406116823/job/68085237860 ## Rationale for this change #20965 moved invalid negation validation into the analyzer/type coercion path. After that change, the `SELECT -'100'` sqllogictest case now reports the error through `type_coercion`, but `scalar.slt` was still expecting the older error form. This follow-up updates the sqllogictest expectation to match the current behavior. ## What changes are included in this PR? - update the `scalar.slt` expectation for `SELECT -'100'` - keep the expected error aligned with the analyzer/type coercion error shape introduced by #20965 ## Are these changes tested? Yes. I reproduced the failure locally and verified the updated expectation with: - `cargo test -p datafusion-sqllogictest --test sqllogictests -- scalar` ## Are there any user-facing changes? No. Signed-off-by: yaommen <myanstu@163.com>
1 parent 646d183 commit 6796053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/sqllogictest/test_files/scalar.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ SELECT null, -null
17641764
----
17651765
NULL NULL
17661766

1767-
query error DataFusion error: Error during planning: Negation only supports numeric, interval and timestamp types
1767+
query error type_coercion\ncaused by\nError during planning: Negation only supports numeric, interval and timestamp types
17681768
SELECT -'100'
17691769

17701770
query error DataFusion error: Error during planning: Unary operator '\+' only supports numeric, interval and timestamp types

0 commit comments

Comments
 (0)