Repository: great-expectations/great_expectations
Pull request #11265 (2025-06-24 13:45:54)

[MAINTENANCE] Allow posthog v4 and v5


- [ ] Description of PR changes above includes a link to [an existing GitHub issue](https://github.com/great-expectations/great_expectations/issues)
- [ ] PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB], [MINORBUMP]
- [ ] Code is linted - run `invoke lint` (uses `ruff format` + `ruff check`)
- [ ] Appropriate tests and docs have been updated

For more information about contributing, visit our [community resources](https://docs.greatexpectations.io/docs/core/introduction/community_resources#contribute-code-or-documentation).

After you submit your PR, keep the page open and **monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up** and [reach out on Slack](https://greatexpectations.io/slack) if you need help. Thanks for contributing!


netlify[bot]: ### <span aria-hidden="true">👷</span> Deploy Preview for *niobium-lead-7998* processing.


|  Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | fc654c3b09e3c2d1d9747f2742fb3aadc7cdd89d |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/niobium-lead-7998/deploys/685aac152141020008312151 |
codecov[bot]: ## [Codecov](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 72.92%. Comparing base [(`74fdd9e`)](https://app.codecov.io/gh/great-expectations/great_expectations/commit/74fdd9e63c50f65b01163331494b6f9a1644e99b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) to head [(`fc654c3`)](https://app.codecov.io/gh/great-expectations/great_expectations/commit/fc654c3b09e3c2d1d9747f2742fb3aadc7cdd89d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations).

:white_check_mark: All tests successful. No failed tests found.

> :exclamation:  There is a different number of reports uploaded between BASE (74fdd9e) and HEAD (fc654c3). Click for more details.
> 
> <details><summary>HEAD has 65 uploads less than BASE</summary>
>
>| Flag | BASE (74fdd9e) | HEAD (fc654c3) |
>|------|------|------|
>|3.11|2|1|
>|3.10|2|1|
>|3.12|2|1|
>|3.9|2|1|
>|3.9 clickhouse|2|0|
>|3.12 mysql|2|0|
>|3.9 mssql|2|0|
>|3.9 filesystem|2|0|
>|3.12 filesystem|2|0|
>|3.9 spark_connect|1|0|
>|3.9 mysql|2|0|
>|3.9 postgresql|2|0|
>|3.12 aws_deps|2|0|
>|3.9 aws_deps|2|0|
>|3.12 athena or openpyxl or pyarrow or project or sqlite or aws_creds|2|0|
>|3.9 big|2|0|
>|3.9 spark|1|0|
>|3.12 gx-redshift|1|0|
>|3.9 trino|1|0|
>|3.12 spark|1|0|
>|cloud|1|0|
>|docs-spark|1|0|
>|docs-basic|1|0|
>|3.12 snowflake|1|0|
>|3.9 snowflake|1|0|
>|docs-creds-needed|1|0|
>|3.9 bigquery|1|0|
>|3.12 bigquery|1|0|
>|3.9 databricks|1|0|
>|3.12 databricks|1|0|
>|3.12 big|1|0|
>|3.11 clickhouse|1|0|
>|3.11 aws_deps|1|0|
>|3.11 athena or openpyxl or pyarrow or project or sqlite or aws_creds|1|0|
>|3.9 athena or openpyxl or pyarrow or project or sqlite or aws_creds|1|0|
>|3.11 filesystem|1|0|
>|3.10 mssql|1|0|
>|3.11 mssql|1|0|
>|3.10 clickhouse|1|0|
>|3.10 mysql|1|0|
>|3.10 filesystem|1|0|
>|3.12 mssql|1|0|
>|3.11 mysql|1|0|
>|3.11 postgresql|1|0|
>|3.10 aws_deps|1|0|
>|3.11 spark_connect|1|0|
>|3.12 postgresql|1|0|
>|3.10 postgresql|1|0|
>|3.12 spark_connect|1|0|
>|3.12 trino|1|0|
>|3.10 spark_connect|1|0|
>|3.10 athena or openpyxl or pyarrow or project or sqlite or aws_creds|1|0|
>|3.11 big|1|0|
>|3.10 big|1|0|
></details>

<details><summary>Additional details and impacted files</summary>


```diff
@@             Coverage Diff              @@
##           develop   #11265       +/-   ##
============================================
- Coverage    83.94%   72.92%   -11.03%     
============================================
  Files          463      461        -2     
  Lines        38660    38658        -2     
============================================
- Hits         32453    28190     -4263     
- Misses        6207    10468     +4261     
```

| [Flag](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | Coverage Δ | |
|---|---|---|
| [3.10](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `72.90% <ø> (+0.01%)` | :arrow_up: |
| [3.10 athena or openpyxl or pyarrow or project or sqlite or aws_creds](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 aws_deps](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 big](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 clickhouse](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 filesystem](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 mssql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 mysql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 postgresql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.10 spark_connect](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `72.90% <ø> (ø)` | |
| [3.11 athena or openpyxl or pyarrow or project or sqlite or aws_creds](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 aws_deps](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 big](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 clickhouse](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 filesystem](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 mssql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 mysql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 postgresql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.11 spark_connect](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `72.89% <ø> (-0.02%)` | :arrow_down: |
| [3.12 athena or openpyxl or pyarrow or project or sqlite or aws_creds](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 aws_deps](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 big](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 bigquery](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 databricks](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 filesystem](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 gx-redshift](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 mssql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 mysql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 postgresql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 snowflake](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 spark](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 spark_connect](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.12 trino](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `72.92% <ø> (ø)` | |
| [3.9 athena or openpyxl or pyarrow or project or sqlite or aws_creds](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 aws_deps](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 big](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 bigquery](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 clickhouse](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 databricks](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 filesystem](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 mssql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 mysql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 postgresql](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 snowflake](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 spark](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 spark_connect](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [3.9 trino](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [cloud](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [docs-basic](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [docs-creds-needed](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |
| [docs-spark](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations) | `?` | |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations#carryforward-flags-in-the-pull-request-comment) to find out more.

</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/great-expectations/great_expectations/pull/11265?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=great-expectations).

<details><summary> :rocket: New features to boost your workflow: </summary>

- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>

Patch:
diff --git a/requirements.txt b/requirements.txt
index 1ca5946d7..856d4fe15 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -12,7 +12,7 @@ pandas>=1.1.3,<2.2; python_version == "3.9"
 pandas>=1.3.0,<2.2; python_version >= "3.10"
 pandas<2.2; python_version >= "3.12"
 # analytics
-posthog>3,<4
+posthog>3,<6
 # patch version updates `typing_extensions` to the needed version
 pydantic>=1.10.7
 pyparsing>=2.4


Test patch:
diff --git a/tests/test_packaging.py b/tests/test_packaging.py
index 173b77686..90ddfecac 100644
--- a/tests/test_packaging.py
+++ b/tests/test_packaging.py
@@ -245,7 +245,7 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
         ("requirements-dev.txt", "marshmallow", (("<", "4.0.0"), (">=", "3.7.1"))),
         ("requirements-dev.txt", "moto", (("<", "5.0"), (">=", "4.2.13"))),
         ("requirements-dev.txt", "pandas", (("<", "2.2.0"),)),
-        ("requirements-dev.txt", "posthog", (("<", "4"), (">", "3"))),
+        ("requirements-dev.txt", "posthog", (("<", "6"), (">", "3"))),
         ("requirements-dev.txt", "pyathena", (("<", "3"), (">=", "2.0.0"))),
         (
             "requirements-dev.txt",
@@ -260,5 +260,5 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
         ("requirements.txt", "altair", (("<", "5.0.0"), (">=", "4.2.1"))),
         ("requirements.txt", "marshmallow", (("<", "4.0.0"), (">=", "3.7.1"))),
         ("requirements.txt", "pandas", (("<", "2.2"),)),
-        ("requirements.txt", "posthog", (("<", "4"), (">", "3"))),
+        ("requirements.txt", "posthog", (("<", "6"), (">", "3"))),
     }