Cortex AISQL: A Production SQL Engine for Unstructured Data
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2017The Case for Learned Index Structurescited by 188
- 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 101
- 2019Neo: A Learned Query Optimizercited by 80
- 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
- 2020Bao: Learning to Steer Query Optimizerscited by 62
- 2024DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processingcited by 49
- 2019ALEX: An Updatable Adaptive Learned Indexcited by 43
11 more
- 2018BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analyticscited by 41
- 2019Deep Unsupervised Cardinality Estimationcited by 36
- 2018Deep Reinforcement Learning for Join Order Enumerationcited by 25
- 2019DeepDB: Learn from Data, not from Queries!cited by 20
- 2024The Design of an LLM-powered Unstructured Analytics Systemcited by 20
- 2024UQE: A Query Engine for Unstructured Databasescited by 18
- 2020Approximate Selection with Guarantees using Proxiescited by 13
- 2023SUQL: Conversational Search over Structured and Unstructured Data with Large Language Modelscited by 13
- 2024Towards Accurate and Efficient Document Analytics with Large Language Modelscited by 11
- 2020Semantic Indexes for Machine Learning-based Queries over Unstructured Datacited by 10
- 2025Rational Tuning of LLM Cascades via Probabilistic Modelingcited by 9
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Streaming Model Cascades for Semantic SQLcited by 2
- 2026AvalancheBench: Evaluating Enterprise Data Agents Through Latent World Recoverycited by 1
- 2026Larch: Learned Query Optimization for Semantic Predicatescited by 1
- 2026Towards Effective Orchestration of AI x DB Workloadscited by 0
- 2026Agent-Aided Design for Dynamic CAD Modelscited by 0
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregatescited by 0
- 2026MLSkip: Data Skipping for ML Filters via Lightweight Metadatacited by 0
- 2026SemJoin: Semantic Join Optimizationcited by 0
- 2026Compositional Online Learning for Semantic Data Processing Systemscited by 0
- 2026The Stochastic Shift: A New Evaluation Paradigm for Text-to-SQL with AI Operatorscited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnessescited by 0
- 2026Towards Reliable AI Data Scientists: Data Agents with Workflow Harnesses28 Sep 2026
- 2026The Stochastic Shift: A New Evaluation Paradigm for Text-to-SQL with AI Operators17 Sep 2026
- 2026Compositional Online Learning for Semantic Data Processing Systems27 Aug 2026
- 2026SemJoin: Semantic Join Optimization28 Jun 2026
- 2026Larch: Learned Query Optimization for Semantic Predicates6 Jun 2026
- 2026MLSkip: Data Skipping for ML Filters via Lightweight Metadata2 Jun 2026
- 2026AvalancheBench: Evaluating Enterprise Data Agents Through Latent World Recovery22 May 2026
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregates28 Apr 2026
- 2026Agent-Aided Design for Dynamic CAD Models16 Apr 2026
- 2026Streaming Model Cascades for Semantic SQL1 Apr 2026
- 2026Towards Effective Orchestration of AI x DB Workloads4 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026A Semantic-Layer-Mediated Agent for Natural Language to SQL over Heterogeneous Enterprise Databases
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models
- 2026DataClawEval: A Benchmark for Data Engineering Agents in Real Industrial Harness
- 2026A Cost-Aware Agentic Architecture for NL-to-SQL over Nested Enterprise Schemas, with a New Benchmark
- 2025Text2SQL-Flow: A Robust SQL-Aware Data Augmentation Framework for Text-to-SQL
- 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration
- 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views