: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(hogql): drop set-level offset on placeholder select bodies in cpp parser (#58885)
Robbie9ecfbdd4f3e8
diff --git a/common/hogql_parser/package.json b/common/hogql_parser/package.jsonindex 338795a6b5eb..10b4fb166dd2 100644--- a/common/hogql_parser/package.json+++ b/common/hogql_parser/package.json@@ -1,6 +1,6 @@{"name": "@posthog/hogql-parser",- "version": "1.3.50",+ "version": "1.3.52","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.cppindex 937116124676..2e0bf1143a0c 100644--- a/common/hogql_parser/parser_json.cpp+++ b/common/hogql_parser/parser_json.cpp@@ -652,7 +652,10 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {if (subsequent_clauses.empty()) {Json result = visitAsJSON(ctx->selectStmtWithParens());- if (limit_clause) {+ // A set-level LIMIT/OFFSET clause only attaches to SelectQuery/SelectSetQuery nodes, not a bare placeholder body, matching the Python parser.+ const std::string& result_node = result["node"].getString();+ bool result_takes_limit = result_node == "SelectQuery" || result_node == "SelectSetQuery";+ if (limit_clause && result_takes_limit) {auto exprs = limit_clause->columnExpr();if (limit_clause->OFFSET()) {if (limit_clause->LIMIT()) {diff --git a/common/hogql_parser/setup.py b/common/hogql_parser/setup.pyindex ec19ab24a76a..4fd5d4990304 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.50",+ version="1.3.52",url="https://github.com/PostHog/posthog/tree/master/common/hogql_parser",description="HogQL parser for internal PostHog use",author="PostHog Inc.",diff --git a/frontend/package.json b/frontend/package.jsonindex b837da69161f..252d458e0821 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -66,7 +66,7 @@"@posthog/docs-onboarding": "workspace:*","@posthog/esbuilder": "workspace:*","@posthog/hedgehog-mode": "^0.0.48",- "@posthog/hogql-parser": "1.3.47",+ "@posthog/hogql-parser": "1.3.52","@posthog/hogvm": "workspace:*","@posthog/icons": "^0.36.6","@posthog/products-access-control": "workspace:*",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 35bc8f94e93f..9cdbd86117f6 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -275,7 +275,7 @@ importers:version: 3.12.1jest:specifier: 'catalog:'- version: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))+ version: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))oxfmt:specifier: 'catalog:'version: 0.35.0@@ -445,10 +445,10 @@ importers:version: 7.6.24([email protected])([email protected]([email protected]))([email protected])([email protected])'@storybook/react-webpack5':specifier: ^7.6.4- version: 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@storybook/test-runner':specifier: ^0.16.0- version: 0.16.0(@types/[email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))+ version: 0.16.0(@types/[email protected])([email protected])'@storybook/theming':specifier: ^7.6.4@@ -499,7 +499,7 @@ importers:version: 2.0.0([email protected])webpack:specifier: ^5.88.2+ version: 5.88.2(@swc/[email protected])([email protected])webpack-cli:specifier: ^5.1.4version: 5.1.4([email protected])@@ -590,8 +590,8 @@ importers:specifier: ^0.0.48'@posthog/hogql-parser':- specifier: 1.3.47- version: 1.3.47+ specifier: 1.3.52+ version: 1.3.52'@posthog/hogvm':specifier: workspace:*version: link:../common/hogvm/typescript@@ -1309,7 +1309,7 @@ importers:version: 29.7.0jest-image-snapshot:specifier: ^6.1.0- version: 6.4.0([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))+ version: 6.4.0([email protected](@types/[email protected]))kea-typegen:specifier: 3.6.2-leakfix.5version: 3.6.2-leakfix.5([email protected])@@ -1804,7 +1804,7 @@ importers:version: 7.6.24([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@storybook/test-runner':specifier: ^0.16.0- version: 0.16.0(@types/[email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))+ version: 0.16.0(@types/[email protected])([email protected])'@storybook/theming':specifier: ^7.6.20@@ -1825,7 +1825,7 @@ importers:version: 4.7.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))jest-image-snapshot:specifier: ^6.4.0- version: 6.4.0([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))+ version: 6.4.0([email protected](@types/[email protected]))storybook:specifier: ^7.6.4version: 7.6.4([email protected])@@ -8967,8 +8967,8 @@ packages:react: 18.3.1react-dom: 18.3.1- '@posthog/[email protected]':- resolution: {integrity: sha512-5dWnhUCMnayC/PRhUwibC1QiAUhLsPQLOVJ5qDj1C0P6bSaT77SVGLqrubunXpQV/d5cjUNcSNPfsVnbRDrQlg==}+ '@posthog/[email protected]':+ resolution: {integrity: sha512-PTP/XNKPAoaOcgH54Ux9MBP0CJBqQIkYB62G+XJxwaI5hpGAAzeEMTubFOjLO5zHLxMy0G1qNsWbhpY0CFLwFw==}'@posthog/[email protected]':resolution: {integrity: sha512-xnusbGNz/5vSMUWdEViWuai7D/gxiMZSDDnP6s/acndMqzN+W4asPUgUNnTUps7OyAS1IKaO9zxhdikFrtooJA==}@@ -29270,41 +29270,6 @@ snapshots:- ts-node- utf-8-validate- '@jest/[email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected]))':- dependencies:- '@jest/console': 29.7.0- '@jest/reporters': 29.7.0- '@jest/test-result': 29.7.0- '@jest/transform': 29.7.0- '@jest/types': 29.6.3- '@types/node': 22.18.8- ansi-escapes: 4.3.2- chalk: 4.1.2- ci-info: 3.8.0- exit: 0.1.2- graceful-fs: 4.2.11- jest-changed-files: 29.7.0- jest-config: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- jest-haste-map: 29.7.0- jest-message-util: 29.7.0- jest-regex-util: 29.6.3- jest-resolve: 29.7.0- jest-resolve-dependencies: 29.7.0- jest-runner: 29.7.0- jest-runtime: 29.7.0- jest-snapshot: 29.7.0- jest-util: 29.7.0- jest-validate: 29.7.0- jest-watcher: 29.7.0- micromatch: 4.0.8- pretty-format: 29.7.0- slash: 3.0.0- strip-ansi: 6.0.1- transitivePeerDependencies:- - babel-plugin-macros- - supports-color- - ts-node-'@jest/[email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected]))':dependencies:'@jest/console': 29.7.0@@ -31977,7 +31942,7 @@ snapshots:react-refresh: 0.14.0schema-utils: 3.3.0source-map: 0.7.6+ webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:type-fest: 4.41.0webpack-hot-middleware: 2.25.4@@ -32023,7 +31988,7 @@ snapshots:transitivePeerDependencies:- prop-types- '@posthog/[email protected]': {}+ '@posthog/[email protected]': {}dependencies:@@ -34040,7 +34005,7 @@ snapshots:- encoding- supports-color- '@storybook/[email protected]([email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/core': 7.29.0'@storybook/channels': 7.6.4@@ -34070,12 +34035,12 @@ snapshots:semver: 7.7.4style-loader: 3.3.3([email protected])swc-loader: 0.2.3(@swc/[email protected])([email protected])+ terser-webpack-plugin: 5.3.9(@swc/[email protected])([email protected])ts-dedent: 2.2.0url: 0.11.1util: 0.12.5util-deprecate: 1.0.2+ webpack: 5.88.2(@swc/[email protected])([email protected])webpack-dev-middleware: 6.1.1([email protected])webpack-hot-middleware: 2.25.4webpack-virtual-modules: 0.5.0@@ -34146,7 +34111,7 @@ snapshots:get-port: 5.1.1giget: 1.1.2globby: 11.1.0- jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))+ jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))leven: 3.1.0ora: 5.4.1prettier: 2.8.8@@ -34189,7 +34154,7 @@ snapshots:'@types/cross-spawn': 6.0.2cross-spawn: 7.0.6globby: 11.1.0- jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))+ jscodeshift: 0.15.1(@babel/[email protected](@babel/[email protected]))lodash: 4.18.1prettier: 2.8.8recast: 0.23.11@@ -34481,7 +34446,7 @@ snapshots:'@storybook/[email protected]': {}- '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':+ '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/preset-flow': 7.23.3(@babel/[email protected])'@babel/preset-react': 7.23.3(@babel/[email protected])@@ -34501,7 +34466,7 @@ snapshots:react-dom: 18.3.1([email protected])react-refresh: 0.14.0semver: 7.7.4+ webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:'@babel/core': 7.26.0typescript: 6.0.3@@ -34584,7 +34549,7 @@ snapshots:react-docgen-typescript: 2.2.2([email protected])tslib: 2.8.1typescript: 6.0.3+ webpack: 5.88.2(@swc/[email protected])([email protected])transitivePeerDependencies:- supports-color@@ -34618,10 +34583,10 @@ snapshots:- typescript- vite-plugin-glimmerx- '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':+ '@storybook/[email protected](@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:- '@storybook/builder-webpack5': 7.6.4([email protected])([email protected])([email protected])([email protected])- '@storybook/preset-react-webpack': 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])+ '@storybook/preset-react-webpack': 7.6.4(@babel/[email protected])(@swc/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])'@storybook/react': 7.6.4([email protected])([email protected]([email protected]))([email protected])([email protected])'@types/node': 18.19.130react: 18.3.1@@ -34740,7 +34705,7 @@ snapshots:- encoding- supports-color- '@storybook/[email protected](@types/[email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -34761,10 +34726,10 @@ snapshots:jest-circus: 29.7.0jest-environment-node: 29.7.0jest-junit: 16.0.0- jest-playwright-preset: 4.0.0([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))+ jest-playwright-preset: 4.0.0([email protected])([email protected])([email protected])([email protected])jest-runner: 29.7.0jest-serializer-html: 7.1.0- jest-watch-typeahead: 2.2.2([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])))+ jest-watch-typeahead: 2.2.2([email protected])node-fetch: 2.7.0([email protected])playwright: 1.45.0read-pkg-up: 7.0.1@@ -37028,17 +36993,17 @@ snapshots:dependencies:+ webpack: 5.88.2(@swc/[email protected])([email protected])webpack-cli: 5.1.4([email protected])dependencies:+ webpack: 5.88.2(@swc/[email protected])([email protected])webpack-cli: 5.1.4([email protected])dependencies:+ webpack: 5.88.2(@swc/[email protected])([email protected])webpack-cli: 5.1.4([email protected])'@xmldom/[email protected]': {}@@ -37645,14 +37610,14 @@ snapshots:loader-utils: 2.0.4make-dir: 3.1.0schema-utils: 2.7.1+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:'@babel/core': 7.29.0find-cache-dir: 4.0.0schema-utils: 4.2.0+ webpack: 5.88.2(@swc/[email protected])([email protected])@@ -38722,21 +38687,6 @@ snapshots:safe-buffer: 5.2.1sha.js: 2.4.12- [email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):- dependencies:- '@jest/types': 29.6.3- chalk: 4.1.2- exit: 0.1.2- graceful-fs: 4.2.11- jest-config: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- jest-util: 29.7.0- prompts: 2.4.2- transitivePeerDependencies:- - '@types/node'- - babel-plugin-macros- - supports-color- - ts-node-[email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:'@jest/types': 29.6.3@@ -38849,7 +38799,7 @@ snapshots:postcss-value-parser: 4.2.0schema-utils: 2.7.1semver: 6.3.1+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -38861,7 +38811,7 @@ snapshots:postcss-modules-values: 4.0.0([email protected])postcss-value-parser: 4.2.0semver: 7.7.4+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -40598,7 +40548,7 @@ snapshots:dependencies:loader-utils: 2.0.4schema-utils: 3.3.0+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -40742,7 +40692,7 @@ snapshots:semver: 7.7.4tapable: 2.3.0typescript: 6.0.3+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -41430,7 +41380,7 @@ snapshots:dependencies:html-webpack-plugin: 5.5.3([email protected])+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -41439,7 +41389,7 @@ snapshots:lodash: 4.17.21pretty-error: 4.0.0tapable: 2.2.1+ webpack: 5.88.2(@swc/[email protected])([email protected])[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:@@ -42210,25 +42160,6 @@ snapshots:- ts-node- utf-8-validate- [email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):- dependencies:- '@jest/core': 29.7.0([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- '@jest/test-result': 29.7.0- '@jest/types': 29.6.3- chalk: 4.1.2- create-jest: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- exit: 0.1.2- import-local: 3.2.0- jest-config: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- jest-util: 29.7.0- jest-validate: 29.7.0- yargs: 17.7.2- transitivePeerDependencies:- - '@types/node'- - babel-plugin-macros- - supports-color- - ts-node-[email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:'@jest/core': 29.7.0([email protected](@swc/[email protected])(@types/[email protected])([email protected]))@@ -42301,37 +42232,6 @@ snapshots:- supports-color- utf-8-validate- [email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):- dependencies:- '@babel/core': 7.29.0- '@jest/test-sequencer': 29.7.0- '@jest/types': 29.6.3- babel-jest: 29.7.0(@babel/[email protected])- chalk: 4.1.2- ci-info: 3.8.0- deepmerge: 4.3.1- glob: 7.2.3- graceful-fs: 4.2.11- jest-circus: 29.7.0- jest-environment-node: 29.7.0- jest-get-type: 29.6.3- jest-regex-util: 29.6.3- jest-resolve: 29.7.0- jest-runner: 29.7.0- jest-util: 29.7.0- jest-validate: 29.7.0- micromatch: 4.0.8- parse-json: 5.2.0- pretty-format: 29.7.0- slash: 3.0.0- strip-json-comments: 3.1.1- optionalDependencies:- '@types/node': 22.18.8- transitivePeerDependencies:- - babel-plugin-macros- - supports-color-[email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:'@babel/core': 7.29.0@@ -42582,7 +42482,7 @@ snapshots:optionalDependencies:fsevents: 2.3.3- [email protected]([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))):dependencies:chalk: 4.1.2get-stdin: 5.0.1@@ -42739,7 +42639,7 @@ snapshots:'@types/node': 22.18.8jest-util: 30.0.5- [email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))):dependencies:expect-playwright: 0.8.0jest: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))@@ -43162,7 +43062,7 @@ snapshots:leven: 3.1.0pretty-format: 30.0.5- [email protected]([email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))):dependencies:ansi-escapes: 6.0.0chalk: 5.6.2@@ -43238,18 +43138,6 @@ snapshots:- ts-node- utf-8-validate- [email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):- dependencies:- '@jest/core': 29.7.0([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- '@jest/types': 29.6.3- import-local: 3.2.0- jest-cli: 29.7.0(@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))- transitivePeerDependencies:- - '@types/node'- - babel-plugin-macros- - supports-color- - ts-node-[email protected](@types/[email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:'@jest/core': 29.7.0([email protected](@swc/[email protected])(@types/[email protected])([email protected]))@@ -43320,7 +43208,7 @@ snapshots:dependencies:'@babel/core': 7.29.0'@babel/parser': 7.29.2@@ -43343,7 +43231,7 @@ snapshots:temp: 0.8.4write-file-atomic: 2.4.3optionalDependencies:- '@babel/preset-env': 7.23.5(@babel/[email protected])+ '@babel/preset-env': 7.23.5(@babel/[email protected])transitivePeerDependencies:- supports-color@@ -43617,7 +43505,7 @@ snapshots:less: 4.2.2loader-utils: 2.0.4schema-utils: 3.3.0+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -46113,7 +46001,7 @@ snapshots:postcss: 8.5.6schema-utils: 3.3.0semver: 7.7.0+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -47099,7 +46987,7 @@ snapshots:dependencies:loader-utils: 2.0.4schema-utils: 3.3.0+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -48236,7 +48124,7 @@ snapshots:neo-async: 2.6.2schema-utils: 3.3.0semver: 7.7.0+ webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:sass: 1.56.0@@ -48944,11 +48832,11 @@ snapshots:dependencies:loader-utils: 2.0.4schema-utils: 3.3.0+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:+ webpack: 5.88.2(@swc/[email protected])([email protected])@@ -49152,7 +49040,7 @@ snapshots:dependencies:'@swc/core': 1.15.18+ webpack: 5.88.2(@swc/[email protected])([email protected])@@ -49350,17 +49238,16 @@ snapshots:'@swc/core': 1.15.18esbuild: 0.27.7dependencies:'@jridgewell/trace-mapping': 0.3.29jest-worker: 27.5.1schema-utils: 3.3.0serialize-javascript: 6.0.1terser: 5.19.1+ webpack: 5.88.2(@swc/[email protected])([email protected])optionalDependencies:'@swc/core': 1.15.18- esbuild: 0.18.20dependencies:@@ -49600,27 +49487,6 @@ snapshots:tslib: 2.8.1typescript: 6.0.3- dependencies:- '@cspotcode/source-map-support': 0.8.1- '@tsconfig/node10': 1.0.9- '@tsconfig/node12': 1.0.11- '@tsconfig/node14': 1.0.3- '@tsconfig/node16': 1.0.3- '@types/node': 22.18.8- acorn: 8.15.0- acorn-walk: 8.3.2- arg: 4.1.3- create-require: 1.1.1- diff: 4.0.2- make-error: 1.3.6- typescript: 6.0.3- v8-compile-cache-lib: 3.0.1- yn: 3.1.1- optionalDependencies:- '@swc/core': 1.11.4- optional: true-dependencies:'@cspotcode/source-map-support': 0.8.1@@ -50556,7 +50422,7 @@ snapshots:import-local: 3.1.0interpret: 3.1.1rechoir: 0.8.0+ webpack: 5.88.2(@swc/[email protected])([email protected])webpack-merge: 5.8.0@@ -50567,7 +50433,7 @@ snapshots:range-parser: 1.2.1schema-utils: 4.2.0optionalDependencies:+ webpack: 5.88.2(@swc/[email protected])([email protected])dependencies:@@ -50618,7 +50484,7 @@ snapshots:- esbuild- uglify-jsdependencies:'@types/eslint-scope': 3.7.4'@types/estree': 1.0.1@@ -50641,7 +50507,7 @@ snapshots:neo-async: 2.6.2schema-utils: 3.3.0tapable: 2.2.1+ terser-webpack-plugin: 5.3.9(@swc/[email protected])([email protected])watchpack: 2.4.0webpack-sources: 3.2.3optionalDependencies:diff --git a/posthog/hogql/test/_test_parser.py b/posthog/hogql/test/_test_parser.pyindex 9dd7c8fe0f6e..3586125f04a0 100644--- a/posthog/hogql/test/_test_parser.py+++ b/posthog/hogql/test/_test_parser.py@@ -2273,6 +2273,12 @@ def parser_test_factory(backend: HogQLParserBackend):self.assertEqual(parsed.limit, ast.Constant(value=3))self.assertEqual(parsed.offset, ast.Constant(value=5))+ # A placeholder select body has no node to carry a set-level LIMIT/OFFSET, so both backends drop the clause.+ placeholder = ast.Placeholder(expr=ast.Field(chain=["foo"]))+ for query in ("{foo} offset 1", "{foo} limit 2", "{foo} limit 2 offset 3"):+ with self.subTest(query=query):+ self.assertEqual(self._select(query), placeholder)+def test_select_placeholders(self):self.assertEqual(self._select("select 1 where 1 == {hogql_val_1}"),diff --git a/pyproject.toml b/pyproject.tomlindex 70ac3d026024..4348af02ce1d 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -67,7 +67,7 @@ dependencies = ["grimp~=3.14","grpcio~=1.71.0","gspread==6.2.1",- "hogql-parser==1.3.50",+ "hogql-parser==1.3.52","humanize~=4.12.3","infi-clickhouse-orm","jsonref==1.1.0",diff --git a/uv.lock b/uv.lockindex de29305f4ce9..f1ac41f39374 100644--- a/uv.lock+++ b/uv.lock@@ -11,7 +11,7 @@ resolution-markers = [][options]-exclude-newer = "2026-05-11T14:12:55.335201685Z"+exclude-newer = "2026-05-11T20:02:45.550193Z"exclude-newer-span = "P7D"[options.exclude-newer-package]@@ -2990,14 +2990,14 @@ provides-extras = ["dev"][[package]]name = "hogql-parser"-version = "1.3.50"+version = "1.3.52"source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/13/1c/04038be4a7e255f1528ae12926e26585bbe069083b19714c74ba8321faba/hogql_parser-1.3.50.tar.gz", hash = "sha256:9bb9ae62bbe078a1352290580cfd7cf7bf3108571b63ff8b97f8b9dba7c64672", size = 90572, upload-time = "2026-05-18T14:12:26.688Z" }+sdist = { url = "https://files.pythonhosted.org/packages/7f/b1/990bd3edb7568dd0b0c20ac15c7b1ea1c557ec6909227e1e7a506e59b423/hogql_parser-1.3.52.tar.gz", hash = "sha256:7d9a0ffb85257f62d8e39f23a03f0da4040250a96bc06218e8bd94f313d7ddcd", size = 90575, upload-time = "2026-05-18T19:50:45.282Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/f3/38/5089a6006bdb7729921e3e200b5966cd307b94047bead04e885d86ff8899/hogql_parser-1.3.50-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:19a1d3d102c612e4d262ac0da10f9c1c1d0c2032b4e6c12e36319fbb7c1797ea", size = 663762, upload-time = "2026-05-18T14:12:11.829Z" },- { url = "https://files.pythonhosted.org/packages/cb/82/cf237e6da679f8119984f2673fc7f64ec8707c9f36db08ef0c9c6a536f08/hogql_parser-1.3.50-cp312-cp312-macosx_15_0_x86_64.whl", hash = "sha256:538f60db44b90540b7db8145f7ab70bbe66cc1bb21e9a65342b175980a8b6896", size = 666599, upload-time = "2026-05-18T14:12:13.459Z" },- { url = "https://files.pythonhosted.org/packages/c2/e7/34aeb1e8ea1a27e470cf2c3352934158a746ed5b9626c46ead5359777454/hogql_parser-1.3.50-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:916ae115d1cfaf9566ced49f002e37faa4d523cb013989afe3c4c13cdb42a2c9", size = 5045502, upload-time = "2026-05-18T14:12:15.328Z" },- { url = "https://files.pythonhosted.org/packages/a9/73/41f85af906a0cefc742190eaa6a650925279dde3b38de5e196af34b5a1f0/hogql_parser-1.3.50-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:8cd8a58b123ba2fea106c7fea8210faac0fddba00bb61141fc74438132bb3dab", size = 5154590, upload-time = "2026-05-18T14:12:17.462Z" },+ { url = "https://files.pythonhosted.org/packages/ee/90/cd15e1e8d2824d962d3f1f98d54578f6917c29380877c6e1bdc26e6adc94/hogql_parser-1.3.52-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:98d133d14584d430e6aaaf7dae094a84fb1ebf5768781f3b9ddac49afe7d22a1", size = 663088, upload-time = "2026-05-18T19:50:30.214Z" },+ { url = "https://files.pythonhosted.org/packages/6e/6e/ab1a9ce7a88f66f3cbf4fde4c3e7255a92c4b1a2e89c1ab017cbfdea6a95/hogql_parser-1.3.52-cp312-cp312-macosx_15_0_x86_64.whl", hash = "sha256:af9c36ca5fe6782e8b541dac4a057c6eef9b4486729e48b5c3a76b34900a7b1d", size = 665556, upload-time = "2026-05-18T19:50:32.127Z" },+ { url = "https://files.pythonhosted.org/packages/e2/fd/a3cd665e4b70806d5f02896fa4ec578d9f7dacfc241dc2b765a6e9f76676/hogql_parser-1.3.52-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:208a90cbb813a111b6152df068dd804e3c48b36ad811b1e4606130eb18801ff9", size = 5038740, upload-time = "2026-05-18T19:50:34.187Z" },+ { url = "https://files.pythonhosted.org/packages/9f/5b/3bacda55a7d533b413c9f7a0b67b97df700f1aaa1f51bae8d5425d05fa5f/hogql_parser-1.3.52-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:a5858e15ab12ff0b7bb97a7c28e29634d603a5b4753058e294b8957517767c3f", size = 5143553, upload-time = "2026-05-18T19:50:36.355Z" },][[package]]@@ -5521,7 +5521,7 @@ 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.50" },+ { name = "hogql-parser", specifier = "==1.3.52" },{ 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" },