Skip to main content
When the AI modifies your SQL query, it doesn’t overwrite your draft directly. Instead, it sets a suggested query that appears as a diff in the editor.

How it works

  1. You ask the AI to change your query (e.g. “add a WHERE clause for active users”).
  2. The AI writes the updated SQL and sets it as a suggested query.
  3. The editor switches to a diff view showing what changed — additions in green, removals in red.
  4. 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.
This ensures you always review and approve changes before they affect your dataset.