Commit Graph

2 Commits

Author SHA1 Message Date
Glauber Costa
698bf89663 docs/sql-reference: document new functions and PG aliases
Adds reference entries for the new scalar functions and PostgreSQL-
compatible aliases:

  * math.mdx:    gcd(A, B), lcm(A, B)
  * array.mdx:   array_upper, and the now-honored dimension argument
                 to array_length
  * scalar.mdx:  repeat(X, N), lpad/rpad (2- and 3-arg forms),
                 reverse / string_reverse, plus the PG-compatible
                 aliases chr, strpos, btrim, char_length, character_length

Each new function gets a table entry in the overview and a dedicated
detail section with semantics (NULL propagation, overflow, character-
vs-byte counts, sign handling) and runnable examples. Aliases are
folded into the canonical function's section rather than duplicated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-14 15:32:50 -05:00
Glauber Costa
0bc101a6b3 feat: add array column type support with PostgreSQL-style array functions
Adds array column types (e.g. INTEGER[], TEXT[][]) stored as record-format
blobs with zero-copy ValueIterator streaming. Includes ARRAY[] constructor,
subscript access, comparison operators (@>, &&, =, <, etc.), 12 scalar
functions (array_length, array_append, array_cat, etc.), and array_agg
aggregate. Parser extended with ARRAY keyword, bracket subscripts, and
new operator tokens.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 10:19:39 -04:00