mlsanityData to 7 Oct 2026

Cortex AISQL: A Production SQL Engine for Unstructured Data

arXiv 2511.07663 ↗First posted 10 Nov 2025cs.DB cs.AI cs.LGcited by 11

Not on the map. Why?

Abstract (arXiv)

Snowflake's Cortex AISQL is a production SQL engine that integrates native semantic operations directly into SQL. This integration allows users to write declarative queries that combine relational operations with semantic reasoning, enabling them to query both structured and unstructured data effortlessly. However, making semantic operations efficient at production scale poses fundamental challenges. Semantic operations are more expensive than traditional SQL operations, possess distinct latency and throughput characteristics, and their cost and selectivity are unknown during query compilation. Furthermore, existing query engines are not designed to optimize semantic operations. The AISQL query execution engine addresses these challenges through three novel techniques informed by production deployment data from Snowflake customers. First, AI-aware query optimization treats AI inference cost as a first-class optimization objective, reasoning about large language model (LLM) cost directly during query planning to achieve 2-8× speedups. Second, adaptive model cascades reduce inference costs by routing most rows through a fast proxy model while escalating uncertain cases to a powerful oracle model, achieving 2-6× speedups while maintaining 90-95% of oracle model quality. Third, semantic join query rewriting lowers the quadratic time complexity of join operations to linear through reformulation as multi-label classification tasks, achieving 15-70× speedups with often improved prediction quality. AISQL is deployed in production at Snowflake, where it powers diverse customer workloads across analytics, search, and content understanding.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 23 of its 41 references that are in the map. First posted on arXiv 10 Nov 2025.

Builds on

23 of 41 references.

References · 23

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
  6. 2017The Case for Learned Index Structurescited by 188
  7. 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 101
  8. 2019Neo: A Learned Query Optimizercited by 80
  9. 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
  10. 2020Bao: Learning to Steer Query Optimizerscited by 62
  11. 2024DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processingcited by 49
  12. 2019ALEX: An Updatable Adaptive Learned Indexcited by 43
11 more
  1. 2018BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analyticscited by 41
  2. 2019Deep Unsupervised Cardinality Estimationcited by 36
  3. 2018Deep Reinforcement Learning for Join Order Enumerationcited by 25
  4. 2019DeepDB: Learn from Data, not from Queries!cited by 20
  5. 2024The Design of an LLM-powered Unstructured Analytics Systemcited by 20
  6. 2024UQE: A Query Engine for Unstructured Databasescited by 18
  7. 2020Approximate Selection with Guarantees using Proxiescited by 13
  8. 2023SUQL: Conversational Search over Structured and Unstructured Data with Large Language Modelscited by 13
  9. 2024Towards Accurate and Efficient Document Analytics with Large Language Modelscited by 11
  10. 2020Semantic Indexes for Machine Learning-based Queries over Unstructured Datacited by 10
  11. 2025Rational Tuning of LLM Cascades via Probabilistic Modelingcited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026A Semantic-Layer-Mediated Agent for Natural Language to SQL over Heterogeneous Enterprise Databases
  2. 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models
  3. 2026DataClawEval: A Benchmark for Data Engineering Agents in Real Industrial Harness
  4. 2026A Cost-Aware Agentic Architecture for NL-to-SQL over Nested Enterprise Schemas, with a New Benchmark
  5. 2025Text2SQL-Flow: A Robust SQL-Aware Data Augmentation Framework for Text-to-SQL
  6. 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
  7. 2025RAISE: Reasoning Agent for Interactive SQL Exploration
  8. 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views