PrajwalAmte opened a new pull request, #27659:
URL: https://github.com/apache/datafusion/pull/27659

   ## Which issue does this PR close?
   
   Part of #27239.
   
   ## Rationale for this change
   
   Error checks that put the whole message on the `statement error` / `query 
error`
   line are written as escaped regexes, which are hard to read and review. 
Writing
   the message as plain text after `----` makes the check exact and readable.
   
   ## What changes are included in this PR?
   
   Converted the full-message error checks in `cte.slt`, `distinct_on.slt` and
   `ident_normalization.slt` to plain text.
   
   Left as regexes, because the old pattern only matched part of the real error:
   - 4 recursive CTE type-mismatch checks in `cte.slt` (the actual message 
continues with `; cast the non-recursive term to the intended type`)
   - 4 substring checks in `distinct_on.slt`
   
   In `ident_normalization.slt` the two constraint checks now include the
   `DataFusion error:` prefix, so they are exact rather than substring matches.
   
   ## Are these changes tested?
   
   Yes: `cargo test --test sqllogictests -- cte.slt distinct_on.slt 
ident_normalization.slt`
   
   ## Are there any user-facing changes?
   
   No, test files only.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to