Skip to content

Conversation

mariusandra
Copy link
Collaborator

@mariusandra mariusandra commented Apr 18, 2023

Problem

Makes operating some array functions nicer possible.

Changes

  • something.0 where 0 matches[0-9+] now is considered "tuple access", just like in ClickHouse.
  • We print this out accordingly.
  • This syntax used to error. Use backticks for strings.
  • Adds two new aggregations. These help with running a real world query in the tests. More aggregations coming in another PR.
  • Side effect: makes pivot tables possible

How did you test this code?

  • Added a real world test (pivot tables)

@mariusandra mariusandra requested a review from a team April 18, 2023 10:34
Copy link
Member

@Twixes Twixes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@Twixes Twixes force-pushed the hogql-types-improved branch from 2841a55 to 0136a50 Compare April 18, 2023 14:04
Base automatically changed from hogql-types-improved to master April 18, 2023 20:21
@mariusandra mariusandra merged commit 2921ebb into master Apr 18, 2023
@mariusandra mariusandra deleted the hogql-tuple-access-enabled branch April 18, 2023 20:54
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.

2 participants