Introducing Databricks Assistant Quick Fix, a new feature designed to automatically correct common, single-line code errors like syntax mistakes, unresolved columns, and type conversions!
Users can now streamline debugging with AI for faster error resolution. Skip the usual steps—fix errors in one smooth motion. See it in action
Today, we're excited to introduce Databricks Assistant Quick Fix, a powerful new feature designed to automatically correct common, single-line errors such as syntax mistakes, unresolved columns, type conversions, and more.
Our research shows that over 70% of errors are simple mistakes that don’t need lengthy explanations or extensive documentation searches to fix. With Assistant Quick Fix, we've created a more integrated solution to streamline your debugging process, harnessing the power of AI to enhance your coding efficiency.
Assistant Quick Fix leverages the Databricks Assistant to suggest error fixes but is optimized to quickly fix specific errors that users encounter frequently during SQL or Python authoring. A key goal is that Quick Fix is fast. Suggestions are returned quickly and you can accept without taking your hands off the keyboard.
Assistant Quick Fix is capable of resolving a wide range of SQL and Python errors, specifically including:
We designed Quick Fix to be as minimally intrusive as possible. Within 1-3 seconds, you'll receive an inline, single-line suggestion that you can accept (Cmd+’), accept and run (Cmd+ENTER), or reject (ESC).
We tuned Quick Fix to focus on a specific subset of common errors that users encounter frequently. Here are some techniques we leveraged:
After making these adjustments, we saw the following increases in acceptance rates:
Error Type |
Language |
% Improvement over Diagnose Error |
Missing/incorrect columns |
SQL |
14.55% |
PARSE_SYNTAX_ERROR |
SQL |
12.31% |
TABLE_OR_VIEW_NOT_FOUND |
SQL |
20% |
NameError |
Python |
13.89% |
TypeError |
Python |
16.67% |
On top of this, we gathered additional feedback that helped us determine the optimal maximum wait time, patterns for managing active suggestions, and the best way to implement keyboard shortcuts. As a result, we were able to raise our internal acceptance rate by 25%.
We’re continuing to tune what errors can be automatically resolved with Quick Fix. Future enhancements will include fixing multiple errors at once, fixing errors while you type, and adding support for the SQL Editor.
To see Databricks Assistant in action check out our demo video to see how you can use Assistant to build data pipelines, SQL queries, and data visualizations. Learn other ways to use the Databricks Assistant to increase your developer productivity by checking out our blog on Tips and Tricks on using the Databricks Assistant.