Skip to content

Implement HAVING MIN/MAX and RESPECT/IGNORE NULLS#154

Merged
makenowjust merged 6 commits intocloudspannerecosystem:mainfrom
apstndb:feature/aggregate-function-calls
Oct 20, 2024
Merged

Implement HAVING MIN/MAX and RESPECT/IGNORE NULLS#154
makenowjust merged 6 commits intocloudspannerecosystem:mainfrom
apstndb:feature/aggregate-function-calls

Conversation

@apstndb
Copy link
Copy Markdown
Contributor

@apstndb apstndb commented Oct 20, 2024

This PR implements the current aggregate function call syntax.

https://cloud.google.com/spanner/docs/reference/standard-sql/aggregate-function-calls#aggregate_function_call_syntax

function_name(
  [ DISTINCT ]
  function_arguments
  [ { IGNORE | RESPECT } NULLS ]
  [ HAVING { MAX | MIN } having_expression ]
)

Note

  • The names NullHandlingModifier and HavingModifier are borrowed from ZetaSQL
  • COUNT(*) doesn't support these modifiers, so CountStarExpr is not updated.

fix #88

apstndb and others added 2 commits October 20, 2024 15:58
Co-authored-by: Hiroya Fujinami <make.just.on@gmail.com>
@apstndb
Copy link
Copy Markdown
Contributor Author

apstndb commented Oct 20, 2024

Conflict resolved and suggestion applied.

@makenowjust makenowjust merged commit 90f4dcb into cloudspannerecosystem:main Oct 20, 2024
@makenowjust
Copy link
Copy Markdown
Collaborator

@apstndb Thank you!

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.

Support current spec of aggregate function calls

2 participants