Querying lakehouse data using Maui AI chat in Cloudera Lakehouse Engine

Use natural language to discover schemas and execute read-only queries against Cloudera Lakehouse Engine.

In this scenario, a business analyst or data consumer uses Cloudera Lakehouse Engine AI chat to explore lakehouse data without writing manual SQL statements. Cloudera Lakehouse Engine AI chat interprets the natural language question, generates and validates a Trino SQL query, and presents it for user confirmation before executing it against the cluster.

Ensure Apache Ranger policies grant you access to the catalogs, schemas, and tables you want to query.

  1. In the chat interface, enter your data question in natural language.

    Example: Top 10 customers by revenue last month.

  2. Review the generated Trino SQL. The agent validates the query before running it. If validation finds a problem, the agent explains it and suggests a fix.
    • pass: Validated across all layers.
    • pass_with_warnings: Validated with structural or performance notes.
    • failed_layer1, failed_layer2, or failed_layer3: Validation failed; the agent reports recommendations or engine error messages.
  3. Confirm query execution when prompted by the approval gate.
The agent executes the read-only query and displays the returned data directly in the chat.