How it works
- You ask the AI to change your query (e.g. “add a WHERE clause for active users”).
- The AI writes the updated SQL and sets it as a suggested query.
- The editor switches to a diff view showing what changed — additions in green, removals in red.
- You review the changes and choose to accept or reject.
Accepting
Click Accept (or the equivalent button) to apply the suggestion. The suggested query becomes your new draft, and you can continue editing or save (Cmd+S) to publish.Rejecting
Click Reject to discard the suggestion. Your original draft remains unchanged.When suggestions appear
The AI uses suggestions (rather than direct edits) for any query modification:- Fixing errors after “Send to chat.”
- Adding columns, filters, or joins.
- Optimizing or rewriting queries.
- Any change requested in the chat.
Related
- Draft, suggest, publish — the full query lifecycle.
- SQL errors — debugging with the AI.
- AI overview