Skip to content

Conversation

iPeluwa
Copy link
Contributor

@iPeluwa iPeluwa commented Sep 10, 2025

  • Default to TEXT type instead of throwing fatal errors for unknown parameter types
  • Allows arithmetic operations with untyped parameters to work through implicit casting
  • Unify all UTF8 Arrow variants (Utf8, LargeUtf8, Utf8View) to use TEXT type consistently
  • Resolves schema mismatches between TEXT/VARCHAR type expectations

This fixes issues where queries like 'SELECT + ' would fail with 'Unknown parameter type' errors when DataFusion couldn't infer the parameter types from context.

Copy link
Member

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Please remove the .DS_store file and I can merge the patch.

- Default to TEXT type instead of throwing fatal errors for unknown parameter types
- Allows arithmetic operations with untyped parameters to work through implicit casting
- Unify all UTF8 Arrow variants (Utf8, LargeUtf8, Utf8View) to use TEXT type consistently
- Resolves schema mismatches between TEXT/VARCHAR type expectations

This fixes issues where queries like 'SELECT  + ' would fail with 'Unknown parameter type'
errors when DataFusion couldn't infer the parameter types from context.
@iPeluwa iPeluwa force-pushed the fix/parameter-type-inference branch from 4e6cfaf to 24e2db6 Compare September 10, 2025 14:07
@sunng87 sunng87 merged commit 208c010 into datafusion-contrib:master Sep 10, 2025
6 checks passed
@sunng87
Copy link
Member

sunng87 commented Sep 11, 2025

@iPeluwa
Copy link
Contributor Author

iPeluwa commented Sep 11, 2025

#157 @sunng87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants