# uber/queryparser

Parsing and analysis of Vertica, Hive, and Presto SQL.

Repository: https://github.com/uber/queryparser
Canonical: https://ross.abutalabs.com/products/queryparser
Language: Haskell
License: MIT
License Family: permissive
Last push: 2022-02-16T11:16:33+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3429, "days_push": 1659, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1077, forks 146 (observed 2026-08-28T04:03:29.679486+00:00)

## What it is
A Haskell library for parsing and analyzing SQL queries in Vertica, Hive, and Presto dialects into a shared abstract syntax tree. It provides name resolution and analyses such as table/column access, joins, and table lineage.

## Use cases
- parse hive sql queries
- extract table lineage from presto queries
- find which columns a sql query accesses
- analyze joins in vertica sql
- resolve table and column names in sql queries
- build sql query analysis tooling

## When to choose
- you need to parse Vertica, Hive, or Presto SQL dialects
- you want column-level or table-level lineage analysis of SQL queries
- you are building tooling on top of a Haskell SQL AST

## When to avoid
- you need to parse other SQL dialects like MySQL or Postgres
- you need a maintained tool with recent releases
- you are not working in Haskell or cannot integrate with it

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, nlp
- domain: databases, parsers, developer-tools
- platform: cross-platform, cli
- tags: sql-parsing, vertica, hive, presto, haskell, query-analysis, lineage, ast

## Member repositories
- uber/queryparser (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.679486+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:17.622034+00:00, confidence not recorded.
  - readme: https://github.com/uber/queryparser (fetched 2026-08-28T04:03:29.679486+00:00, sha 518f0e3b897c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
