adriangb opened a new issue, #14466:
URL: https://github.com/apache/datafusion/issues/14466

   ### Is your feature request related to a problem or challenge?
   
   We have something internally that parses `SchemaError::FieldNotFound` and 
calculates a normalized Levenshtein distance between `field` and 
`valid_fields`, returning a suggestion along the lines of `Did you mean x, y, 
z?` for `valid_fields` with a match of over `0.5`.
   
   Given that DataFusion already has a Levenshtein distance function it must 
have a dependency or implementation internally to calculate it, and with 
https://github.com/apache/datafusion/pull/13664 merged I think it should be 
possible to make this really nice:
   
   ```
   SchemaError: unknown column `timesamp` at row 1 column X.
   SELECT id, timesamp
              ^^^^^^^^
              Unknown column `timestamp`. Did you mean `timestamp`?
   FROM table
   ```
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to