Skip to content

Conversation

@vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented Apr 24, 2025

What changes were proposed in this pull request?

Properly throw datatype mismatch in single-pass Analyzer. Currently we don't have a way to pass a resolved operator to failOnTypeCheckResult, so we pass None - this simply omits the issueFixedIfAnsiOff functionality.

Why are the changes needed?

This improves error message reporting in single-pass Analyzer.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Apr 24, 2025
@MaxGekk
Copy link
Member

MaxGekk commented Apr 25, 2025

+1, LGTM. Merging to master.
Thank you, @vladimirg-db.

@MaxGekk MaxGekk closed this in c2305ed Apr 25, 2025
yhuang-db pushed a commit to yhuang-db/spark that referenced this pull request Jun 9, 2025
…alyzer

### What changes were proposed in this pull request?

Properly throw datatype mismatch in single-pass Analyzer. Currently we don't have a way to pass a resolved operator to `failOnTypeCheckResult`, so we pass `None` - this simply omits the `issueFixedIfAnsiOff` functionality.

### Why are the changes needed?

This improves error message reporting in single-pass Analyzer.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Existing tests.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#50697 from vladimirg-db/vladimir-golubev_data/throw-datatype-mismatch-in-single-pass-analyzer.

Authored-by: Vladimir Golubev <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants