Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hogql): support non-string funnel breakdowns #22330

Merged
merged 4 commits into from
May 16, 2024

Conversation

thmsobrmlr
Copy link
Contributor

@thmsobrmlr thmsobrmlr commented May 16, 2024

Problem

We're getting errors like this for breakdowns on properties other than strings:

DB::Exception: There is no supertype for types Bool, String because some of them are String/FixedString and some of them are not: While processing [ifNull(transform(replaceRegexpAll(nullIf(nullIf(JSONExtractRaw(properties, 'is_light_mode'), ''), 'null')...

Changes

Casts all breakdown values to strings, preventing the problem

How did you test this code?

Tried a failing insight locally

@thmsobrmlr thmsobrmlr requested a review from a team May 16, 2024 12:03
@thmsobrmlr thmsobrmlr marked this pull request as ready for review May 16, 2024 12:03
@timgl timgl merged commit 5dc6a68 into master May 16, 2024
78 of 80 checks passed
@timgl timgl deleted the fix-funnel-breakdown-types branch May 16, 2024 12:33
thmsobrmlr added a commit that referenced this pull request May 17, 2024
thmsobrmlr added a commit that referenced this pull request May 21, 2024
* fix(hogql): support non-string funnel breakdowns

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants