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

feat(snql) Support higher order functions in SnQL #2333

Merged
merged 6 commits into from
Jan 12, 2022

Commits on Jan 8, 2022

  1. feat(snql) Support higher order functions in SnQL

    SnQL now supports using lambdas in its clauses. Lambdas are defined as a tuple
    of identifiers, followed by an arrow, followed by a function that may or may not
    use those identifiers. An identifier in SnQL is a set of characters enclosed in
    backticks. The distinction to use backticks was to make parsing and validating
    easier, since the parser doesn't have to try and determine if a string is a
    column or an identifier.
    
    This feature set is slightly more limited than what is available in Clickhouse.
    The major difference is that a lambda can only be used as a parameter in a
    function, and the transformation of a lambda must always be a function itself.
    So (`x`) -> `x` is not a valid lambda.
    
    This change makes using higher order functions such as arrayMap possible, since
    those functions required a lambda to be defined to use them.
    evanh committed Jan 8, 2022
    Configuration menu
    Copy the full SHA
    ae46699 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2022

  1. Configuration menu
    Copy the full SHA
    d98546e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62f4e91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b9ee1d4 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'evanh/feat/support-higher-order-functions' of github.co…

    …m:getsentry/snuba into evanh/feat/support-higher-order-functions
    evanh committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    4218fb7 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Configuration menu
    Copy the full SHA
    fb5a7e8 View commit details
    Browse the repository at this point in the history