-
Notifications
You must be signed in to change notification settings - Fork 4
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
HogQL & Data Exploration next steps #81
Comments
This was referenced Jan 17, 2023
This was referenced Feb 1, 2023
This was referenced Feb 8, 2023
This was referenced Feb 24, 2023
This was referenced Mar 14, 2023
mariusandra
changed the title
Data Exploration next steps
HogQL & Data Exploration next steps
Jun 5, 2023
41 tasks
Just came here to say I love this feature, it's solving a problem I was trying to figure out myself just now, and that you're a beast for working on this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HogQL / Data Exploration TODO
These are the next steps to work on. Scroll below for old completed points.
Insight conversion
#130
HogQL
int
&float
properties (all "number" properties are presented the JSONnumber
aka the SQLfloat
now). Do we want "int" properties?team_id
guard into PREWHERE, or keep in WHEREOrDefault
aggregations''
and null strings'null'
in materialized properties.team_id
early in HogQL joins posthog#15966persons
AND
filters intoraw_persons
subquery)HogQL feature completeness
JOIN ... USING ...
posthog#20660JOIN ... AS ...
posthog#20661countDistinctIf
posthog#20662COALESCE
vscoalesce
posthog#20668SUM
vssum
posthog#21469Event explorer UX
Pivot tables
source
either HogQLQuery or EventsQueryInsights, Dashboards, Frontend
<Query query={} />
something any other React app can import and usedataNodeLogic
, especially for dashboards.Consolidated 2023-02-02
The lists above were getting long, so moved (2nd of Feb 2023) all the completed points below:
Events table
Aggregated node should nest the events nodeMake new EventsQuery nodecoalesce(url, screen)
and filters?where
part in the UI, and not exactly this loosely related PR)where
Bring back saved columnsNot happening, will save as insights instead.property_filter_to_hogql
abstractionHogQL
startOfDay
), and which not (evalMLMethod
).%
breaking things due to python'sstring.format
(moved vars to vars, but someone could still write a symbol thatf""
interprets down the line. Make sure we combine the query in a clear way)Backend
/query
endpoint, and add a router on the backend. At first support just the newEventsQuery
Pivot tables
Insights, Dashboards, Frontend
Consolidated 2023-06-06
This list was pasted on the 6th of June, 2023 after launching the HogQL public beta.
HogQL
Internal RFC
where
for team_id when making queries in ClickHouseselect e.bla from events e
), conflict avoidance feat(hogql): symbol resolution posthog#14185*
expansion on tables feat(hogql): asterisk expander posthog#14271HogQLQuery
node in/query
feat(hogql): HogQLQuery node and data table support posthog#14265dataNodeLogic
level feat(data-exploration): cancel hogql & events queries posthog#14662countDistinct()
function feat(hogql): count distinct and count star posthog#14786toInt
) for event and person properties, per team feat(hogql): automatic event and person property types posthog#14795/query
to/debug
chore(hogql): rename /query to /debug posthog#14729Events table
Pivot tables
Consolidated 2023-12-07
HogQL
/query
API endpoint. Ideally autogenerated. HogQL API docs (the most basic version) posthog.com#6096==
and!=
fix(hogql): null handling with == and != comparisons, attempt 2 posthog#16259tumble
doesn't work fix(hoql): convert datetimes for clickhouse tumble function posthog#16000toDate(timestamp)
does not work. What's the alternative? fix(hogql): Properly compiletoDate
based on type info posthog#16757if
when PoEv2 enabledwhere events.organization.name = 'PostHog'
) feat: Added lazy joins for groups on events posthog#17950toDate(now())
(we aliastoDate
totoDateOrNull
, which only takes a String argument, not DateTime) fix(hogql): Properly compiletoDate
based on type info posthog#16757/debug
view (add sidebar, better examples, etc)select session.duration
Data Exploration / Interlinking
EventsQuery().to_ast()
orHogQLQuery().to_ast()
{ kind: PersonsQuery, source: { kind: InsightQuery, day: 3, breakdown: 'fish' } }
The text was updated successfully, but these errors were encountered: