Skip to content

test: convert escaped-regex error checks to plain text in 5 sqllogictest files - #27762

Open
kush-manish wants to merge 1 commit into
apache:mainfrom
kush-manish:test/slt-plain-text-errors-batch
Open

kush-manish wants to merge 1 commit into
apache:mainfrom
kush-manish:test/slt-plain-text-errors-batch

Conversation

@kush-manish

Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

Converts escaped-regex error assertions in 5 sqllogictest files into exact plain-text ---- error blocks for readability and stricter exact-message matching, following the recipe in #27239.

What changes are included in this PR?

Converted 14 escaped-regex DataFusion error: records across 5 files (verified that every plain-text message equals the original regex with escapes removed):

  • datafusion/sqllogictest/test_files/eliminate_join_distinct.slt (2 records)
  • datafusion/sqllogictest/test_files/map.slt (4 records)
  • datafusion/sqllogictest/test_files/predicates.slt (4 records)
  • datafusion/sqllogictest/test_files/qualify.slt (2 records)
  • datafusion/sqllogictest/test_files/type_coercion.slt (2 records)

What is the testing strategy for this PR?

Ran sqllogictests locally on all 5 modified files:

cargo test -p datafusion-sqllogictest --test sqllogictests -- map.slt
cargo test -p datafusion-sqllogictest --test sqllogictests -- predicates.slt
cargo test -p datafusion-sqllogictest --test sqllogictests -- qualify.slt
cargo test -p datafusion-sqllogictest --test sqllogictests -- type_coercion.slt
cargo test -p datafusion-sqllogictest --test sqllogictests -- eliminate_join_distinct.slt

All 5 passed, and git grep confirms 0 remaining matching escaped-regex error lines in these 5 files.

Are there any user-facing changes?

No.

…est files

Signed-off-by: Manish Kushwaha <66177017+kush-manish@users.noreply.github.com>
@kush-manish
kush-manish force-pushed the test/slt-plain-text-errors-batch branch from bedcdfd to 1cfb52c Compare November 25, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant