Skip to content

Conversation

@arnaud-lacurie
Copy link
Collaborator

Summary

Documents standard SQL aggregate and scalar functions with comprehensive examples and runnable tests.

Aggregate Functions

Added documentation for:

  • COUNT - Count rows or non-NULL values
  • SUM - Sum of non-NULL values
  • AVG - Average (returns DOUBLE)
  • MIN - Minimum value
  • MAX - Maximum value

Scalar Functions

Added documentation for:

  • GREATEST - Returns maximum value from expressions
  • LEAST - Returns minimum value from expressions
  • COALESCE - Returns first non-NULL value

Documentation Structure

  • Created .rst documentation files with syntax diagrams, parameters, returns, and examples
  • Created .diagram files for railroad syntax diagrams
  • Added test coverage in DocumentationQueriesTests.java
  • Created runnable .yamsql test files with 21 aggregate function tests and 6 scalar function tests

Testing

All documentation examples are tested and verified to work correctly.

@arnaud-lacurie arnaud-lacurie added the documentation Documentation change label Nov 17, 2025
@arnaud-lacurie arnaud-lacurie marked this pull request as draft November 17, 2025 16:27
@arnaud-lacurie arnaud-lacurie force-pushed the docs/function-documentation branch from ca2bb38 to 7166cdb Compare November 17, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant