This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 6796053fa0 test: update sqllogictest expectation for negation type 
coercion (#21102)
6796053fa0 is described below

commit 6796053fa0b19070b558f1bd2f95b5a1f8e1c025
Author: yaommen <[email protected]>
AuthorDate: Mon Mar 23 08:08:47 2026 +0800

    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 <[email protected]>
---
 datafusion/sqllogictest/test_files/scalar.slt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datafusion/sqllogictest/test_files/scalar.slt 
b/datafusion/sqllogictest/test_files/scalar.slt
index 9d0bc4f7e4..ccb166189c 100644
--- a/datafusion/sqllogictest/test_files/scalar.slt
+++ b/datafusion/sqllogictest/test_files/scalar.slt
@@ -1764,7 +1764,7 @@ SELECT null, -null
 ----
 NULL NULL
 
-query error DataFusion error: Error during planning: Negation only supports 
numeric, interval and timestamp types
+query error type_coercion\ncaused by\nError during planning: Negation only 
supports numeric, interval and timestamp types
 SELECT -'100'
 
 query error DataFusion error: Error during planning: Unary operator '\+' only 
supports numeric, interval and timestamp types


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to