Pith. sign in

Cortex AISQL: A Production SQL Engine for Unstructured Data

8 Pith papers cite this work. Polarity classification is still indexing.

8 Pith papers citing it
abstract

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$\times$ 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$\times$ 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$\times$ 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.

citation-role summary

background 1

citation-polarity summary

fields

cs.DB 7 cs.AI 1

years

2026 7 2025 1

roles

background 1

polarities

background 1

representative citing papers

PLOP: Cost-Based Placement of Semantic Operators in Hybrid Query Plans

cs.DB · 2026-04-10 · conditional · novelty 7.0

PLOP is a cost-based optimizer that finds optimal placements for semantic LLM operators in hybrid query plans via dynamic programming, delivering up to 1.5x speedup and 4.29x cost reduction on 44 benchmark queries while preserving accuracy.

SemJoin: Semantic Join Optimization

cs.DB · 2026-06-28 · unverdicted · novelty 6.0

SemJoin dynamically routes semantic joins via an LLM advisor to Cluster Join or Classifier strategies, achieving 20-33 higher F1 than ABJ and lower token cost than FDJ on three datasets.

Larch: Learned Query Optimization for Semantic Predicates

cs.DB · 2026-06-06 · unverdicted · novelty 6.0

Larch uses a GNN-MDP formulation and a selectivity predictor plus dynamic programming to reorder semantic filter evaluation, cutting token usage 3x-19x versus prior systems on real and synthetic workloads.

Selectivity Estimation for Semantic Filters on Image Data

cs.DB · 2026-06-03 · unverdicted · novelty 6.0

Semantic Histograms treat semantic image filters as implicit range queries in embedding space and use two specificity estimators whose ensemble reduces end-to-end query optimization and execution overhead by up to 86%.

MLSkip: Data Skipping for ML Filters via Lightweight Metadata

cs.DB · 2026-06-02 · unverdicted · novelty 6.0

MLSkip demonstrates that lightweight metadata enables data skipping for ReLU-based ML filters, with 27.4% average pruning using min-max and 38.31% using 2D convex hulls on TPC benchmarks, for a 1.07x end-to-end speedup.

Agent-Aided Design for Dynamic CAD Models

cs.AI · 2026-04-16 · unverdicted · novelty 6.0

AADvark extends agent-aided CAD design to dynamic 3D assemblies with movable parts by integrating constraint solvers and visual feedback to create a verification signal for the agent.

Access Paths for Efficient Ordering with Large Language Models

cs.DB · 2025-08-30 · unverdicted · novelty 6.0

Introduces the LLM ORDER BY semantic operator with algorithmic improvements, a semantic-aware external merge sort, and a budget-aware optimizer that selects near-optimal access paths for LLM-based ordering.

citing papers explorer

Showing 8 of 8 citing papers.

  • PLOP: Cost-Based Placement of Semantic Operators in Hybrid Query Plans cs.DB · 2026-04-10 · conditional · none · ref 19 · internal anchor

    PLOP is a cost-based optimizer that finds optimal placements for semantic LLM operators in hybrid query plans via dynamic programming, delivering up to 1.5x speedup and 4.29x cost reduction on 44 benchmark queries while preserving accuracy.

  • SemJoin: Semantic Join Optimization cs.DB · 2026-06-28 · unverdicted · none · ref 3 · internal anchor

    SemJoin dynamically routes semantic joins via an LLM advisor to Cluster Join or Classifier strategies, achieving 20-33 higher F1 than ABJ and lower token cost than FDJ on three datasets.

  • Larch: Learned Query Optimization for Semantic Predicates cs.DB · 2026-06-06 · unverdicted · none · ref 34 · internal anchor

    Larch uses a GNN-MDP formulation and a selectivity predictor plus dynamic programming to reorder semantic filter evaluation, cutting token usage 3x-19x versus prior systems on real and synthetic workloads.

  • Selectivity Estimation for Semantic Filters on Image Data cs.DB · 2026-06-03 · unverdicted · none · ref 1 · internal anchor

    Semantic Histograms treat semantic image filters as implicit range queries in embedding space and use two specificity estimators whose ensemble reduces end-to-end query optimization and execution overhead by up to 86%.

  • MLSkip: Data Skipping for ML Filters via Lightweight Metadata cs.DB · 2026-06-02 · unverdicted · none · ref 1 · internal anchor

    MLSkip demonstrates that lightweight metadata enables data skipping for ReLU-based ML filters, with 27.4% average pruning using min-max and 38.31% using 2D convex hulls on TPC benchmarks, for a 1.07x end-to-end speedup.

  • AvalancheBench: Evaluating Enterprise Data Agents Through Latent World Recovery cs.DB · 2026-05-22 · unverdicted · none · ref 6 · internal anchor

    AvalancheBench introduces a benchmark for data agents based on recovering a known latent world from observations, reporting that the best coding agent recovers only 26% on an e-commerce case.

  • Agent-Aided Design for Dynamic CAD Models cs.AI · 2026-04-16 · unverdicted · none · ref 20 · internal anchor

    AADvark extends agent-aided CAD design to dynamic 3D assemblies with movable parts by integrating constraint solvers and visual feedback to create a verification signal for the agent.

  • Access Paths for Efficient Ordering with Large Language Models cs.DB · 2025-08-30 · unverdicted · none · ref 2 · internal anchor

    Introduces the LLM ORDER BY semantic operator with algorithmic improvements, a semantic-aware external merge sort, and a budget-aware optimizer that selects near-optimal access paths for LLM-based ordering.