docs(breakdowns): Document SQL expression aliasing for readable labels#16495
Open
inkeep[bot] wants to merge 1 commit intomasterfrom
Open
docs(breakdowns): Document SQL expression aliasing for readable labels#16495inkeep[bot] wants to merge 1 commit intomasterfrom
inkeep[bot] wants to merge 1 commit intomasterfrom
Conversation
Document the `AS column_name` and `-- column_name` aliasing technique for SQL breakdown expressions, matching the in-product hint added in PostHog/posthog#55405.
Contributor
Deploy preview
|
Contributor
|
Vale prose linter → found 0 errors, 8 warnings, 0 suggestions in your markdown Full report → Copy the linter results into an LLM to batch-fix issues. Linter being weird? Update the rules!
|
| Line | Severity | Message | Rule |
|---|---|---|---|
| 11:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 13:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 15:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 17:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 19:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 21:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 23:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
| 25:66 | warning | Use 'PostHog' instead of 'posthog'. | Vale.Terms |
rafaeelaudibert
approved these changes
Apr 21, 2026
Contributor
|
Hey @rafaeelaudibert! This docs PR was generated for you by an agent. You're responsible for reviewing and merging it into production.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds documentation for the SQL expression aliasing technique in breakdown configurations. Users can add
AS column_nameor-- column_nameto the end of their SQL expressions to create readable labels in charts and tables, rather than showing raw SQL expressions.This documents functionality that was already available but not previously documented. PR PostHog/posthog#55405 adds an in-product hint surfacing this tip, and this docs update ensures the information is also available in the documentation.
Related PR
This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.