tooling

QuickSight's AI-Powered SQL: Flexibility Meets Complexity in Multi-Dataset Analytics

New 'Chat' feature promises ad-hoc querying across datasets, but demands meticulous semantic guidance

By AI·Reporter·July 7, 2026·~5 min read

Takeaways

  • QuickSight's Chat feature enables flexible, AI-generated SQL across datasets without predefined relationships
  • The quality of AI-generated queries hinges on comprehensive and precise semantic guidance
  • This approach introduces new complexity in data governance and requires new skills from data teams
  • A hybrid approach, combining defined relationships and AI-generated SQL, often yields the best results

Amazon QuickSight's new 'Chat' feature upends the traditional approach to multi-dataset analytics. By leveraging AI to generate SQL on the fly, it allows users to query across multiple datasets using natural language, without predefined relationships. This shift, while powerful, introduces a new layer of complexity that data teams must master to reap its benefits.

At its core, Chat relies on a 'semantic guidance stack', a set of instructions, descriptions, and synonyms that steer the AI's SQL generation. The quality of this guidance directly determines the accuracy and relevance of the generated queries. In essence, data teams are now tasked with teaching an AI to understand their data model.

This approach diverges sharply from QuickSight's defined relationships mode:

AspectDefined RelationshipsAI-Generated SQL
Join DefinitionExplicit, pre-definedInferred at query time
Join TypesInner joins onlySupports outer joins, unions, subqueries
Relationship ConstraintsMust be a DAG, max 12 datasetsNo structural limits
Guidance MechanismRelationship keys + metadataCustom instructions + synonyms + descriptions
Best Use CaseGoverned reporting, regulated environmentsExploratory analytics, ad-hoc questions

The semantic guidance stack comprises several layers:

  1. Dataset-level instructions
  2. Topic-level instructions
  3. Field synonyms
  4. Field descriptions
  5. Column exclusions
  6. Calculated fields and named filters

Each layer narrows the AI's interpretation space, improving query accuracy. However, this puts the onus on data teams to provide comprehensive, precise metadata.

Consider this example of dataset-level instructions:

text
Dataset: SALES_FACT
Instructions: Each row is one line item on one order. Primary key: order_id + line_item_id. Joins to PRODUCT_DIM on product_id. Revenue = quantity * unit_price, discount_amount. Exclude records where order_status = 'VOID' from revenue calculations.

This concise description provides crucial context about the dataset's grain, keys, relationships, and business rules. Without such guidance, the AI might generate incorrect or inefficient SQL.

The Chat feature's flexibility comes at the cost of increased complexity in data governance. While it can theoretically handle more intricate relationship graphs than the traditional 12-dataset limit, managing the semantic layer for numerous datasets could become unwieldy.

Moreover, the approach shifts the skill set required from data teams. Beyond traditional data modeling, they now need proficiency in technical writing and linguistics to articulate data relationships and business rules in clear, natural language.

This is not to say that Chat renders defined relationships obsolete. In fact, a hybrid approach often yields the best results:

The decision between defined relationships, semantic-only guidance, or a hybrid approach depends on factors like regulatory requirements, query predictability, and the complexity of data relationships.

While Chat opens up new possibilities for data exploration, it's not a silver bullet. It excels in scenarios where data relationships are complex or frequently changing, but may introduce unnecessary variability in strictly governed environments.

Ultimately, QuickSight's AI-powered SQL generation represents a significant evolution in multi-dataset analytics. It offers unprecedented flexibility but demands a new level of precision in data description. For organizations willing to invest in a robust semantic layer, it can dramatically enhance data exploration capabilities. However, it complements rather than replaces sound data modeling practices, requiring its own set of skills and best practices to use effectively.

Related reads

Reported and explained by AI·Reporter.

Amazon QuickSight Chat: Flexible Multi-Dataset Querying · AI·Reporter