Generating a comment for a query in Hue

The SQL AI Assistant can generate a comment explaining what SQL query does. You can insert it into the query to improve readability.

Your administrator must have configured and set up the required infrastructure for you to use the SQL AI Assistant. See About setting up the Hue SQL AI Assistant.
  1. Log in to the Data Warehouse service as DWUser.
  2. Open Hue corresponding to your Virtual Warehouse.
  3. Insert a SQL query in the Hue editor for which you want to generate a comment.
  4. Click Assistant on the Hue SQL editor:
    Screenshot showing how to launch the SQL AI Assistant from the Hue web interface.
  5. Click COMMENT.
    Screenshot showing how to use the SQL AI Assistant in Hue to generate a comment for a SQL query.
    The SQL AI Assistant generates a detailed comment for the input SQL query.
    Screenshot showing the comment generated for a SQL query by the SQL AI Assistant in Hue.
    Click Insert to insert the comment into the query.