Databricks AI Assistant: SQL Review

Introduction

Databricks' AI Assistant recently went Generally Available (GA), but is it truly GA ready? We took it for a SQL spin (see video below), and we are happy to say that not only is it ready, but it has come a long way to become an "A" grade feature in Databricks. Here are some thoughts:

Pros:

  1. Leveraged metadata from the UC catalog to not only understand which fields to choose, but also to locate the table I was looking for without specifying the table (see "Test 1" in the video as an example).

  2. While I didn't need to fix a broken query, it consistently gave functional SQL output and was able to adjust an existing query (second part of Test 6 in the video) successfully.

  3. It was able to formulate a complex SQL query extremely well. I was 100% expecting "Test 4" to fail, but at a quick glance of the SQL query, it looked right and about what I would expect the query to look like for this finance/accounting exercise.

  4. Fairly nit-picky prompts (Test 5 and 6) returned solid SQL code.

  5. It followed my instructions very well without adding unnecessary details that I did not ask for.

Cons:

  1. While I didn't encounter errors during my testing, diagnosing broken code is still a hit or miss experience.

Thoughts & Conclusions

Benjamin Rogojan (Seattle Data Guy) and I chatted about Text-2-SQL experiences from the past as we were recording a video, and after seeing Databricks AI Assistant go GA, I knew I had to put it through a test like this.

Based on my experience with it, I would definitely pick the Databricks AI Assistant to write SQL code for me any day vs leveraging another tool such as ChatGPT, especially with its connection to your Unity Catalog metadata.

Watch a Quick Walkthrough

For a more in-depth look at this video:

Previous
Previous

Fabric Meets Databricks: A Preliminary Review for Data Practitioners

Next
Next

Demystifying the Data Mesh: Key Aspects and Strategic Considerations.