Queryparser is Uber’s open source Haskell library for parsing and analyzing SQL queries written in different dialects (Vertica, Hive, Presto). It creates a unified AST and supports name resolution using catalog metadata, enabling large-scale query analysis for lineage detection, analytics, and tooling. The parsing logic produces an AST with table and column identifiers that are "raw" or optionally qualified. Frequently, it is desirable to convert the AST over raw names to an AST over resolved names, where identifiers are fully qualified. This transformation is called "name resolution" or simply "resolution". It requires as input the full list of columns in every table and the full list of tables in every schema, otherwise known as "catalog information". The parsing logic produces an AST with table and column identifiers that are "raw" or optionally qualified.

Features

  • Parses multiple SQL dialects: Vertica, Hive, Presto
  • Produces a normalized AST for cross-dialect query representation
  • Supports name resolution via schema/catalog information to fully qualify identifiers
  • Designed for large-scale streaming query analysis pipelines
  • Used to uncover foreign-key relationships and metadata across data warehouses
  • MIT-licensed and built for integration into analytics ecosystems

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Queryparser

Queryparser Web Site

Other Useful Business Software
Skillfully - The future of skills based hiring Icon
Skillfully - The future of skills based hiring

Realistic Workplace Simulations that Show Applicant Skills in Action

Skillfully transforms hiring through AI-powered skill simulations that show you how candidates actually perform before you hire them. Our platform helps companies cut through AI-generated resumes and rehearsed interviews by validating real capabilities in action. Through dynamic job specific simulations and skill-based assessments, companies like Bloomberg and McKinsey have cut screening time by 50% while dramatically improving hire quality.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Queryparser!

Additional Project Details

Programming Language

Haskell

Related Categories

Haskell Parser Generators

Registered

2025-09-04