You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add autocomplete/intellisense support to writing HogQL queries in PostHog. Allowing users to be able to identify and select fields, properties, and general SQL keywords
Step 1: Make it work
Fields on tables
Lazy join fields
Recursive fields
Field traversers
Table aliases
Properties (StringJSONDatabaseField type)
Property types (string/int/etc)
Table names
Common table expressions
Returning a subset of fields from a table
Constant types (returning a "string" and not a db column)
Step 2: Make it good
Support ast.SelectUnionQuery
Support field aliases in where/order by/group by clauses
HogQL Autocomplete TODOs
What's the goal of this?
To add autocomplete/intellisense support to writing HogQL queries in PostHog. Allowing users to be able to identify and select fields, properties, and general SQL keywords
Step 1: Make it work
StringJSONDatabaseField
type)Step 2: Make it good
ast.SelectUnionQuery
properties.$browser
in awhere
clauseto<Type>
function when there's a type mismatch in comparisonsStep 3: Make it complete
Others
The text was updated successfully, but these errors were encountered: