Generate SQL with AI writes a query for you in the Query step of a transformation or a View. Use it to start from a plain description, to change a query you already have, or to fix one that failed validation.
Open the Query step of a transformation or a View and click AI in the editor header. The tooltip reads "Generate with AI". The window that opens, Generate SQL with AI, has the tables on the left and your prompt on the right.
Your choices are remembered when you reopen the window: the table selection, the Create new or Modify choice, and your prompt.
When the editor already has a query, the result opens in Query Difference Checker, which shows Current Query next to AI Suggested Query. Nothing changes until you decide:
If the editor has no query yet, the suggestion is placed in the editor directly and marked Not validated.
When a query fails validation, the Query Validation Error window opens with the details.
You can also close the window and fix the query yourself.
Open the Query step of a transformation or a View and click AI in the editor header. Its tooltip reads "Generate with AI". The editor itself is described on Write and validate a transformation query and Write and validate a View query.
The button is disabled while the AI is busy or the prompt box is empty. Write what the query should do, then try again.
Nothing until you apply. Query Difference Checker shows your Current Query and the AI Suggested Query side by side: Apply Changes replaces your query, and Close keeps it as it is.
Yes. Click the microphone and speak; your words appear over the prompt box while you talk and are added to the prompt when you stop. The Speech Language picker sets the language dictation listens for.
While a request is in flight, the close button and the area around the window are disabled. Wait for it to finish; the result opens for review.
The ones you tick in Select Tables. They are grouped as Lake Tables and DWH Tables; pick the tables your query should read before you generate.
The tables you pick are saved as the dependencies of the transformation or the View. Warehouse tables are saved together with their source systems, so the dependencies you set with Manage Dependencies are not lost. Check the Dependencies step after you apply.
The Query Validation Error window opens with the details. Read Error Details:, optionally add Additional Context (optional), and click Fix with AI for a corrected query; review it in Query Difference Checker and apply it. You can also close the window and fix the query yourself.