Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(hogql): reject statement-level SAMPLE, attach pivot-table sample (#59675)

Robbief03f128c9316
diff --git a/common/hogql_parser/package.json b/common/hogql_parser/package.json
index 9de55d990f94..577e106b71a8 100644
--- a/common/hogql_parser/package.json
+++ b/common/hogql_parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@posthog/hogql-parser",
- "version": "1.3.65",
+ "version": "1.3.66",
"description": "WebAssembly HogQL Parser - Parse HogQL queries in JavaScript/TypeScript",
"keywords": [
"antlr4",
diff --git a/common/hogql_parser/parser_json.cpp b/common/hogql_parser/parser_json.cpp
index 3737beebc8f7..2450aa20d56a 100644
--- a/common/hogql_parser/parser_json.cpp
+++ b/common/hogql_parser/parser_json.cpp
@@ -866,6 +866,10 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
if (ctx->settingsClause()) {
throw NotImplementedError("Unsupported: SelectStmt.settingsClause()");
}
+ // `selectStmt`-level `(USING? sampleClause)?` is DuckDB's `USING SAMPLE`, which HogQL has no AST home for (only table-level `JoinExprTable` SAMPLE lands on `JoinExpr.sample`); reject rather than silently drop.
+ if (!ctx->sampleClause().empty()) {
+ throw NotImplementedError("Unsupported: SelectStmt.sampleClause()");
+ }
return json;
}
diff --git a/common/hogql_parser/setup.py b/common/hogql_parser/setup.py
index 924463bd14c7..289d3d3a7d0f 100644
--- a/common/hogql_parser/setup.py
+++ b/common/hogql_parser/setup.py
@@ -36,7 +36,7 @@ module = Extension(
setup(
name="hogql_parser",
- version="1.3.65",
+ version="1.3.66",
url="https://github.com/PostHog/posthog/tree/master/common/hogql_parser",
description="HogQL parser for internal PostHog use",
author="PostHog Inc.",
diff --git a/posthog/hogql/parser.py b/posthog/hogql/parser.py
index f15463c6b91f..94977b2a65ec 100644
--- a/posthog/hogql/parser.py
+++ b/posthog/hogql/parser.py
@@ -1037,6 +1037,9 @@ class HogQLParseTreeConverter(ParseTreeVisitor):
raise NotImplementedError(f"Unsupported: SelectStmt.topClause()")
if ctx.settingsClause():
raise NotImplementedError(f"Unsupported: SelectStmt.settingsClause()")
+ # `selectStmt`-level `(USING? sampleClause)?` is DuckDB's `USING SAMPLE`, which HogQL has no AST home for (only table-level `JoinExprTable` SAMPLE lands on `JoinExpr.sample`); reject rather than silently drop.
+ if ctx.sampleClause():
+ raise NotImplementedError(f"Unsupported: SelectStmt.sampleClause()")
return select_query
diff --git a/posthog/hogql/test/_test_parser.py b/posthog/hogql/test/_test_parser.py
index 4d7faad8a5ad..900a50c0075f 100644
--- a/posthog/hogql/test/_test_parser.py
+++ b/posthog/hogql/test/_test_parser.py
@@ -2647,6 +2647,20 @@ def parser_test_factory(backend: HogQLParserBackend):
),
)
+ @parameterized.expand(
+ [
+ ("using_sample_before_group_by", "select 1 from events using sample 0.1"),
+ ("bare_sample_statement_level", "select 1 from events where 1 sample 0.1 group by 1"),
+ ("using_sample_after_qualify", "select 1 from events qualify 1 using sample 0.1"),
+ ("sample_after_unpivot", "select 1 from (a positional join b) unpivot (m for n in (o)) sample 0.5"),
+ ("table_and_statement_sample", "select 1 from events sample 0.1 using sample 0.2"),
+ ]
+ )
+ def test_statement_level_sample_rejected(self, _name: str, query: str):
+ # `selectStmt`-level `(USING? sampleClause)?` is DuckDB's `USING SAMPLE`, which HogQL has no AST home for; every backend rejects rather than silently dropping it.
+ with self.assertRaises((ExposedHogQLError, SyntaxError)):
+ self._select(query)
+
def test_select_with_columns(self):
self.assertEqual(
self._select("with event as boo select boo from events"),
@@ -5876,7 +5890,7 @@ def parser_test_factory(backend: HogQLParserBackend):
@no_memory_leak_check
def test_join_op_grammar_alts_validation(self):
- # `joinOp` has three disjoint alts (`HogQLParser.g4:127-134`):
+ # `joinOp` has three disjoint alts:
# JoinOpInner, JoinOpLeftRight, JoinOpFull. Each keyword appears
# at most once per alt, and the three alts don't share INNER /
# LEFT / RIGHT / FULL. Rust's source-order loop set booleans
@@ -6653,12 +6667,15 @@ def parser_test_factory(backend: HogQLParserBackend):
"SELECT * FROM a JOIN b JOIN c JOIN d ON 1 ON 2 ON 3 ON 4",
# Mixed CROSS in chain: constraint can't fall through.
"SELECT * FROM a JOIN b ON 1 CROSS JOIN c ON 2",
+ # Statement-level `USING SAMPLE` (the peel loop must not treat the `USING` as a join constraint): it's DuckDB's statement-level sample, which HogQL doesn't implement, so it's rejected rather than silently dropped.
+ "SELECT * FROM t USING SAMPLE 0.5",
+ "SELECT * FROM t USING SAMPLE 0.5 OFFSET 0.1",
):
with self.assertRaises(ExposedHogQLError, msg=src):
parse_select(src, backend="cpp-json")
with self.assertRaises(ExposedHogQLError, msg=src):
parse_select(src, backend="rust-json")
- # Guards: regular JOIN+constraint, stacked ON chains, bare CROSS JOIN, and statement-level `USING SAMPLE` (peel loop must not intercept).
+ # Guards: regular JOIN+constraint, stacked ON chains, bare CROSS JOIN.
for src in (
"SELECT * FROM a JOIN b ON 1",
"SELECT * FROM a JOIN b USING (x)",
@@ -6666,8 +6683,6 @@ def parser_test_factory(backend: HogQLParserBackend):
"SELECT * FROM a CROSS JOIN b",
"SELECT * FROM a JOIN b JOIN c ON 1 ON 2",
"SELECT * FROM a JOIN b JOIN c JOIN d ON 1 ON 2 ON 3",
- "SELECT * FROM t USING SAMPLE 0.5",
- "SELECT * FROM t USING SAMPLE 0.5 OFFSET 0.1",
# Outer JOIN around a parens-wrapped inner JoinExpr still attaches one constraint at the outer level.
"SELECT * FROM (a JOIN b) JOIN c ON 1",
"SELECT * FROM a JOIN (b JOIN c ON 1) ON 2",
diff --git a/posthog/hogql/test/test_parser_cpp_bug_xfails.py b/posthog/hogql/test/test_parser_cpp_bug_xfails.py
deleted file mode 100644
index bd37139e262d..000000000000
--- a/posthog/hogql/test/test_parser_cpp_bug_xfails.py
+++ /dev/null
@@ -1,50 +0,0 @@
-"""Documented divergences where the C++ ANTLR parser misbehaves and the Rust hand-roll is correct.
-
-Each test asserts the *eventual* desired behaviour — typically that both backends produce the same AST.
-Today the C++ side diverges, so the assertion fails and the test is decorated `@unittest.expectedFailure`.
-When the C++ parser is fixed and the assertion passes, pytest reports XPASS — which becomes a failure
-under `unittest`'s `expectedFailure` semantics — and that's the signal to delete the xfail test and
-verify cpp matches rust.
-
-Keep one test per cpp bug. Each test's docstring explains:
-
- 1. What the source string is.
- 2. What C++ currently does (the bug).
- 3. What Rust does (the correct behaviour).
- 4. Why C++ is wrong (grammar / visitor reference).
-
-For Rust-correctness regression tests (where Rust used to be wrong and we fixed it), see the
-parity-regression tests in `_test_parser.py`. This file is the inverse: regressions for *C++* whose
-AST the Rust port deliberately does not bug-match.
-"""
-
-import unittest
-from posthog.test.base import BaseTest
-
-from posthog.hogql.parser import parse_select
-from posthog.hogql.visitor import clear_locations
-
-
-class TestParserCppBugXfails(BaseTest):
- maxDiff = None
-
- @unittest.expectedFailure
- def test_sample_after_unpivot_on_join_expr_parens(self):
- # `select 1 from (a positional join b) unpivot (m for n in (o)) sample 0.5`
- # cpp: silently drops the trailing `SAMPLE 0.5`. ANTLR parses cleanly — the grammar admits
- # `sampleClause` in three positions: at joinExpr level via `JoinExprTable: tableExpr FINAL?
- # sampleClause?` (alt 124) and at selectStmt level via `(USING? sampleClause)?` (HogQLParser.g4
- # lines 75 and 79). For this input, `(a positional join b)` is a JoinExprParens (alt 125), then
- # `JoinExprUnpivot` (alt 123) wraps it — that's a joinExpr, not a tableExpr, so the SAMPLE
- # lands at the selectStmt slot instead. The bug is in the visitor: `VISIT(SelectStmt)` in
- # `parser_json.cpp` never calls `ctx->sampleClause()`, so the parsed SAMPLE subtree is
- # silently dropped from the emitted JSON. The only `ctx->sampleClause()` call in the whole
- # visitor is inside `VISIT(JoinExprTable)` (joinExpr-level only).
- # rust: attaches the SAMPLE to the outer JoinExpr's `.sample` field, preserving the user's
- # SAMPLE intent. When cpp's `VISIT(SelectStmt)` is taught to visit `ctx->sampleClause()`
- # (follow-up), both backends will agree on a shape (either rust's or a third-place
- # attachment) and this test starts XPASSing — that's the signal to delete it.
- q = "select 1 from (a positional join b) unpivot (m for n in (o)) sample 0.5"
- cpp_ast = clear_locations(parse_select(q, backend="cpp-json"))
- rust_ast = clear_locations(parse_select(q, backend="rust-json"))
- self.assertEqual(cpp_ast, rust_ast)
diff --git a/pyproject.toml b/pyproject.toml
index 5de6be29c701..a885c4aa8d80 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -67,8 +67,8 @@ dependencies = [
"grimp~=3.14",
"grpcio~=1.71.0",
"gspread==6.2.1",
- "hogql-parser==1.3.65",
- "hogql-parser-rs==1.3.71", # built from rust/hogql/parser via the build-hogql-parser-rs workflow + published to PyPI; rebuild locally with `uv pip install -e rust/hogql/parser` when iterating
+ "hogql-parser==1.3.66",
+ "hogql-parser-rs==1.3.72", # built from rust/hogql/parser via the build-hogql-parser-rs workflow + published to PyPI; rebuild locally with `uv pip install -e rust/hogql/parser` when iterating
"humanize~=4.12.3",
"infi-clickhouse-orm",
"jsonref==1.1.0",
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 54ba047d9da6..3ebe838ecb0a 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -4142,7 +4142,7 @@ dependencies = [
[[package]]
name = "hogql_parser_rs"
-version = "1.3.71"
+version = "1.3.72"
dependencies = [
"pyo3",
"serde_json",
diff --git a/rust/hogql/parser/Cargo.toml b/rust/hogql/parser/Cargo.toml
index dcf08bea0c88..c3c762d0f12d 100644
--- a/rust/hogql/parser/Cargo.toml
+++ b/rust/hogql/parser/Cargo.toml
@@ -3,7 +3,7 @@ name = "hogql_parser_rs"
# Track the cpp parser in `common/hogql_parser/setup.py` — both ship as
# wheels named after the same HogQL grammar revision, so versions move in
# lockstep.
-version = "1.3.71"
+version = "1.3.72"
edition = "2021"
publish = false
diff --git a/rust/hogql/parser/pyproject.toml b/rust/hogql/parser/pyproject.toml
index 8569eb335608..d24c62344a17 100644
--- a/rust/hogql/parser/pyproject.toml
+++ b/rust/hogql/parser/pyproject.toml
@@ -10,7 +10,7 @@ build-backend = "maturin"
name = "hogql_parser_rs"
# Mirrors `rust/hogql/parser/Cargo.toml` and `common/hogql_parser/setup.py`.
# All three move in lockstep on every HogQL grammar change.
-version = "1.3.71"
+version = "1.3.72"
description = "Hand-rolled Rust HogQL parser with C++-parity AST output"
readme = "README.md"
requires-python = ">=3.12"
diff --git a/rust/hogql/parser/src/parse/join.rs b/rust/hogql/parser/src/parse/join.rs
index 33beff1aa9af..767e2e9e85b4 100644
--- a/rust/hogql/parser/src/parse/join.rs
+++ b/rust/hogql/parser/src/parse/join.rs
@@ -201,6 +201,8 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
joined_any: bool,
table_start: usize,
) -> Result<E::Value, ParseError> {
+ // A trailing `sampleClause` binds here only for a tableExpr-pivot. Grammar has PIVOT at two levels: `tableExpr PIVOT (…)` (TableExprPivot, still a tableExpr, which feeds `JoinExprTable: tableExpr FINAL? sampleClause?`) and `joinExpr PIVOT (…)` (JoinExprPivot, a joinExpr). SAMPLE attaches only when the operand is a lone tableExpr: no JOIN happened and the atom isn't a parens-wrapped JOIN chain. Otherwise it's the statement-level `(USING? sampleClause)?`, left for `reject_select_level_sample`.
+ let operand_is_table_expr = !joined_any && !self.emit.has_field(&left, "next_join");
// For the single-atom case (no JOIN happened) the chain is a
// JoinExpr that only wraps a bare Field — unwrap to match cpp's
// shape (PivotExpr's `table` is the bare Field). When the
@@ -235,11 +237,15 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
// Wrap the PivotExpr/UnpivotExpr in an outer JoinExpr (the C++
// visitor's JoinExprPivot does the same).
// Grammar order: `TableExprAlias` (alias + columnAliases) binds
- // inside `tableExpr`, then `JoinExprTable` adds `FINAL?
- // sampleClause?`.
+ // inside `tableExpr`, then `JoinExprTable` adds `FINAL?`.
let (alias, column_aliases) = self.consume_table_alias_chain()?;
let table_final = self.eat_kw(Kw::Final)?;
- let sample = self.try_consume_sample()?;
+ // Table-level SAMPLE (`tableExpr FINAL? sampleClause?`) binds only to a tableExpr-pivot; a joinExpr-pivot's trailing SAMPLE is statement-level, left for `reject_select_level_sample`.
+ let sample = if operand_is_table_expr {
+ self.try_consume_sample()?
+ } else {
+ None
+ };
let outer = self
.emit
.join_expr(wrapped, alias, None, column_aliases, table_final, sample);
@@ -292,7 +298,7 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
self.bump()?;
seen_any_kw = true;
// Each modifier keyword may appear at most once. cpp's
- // ANTLR alts (`HogQLParser.g4:127–134`) each reference each
+ // ANTLR `joinOp` alts each reference each
// keyword at most once; rust was silently OR-ing duplicates
// into the boolean state, so `INNER INNER JOIN` /
// `LEFT OUTER LEFT JOIN` slipped through.
@@ -331,8 +337,8 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
return Ok(None);
}
- // Grammar validation. The three `joinOp` alts (see
- // `HogQLParser.g4:127–134`) partition the keyword set:
+ // Grammar validation. The three `joinOp` alts partition the
+ // keyword set:
// JoinOpInner ⇒ INNER + at most one of ALL/ANY/ASOF; or
// ANTI; or SEMI; or ASOF (ANTI|SEMI). No
// LEFT/RIGHT/FULL/OUTER.
@@ -358,7 +364,7 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
if outer && !(left || right || full) {
return Err(self.err("OUTER requires LEFT/RIGHT/FULL"));
}
- // Within-category arity per `HogQLParser.g4:127–134`:
+ // Within-category arity per the `joinOp` alts:
// - At most one of ALL/ANY/ASOF in any alt (the grammar
// references the group as `(ALL|ANY|ASOF)?`, never twice).
// - ANTI and SEMI never together — inner-style admits `ANTI`,
diff --git a/rust/hogql/parser/src/parse/select.rs b/rust/hogql/parser/src/parse/select.rs
index 42261524fcad..56963298d37d 100644
--- a/rust/hogql/parser/src/parse/select.rs
+++ b/rust/hogql/parser/src/parse/select.rs
@@ -549,12 +549,8 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
let _v = self.parse_expr_bp(0)?;
self.emit.set_field(&mut obj, "where", _v);
}
- // `(USING? SAMPLE …)?` — the grammar allows a SAMPLE clause at
- // SELECT level (before GROUP BY *and* after QUALIFY). Both
- // positions attach to the FROM table's existing JoinExpr.sample
- // slot. The leading USING is optional in the first position
- // and required in the second; we just accept either.
- self.try_attach_select_level_sample(&mut obj)?;
+ // `selectStmt`-level `(USING? sampleClause)?` (before GROUP BY): DuckDB's `USING SAMPLE`, rejected not dropped.
+ self.reject_select_level_sample()?;
if matches!(self.peek(), TokenKind::Keyword(Kw::Group))
&& self.peek_next() == TokenKind::Keyword(Kw::By)
{
@@ -673,9 +669,8 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
let _v = self.parse_expr_bp(0)?;
self.emit.set_field(&mut obj, "qualify", _v);
}
- // Second `USING SAMPLE` opportunity per the grammar (after
- // QUALIFY, before WINDOW). Same attach-to-FROM-table logic.
- self.try_attach_select_level_sample(&mut obj)?;
+ // Second `selectStmt`-level `(USING sampleClause)?` slot (after QUALIFY): same DuckDB `USING SAMPLE`, rejected not dropped.
+ self.reject_select_level_sample()?;
// WINDOW clause — minimal: WINDOW name AS (...) [, ...].
if self.eat_kw(Kw::Window)? {
let mut windows: std::collections::BTreeMap<String, E::Value> =
@@ -1268,26 +1263,18 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
)
}
- /// Consume an optional `[USING] SAMPLE …` clause at SELECT level
- /// and discard it — the grammar's `selectStmt` rule allows this
- /// clause in two positions, but the cpp visitor's `VISIT(SelectStmt)`
- /// doesn't read the `sampleClause` from either slot. Only the
- /// table-level form (consumed inside `parse_table_atom` while
- /// building the JoinExpr) ends up on `JoinExpr.sample`. We mirror
- /// the silent-drop behaviour here so the parser accepts the syntax
- /// without diverging from cpp.
- fn try_attach_select_level_sample(&mut self, _obj: &mut E::Value) -> Result<(), ParseError> {
- let saw_sample = if self.peek_kw2(Kw::Using, Kw::Sample) {
- self.bump()?; // USING
- true
- } else {
- matches!(self.peek(), TokenKind::Keyword(Kw::Sample))
- };
+ /// Reject `selectStmt`-level `[USING] SAMPLE`: DuckDB's `USING SAMPLE`, which HogQL has no AST home for (only table-level `JoinExprTable` lands on `JoinExpr.sample`), so reject rather than silently drop. Matches the python + cpp visitors' `NotImplementedError`.
+ fn reject_select_level_sample(&mut self) -> Result<(), ParseError> {
+ let saw_sample = self.peek_kw2(Kw::Using, Kw::Sample)
+ || matches!(self.peek(), TokenKind::Keyword(Kw::Sample));
if !saw_sample {
return Ok(());
}
- drop(self.try_consume_sample()?);
- Ok(())
+ Err(ParseError::not_implemented(
+ "Unsupported: SelectStmt.sampleClause()",
+ self.peek0.start,
+ self.peek0.end,
+ ))
}
/// LIMIT BY columnExprList: comma-separated columnExprs. Two
diff --git a/uv.lock b/uv.lock
index 01069f1f90ba..b70b6d005ece 100644
--- a/uv.lock
+++ b/uv.lock
@@ -11,7 +11,7 @@ resolution-markers = [
]
[options]
-exclude-newer = "2026-05-15T14:24:42.622753923Z"
+exclude-newer = "2026-05-15T16:35:27.522223Z"
exclude-newer-span = "P7D"
[options.exclude-newer-package]
@@ -3015,28 +3015,28 @@ provides-extras = ["dev"]
[[package]]
name = "hogql-parser"
-version = "1.3.65"
+version = "1.3.66"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/72/a7/0c83fb3fc6e9f7d707576939b2bffdf4dccfe946d8aff3c8aaa944c994d9/hogql_parser-1.3.65.tar.gz", hash = "sha256:db69056bc9ebe5cfd340c4f832f6858ea69248ff3157ebcf6cd17c1e1338fa15", size = 92054, upload-time = "2026-05-21T12:28:42.025Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/ae/ba/f8a401c758392089fc0b8d6f7745a725c98231808f0a6d98be2560f03637/hogql_parser-1.3.66.tar.gz", hash = "sha256:863ed5028647f505403954a4df11cc193e268cb40af7e66bd1f93414d6260d64", size = 92042, upload-time = "2026-05-22T16:32:23.176Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/c0/ed/534ee52471e56578c5e3931ef3fe1a416f54c223b933fc1aef2e2873b0af/hogql_parser-1.3.65-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:5cc32eb60460b29d4f488103508bc3dee9c183e960edb6ffeb3aa97e430419e0", size = 665537, upload-time = "2026-05-21T12:28:24.738Z" },
- { url = "https://files.pythonhosted.org/packages/1b/d7/8ac4cc3d4ad813b650f3364278cc6fcce0857f1cd68783bff668bf6fdbeb/hogql_parser-1.3.65-cp312-cp312-macosx_15_0_x86_64.whl", hash = "sha256:04bec35fbf61ca8c40daaf40cb5c5d3b7cd4cfc99d987660ab87a15ea5da5df5", size = 670454, upload-time = "2026-05-21T12:28:27.294Z" },
- { url = "https://files.pythonhosted.org/packages/b2/3f/db59ceb34bedda8d73ab88f8320164b8e9593d6ed70d410c3e528fbeff6a/hogql_parser-1.3.65-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:fd37e39d4b64c94c20da24ee4c912409ed38cb190cf666186c9b1da4d4bcc25f", size = 5061473, upload-time = "2026-05-21T12:28:29.248Z" },
- { url = "https://files.pythonhosted.org/packages/0e/f6/92e91a66f79350d9815ad8c147c7f7b546dbe7ae6120b8ffaacfe89d7788/hogql_parser-1.3.65-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:eae6dc24bb1e715f9257d0ee3b0bb17d28debda760870d3e2a70f81a22e72c24", size = 5167945, upload-time = "2026-05-21T12:28:31.602Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/94/802702c60418f5b3181624018532c8310bebc1da42a3919d420a07f0dcd5/hogql_parser-1.3.66-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:a45c49d831d3dadbb0d9d4f0617289d16315632632ec292d4740ea406890a080", size = 654400, upload-time = "2026-05-22T16:32:05.386Z" },
+ { url = "https://files.pythonhosted.org/packages/12/3f/2f50b3cfe0e97683eddbe6d960970e5989bc43bf45ded2f581551e3ced36/hogql_parser-1.3.66-cp312-cp312-macosx_15_0_x86_64.whl", hash = "sha256:76a6246dc0b9d4b75965a1e15ba926bddb83b7cae297f4c567df00432c53def8", size = 670521, upload-time = "2026-05-22T16:32:07.073Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/28/fccc5f92e95724b12c93a632c0f3d2bc37cd483c2389bac1e2fbab3c3e94/hogql_parser-1.3.66-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:7359e8892cd1044a1207b6a9914a56411e1b9eda0cd335656d0a6eed776ada87", size = 5065157, upload-time = "2026-05-22T16:32:08.881Z" },
+ { url = "https://files.pythonhosted.org/packages/56/3a/c43c4972a2a8b9588d7a9afc3dcf882506d053f045ba1503151c4a14cd9e/hogql_parser-1.3.66-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:7b52a755466e697f3b6865ccc9bb9943852222afb303652d2176868c4b7036a5", size = 5171652, upload-time = "2026-05-22T16:32:11.846Z" },
]
[[package]]
name = "hogql-parser-rs"
-version = "1.3.71"
+version = "1.3.72"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/34/03/a1c7dbd1cbfec77b49c9d4b9cb6734d577948a68ab49b7a86d1b6a958192/hogql_parser_rs-1.3.71.tar.gz", hash = "sha256:9761fb1720fb68dd005a0335fe2193466571a5e398cb8e7059ef14bbaa451a55", size = 257342, upload-time = "2026-05-22T14:24:24.232Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/6b/e7/921674b57dda8dcf18fa98e9f601fa11e3d61a426aa6c447362fe7d92219/hogql_parser_rs-1.3.72.tar.gz", hash = "sha256:587bf0609f431545700fc880d9219f37c25d0865d8a20633059866f925957103", size = 257587, upload-time = "2026-05-22T16:26:02.601Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/0c/23/be275691f68bd1b6d611ffa398fd6b2d263502c24ae85bf298db9981fecd/hogql_parser_rs-1.3.71-cp312-abi3-macosx_10_12_x86_64.whl", hash = "sha256:96541e331b9e11175392a0fc4acb6f05aa509b1345d5389dcc519f4c93c4c6e2", size = 701321, upload-time = "2026-05-22T14:24:10.771Z" },
- { url = "https://files.pythonhosted.org/packages/a6/27/0c7d1f9b739c5ee0c77803faca87bba9cede6efe151ad0eb3bbf77c906e3/hogql_parser_rs-1.3.71-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:986593ac3fb366b753e47ed8fb0c015818b180b8fc97b4901014d4885fd83c10", size = 662953, upload-time = "2026-05-22T14:24:12.734Z" },
- { url = "https://files.pythonhosted.org/packages/6f/eb/45bc3f8cc05c514d3c9704dcef1d4d0b6ae94c0bd0b66303bf43a0ee3c6d/hogql_parser_rs-1.3.71-cp312-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:93aed9372e3fa2aa1775622a2df68741b6c928a83c90363c24f2d11a2d357551", size = 2407360, upload-time = "2026-05-22T14:24:15.06Z" },
- { url = "https://files.pythonhosted.org/packages/aa/fc/d865fc82b167ba77ed797ca13482afd37723d59829de9314ff11746ff079/hogql_parser_rs-1.3.71-cp312-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:d73c11a37ca40de3fd022d714e62f6c725b3eb78884cc5a90f4d1300dbe9fa97", size = 2658541, upload-time = "2026-05-22T14:24:17.32Z" },
- { url = "https://files.pythonhosted.org/packages/9b/4b/a072d993a8373e17e7f4406475c0847d49c84e1cf13c53d9cf7206c4a015/hogql_parser_rs-1.3.71-cp312-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:47a9e66f76e1d5d897cff6b6f773f6989d94ca4b7d83b7cd39576a4fd3be4b7b", size = 2579339, upload-time = "2026-05-22T14:24:19.8Z" },
- { url = "https://files.pythonhosted.org/packages/b5/a4/d3d0ee2d42283a175c3b63af866eac9e3b640af0315262d5442a224b4cdd/hogql_parser_rs-1.3.71-cp312-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6c5e4283ab7634f6946da67e04492f4a7f0801e36eab1bc1e352f1b1cc677453", size = 2626413, upload-time = "2026-05-22T14:24:21.484Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/c9/0a7515d96c68817e8b7ea9fdea009188b0bb5ac387d7538c12cd87572ef7/hogql_parser_rs-1.3.72-cp312-abi3-macosx_10_12_x86_64.whl", hash = "sha256:f12bff693dd1bf6c45b9baf7e53864f9848b02315cf526a4a09bd26e3038873d", size = 701227, upload-time = "2026-05-22T16:25:50.209Z" },
+ { url = "https://files.pythonhosted.org/packages/3f/a1/aa0d76e8e9ad3011ea58f04e9461e265a51cfb19540639bb5bf0f31b2c73/hogql_parser_rs-1.3.72-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:c99da60fc6c8a8ea20062b3341d57a8e0f6396b11a07c31a329c33519f8ee2b2", size = 662794, upload-time = "2026-05-22T16:25:51.917Z" },
+ { url = "https://files.pythonhosted.org/packages/63/4f/bc8b67e6b7311a1def454f0e406d3bb8d3dbca9316c1861d53e90fcabbc5/hogql_parser_rs-1.3.72-cp312-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:1cc08aa01a439eb2ebca52666a39ac97e3d54cd5f36c7f31b5725c0b45446c7f", size = 2406931, upload-time = "2026-05-22T16:25:54.012Z" },
+ { url = "https://files.pythonhosted.org/packages/97/b5/188cdfe2a12afce6546ffd7ed9c85d7962ccf71bed0b3e08c4ddd8f73e9b/hogql_parser_rs-1.3.72-cp312-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:132cddee12c02f040aef141c468c090df16ebf21033feec578beacbc297a2fbb", size = 2658950, upload-time = "2026-05-22T16:25:55.682Z" },
+ { url = "https://files.pythonhosted.org/packages/60/03/85c2baa011956582ba74cd1fc270627ddba884dd35f9d00e40028177bed0/hogql_parser_rs-1.3.72-cp312-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2eb182ec64760022403bc8d8d347b775d00bb91a776c663f816fb96f8379aad1", size = 2578784, upload-time = "2026-05-22T16:25:58.098Z" },
+ { url = "https://files.pythonhosted.org/packages/c6/1f/0b2eb1717f9267580fdfee652b4a355e4c29ba108152f1e277be47fa2b67/hogql_parser_rs-1.3.72-cp312-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d1d8842c2bad8950a125c0112e755db3ac671a00f239a548d30146f918a67ce5", size = 2625749, upload-time = "2026-05-22T16:26:00.414Z" },
]
[[package]]
@@ -5566,8 +5566,8 @@ requires-dist = [
{ name = "grimp", specifier = "~=3.14" },
{ name = "grpcio", specifier = "~=1.71.0" },
{ name = "gspread", specifier = "==6.2.1" },
- { name = "hogql-parser", specifier = "==1.3.65" },
- { name = "hogql-parser-rs", specifier = "==1.3.71" },
+ { name = "hogql-parser", specifier = "==1.3.66" },
+ { name = "hogql-parser-rs", specifier = "==1.3.72" },
{ name = "humanize", specifier = "~=4.12.3" },
{ name = "infi-clickhouse-orm", git = "https://github.com/PostHog/infi.clickhouse_orm?rev=4e3996becf66bf5c26580aff12a80425d9d56fe5" },
{ name = "jsonref", specifier = "==1.1.0" },