History log of /trunk/odf_docs/openformula-small-group-semantic-audit.md (Results 1 – 18 of 18)
Revision Date Author Comments
# c2b81925 19-Nov-2026 Jim Jagielski <jimjag@gmail.com>

Merge trunk into hsqldb2 branch


# 1354dfcd 16-Nov-2026 Jim Jagielski <jimjag@gmail.com>

Merge pull request #523 from apache/openformula

OpenFormula: IFNA, SKEWP, IFERROR, formula limits and Excel filter fixes


# 3f65a7db 16-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: add license headers to the OpenFormula notes and fix their markdownlint errors


# 7eb007d6 15-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: string literals can now reach 32767 characters


# c103570e 14-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: restore the Basic Limits and DCOUNT results, fix stale references


# 2edce17d 14-Nov-2026 Jim Jagielski <jimjag@gmail.com>

Merge branch 'openformula' of https://github.com/apache/openoffice into openformula


# 551759ae 14-Nov-2026 Pedro Giffuni <pfg@apache.org>

docs: G.6 Syntax Verification source audit — all 11 requirements classified RUNTIME_PENDING

ODF 1.4 §2.3.2.B requires Small Group Evaluators to implement syntax from 11 sections: Criteria §4.11.11 (

docs: G.6 Syntax Verification source audit — all 11 requirements classified RUNTIME_PENDING

ODF 1.4 §2.3.2.B requires Small Group Evaluators to implement syntax from 11 sections: Criteria §4.11.11 (covered under F-GAP-004/G.4); Basic Expressions §5.2; Constant Numbers §5.3; Constant Strings §5.4; Operators §5.5; Functions and Function Parameters §5.6; Nonstandard Function Names §5.7; References §5.8; Simple Named Expressions §5.11; Errors §5.12; Whitespace §5.14.

Source audit findings for each requirement:

- Basic Expressions §5.2: Formula ::= Intro? Expression grammar present (compiler.cxx:3570, :3780)
- Constant Numbers §5.3: Number ::= StandardNumber | '.' digits (compiler.cxx:2650+)
- Constant Strings §5.4: String ::= ' chars ' with doubled-quote escape (compiler.cxx:2682)
- Operators §5.5: Precedence ! > : > prefix +,- > ^ > *,/ > +,- > & > comparison (compiler.cxx RangeLine→binary ops)
- Functions §5.6: FunctionName grammar, case-insensitive, ';' separator, empty params allowed (compiler.cxx:3648, interpre.hxx:897-927)
- Nonstandard Function Names §5.7: Unknown functions → Error ≠ #N/A via errNoName (compiler.cxx errNoName, interpr4.cxx:3106, :3205)
- References §5.8: Reference ::= '[' Source? RangeAddress ']' (compiler.cxx IsReference, PopDoubleRef/PopSingleRef)
- Simple Named Expressions §5.11: SimpleNamedExpression ::= Identifier | '103272' (Identifier | SingleQuoted) (compiler.cxx NameLine/ocName)
- Constant Errors §5.12: #N/A required, Error syntax '#' [A-Z0-9]+ ... (compiler.hrc:30-36, interpr4.cxx PushError)
- Whitespace §5.14: Whitespace ::= #x20|#x09|#x0a|#x0d, ignored outside strings (compiler.cxx:3583-3593, :3655-3667)

Added gap entries F-GAP-016 through F-GAP-020 for Basic Expressions, Constant Numbers, Constant Strings, Functions, Nonstandard Function Names.

Updated F-GAP-010 through F-GAP-014 with detailed source findings and RUNTIME_PENDING classification.

No production code changes.

git diff --check passed; all TSV files have correct column counts; no runtime claims made.

show more ...


# fb522d42 14-Nov-2026 Pedro Giffuni <pfg@apache.org>

docs: G.5 Basic Limits source audit — all 4 requirements classified RUNTIME_PENDING

ODF 1.4 §3.7 requires: (1) formulas up to at least 1024 chars,
(2) at least 30 parameters per function, (3) string

docs: G.5 Basic Limits source audit — all 4 requirements classified RUNTIME_PENDING

ODF 1.4 §3.7 requires: (1) formulas up to at least 1024 chars,
(2) at least 30 parameters per function, (3) strings up to 32,767
ASCII chars, (4) at least 7 nesting levels of functions.

Source audit findings:
- Formula length: NO formula-text length limit; MAXCODE=2048 tokens
(compiler.hxx:59), MAXSTRLEN=1024 per symbol (compiler.hxx:60).
1026-char formula needs ~1025 tokens < 2048. Single string literal
limited to 1023 chars (MAXSTRLEN).
- Parameters: NO global 30-param cap; MAX uses MustHaveParamCountMin(1)
(interpr1.cxx:3396-3400); SUM supports 255 args (calcval SG.BL-255args).
- String length: STRING_MAXLEN=65,535 (string.hxx:119, STRING32 not
defined) > 32,767 ODF minimum. CheckStringResultLen enforces at
concatenation (interpre.hxx:930-936). String literals limited to
1023 chars (MAXSTRLEN=1024).
- Nesting depth: NO depth limit found (no MAXNEST or recursion depth
guard). Parser uses recursive descent without depth guard
(compiler.cxx:4134). Evaluator stack-based without depth limit.

All 4 requirements classified RUNTIME_PENDING — source evidence
supports compliance, runtime verification blocked (no AOO build tree;
calcval macOS-only).

Corrected two statements that implied runtime verification:
- F-GAP-007: 'confirms AOO accepts 255 args' → 'expected result 255 (unverified)'
- F-GAP-007 (semantic audit): 'confirms AOO accepts 255 args' → 'expected result 255 (unverified)'

No production code changes.

git diff --check passed; all TSV files have correct column counts.

show more ...


# 1ac0d2f4 14-Nov-2026 Pedro Giffuni <pfg@apache.org>

docs: G.5 Basic Limits source audit — all 4 requirements classified RUNTIME_PENDING

ODF 1.4 §3.7 requires: (1) formulas up to at least 1024 chars,
(2) at least 30 parameters per function, (3) string

docs: G.5 Basic Limits source audit — all 4 requirements classified RUNTIME_PENDING

ODF 1.4 §3.7 requires: (1) formulas up to at least 1024 chars,
(2) at least 30 parameters per function, (3) strings up to 32,767
ASCII chars, (4) at least 7 nesting levels of functions.

Source audit findings:
- Formula length: NO formula-text length limit; MAXCODE=2048 tokens
(compiler.hxx:59), MAXSTRLEN=1024 per symbol (compiler.hxx:60).
1026-char formula needs ~1025 tokens < 2048. Single string literal
limited to 1023 chars (MAXSTRLEN).
- Parameters: NO global 30-param cap; MAX uses MustHaveParamCountMin(1)
(interpr1.cxx:3396-3400); SUM supports 255 args (calcval SG.BL-255args).
- String length: STRING_MAXLEN=65,535 (string.hxx:119, STRING32 not
defined) > 32,767 ODF minimum. CheckStringResultLen enforces at
concatenation (interpre.hxx:930-936). String literals limited to
1023 chars (MAXSTRLEN=1024).
- Nesting depth: NO depth limit found (no MAXNEST or recursion depth
guard). Parser uses recursive descent without depth guard
(compiler.cxx:4134). Evaluator stack-based without depth limit.

All 4 requirements classified RUNTIME_PENDING — source evidence
supports compliance, runtime verification blocked (no AOO build tree;
calcval macOS-only).

No production code changes.

Updates:
- openformula-small-group-semantic-audit.md: Detailed F.4.1 Basic
Limits source audit with exact file/function references
- openformula-small-group-audit.md: Reclassified BL-001 through BL-004
from MET/PARTIAL to RUNTIME_PENDING with source evidence
- openformula-small-group-semantic-gaps.tsv: Updated F-GAP-006 through
F-GAP-009 with detailed findings and RUNTIME_PENDING classification
- openformula-milestone-g-sequence.md: Marked G.5 complete (source-level)
with updated complexity table and Definition of Done

git diff --check passed; all TSV files have correct column counts;
no stale UNVERIFIED statements about Basic Limits remain.

show more ...


# ac2d06a5 14-Nov-2026 Pedro Giffuni <pfg@apache.org>

docs: G.4 INDEX row-vector compatibility audit

Audit INDEX row-vector compatibility: ODF 1.4 §6.14.6 removed the ODF 1.2/1.3
row-vector shortcut (Row acts as column offset on single-row range).
Mile

docs: G.4 INDEX row-vector compatibility audit

Audit INDEX row-vector compatibility: ODF 1.4 §6.14.6 removed the ODF 1.2/1.3
row-vector shortcut (Row acts as column offset on single-row range).
Milestone A (bb58e28fc2) removed bRowArray but commit 8f3b3b25a2 restored it.
Current ScIndex() (interpr1.cxx:7588-7612) keeps bRowArray so INDEX(H1:L1;3)
returns column value instead of ODF 1.4 Error — documented legacy-compatible
deviation, not ODF 1.4 compliant.

ODF version comparison: ODF 1.2/1.3 had row-vector shortcut; ODF 1.4 removed
it (OFFICE-4144). Test INDEX.row.rowonly expects #ERR but implementation
returns 30 — mismatch disclosed.

Correct semantic audit INDEX section (falsely claimed Milestone A fix applied).
Fix gaps TSV F-GAP-001/F-GAP-002 to reflect G.3 COUNTBLANK source audit
(lcl_IsCountBlankEmpty inspects formula results). Fix Definition of Done
wording to distinguish implemented requirements from documented deviations
and pending runtime verification.

No production code changes. Runtime verification blocked: no AOO build tree
available.

show more ...


# 7e6ad45c 14-Nov-2026 Pedro Giffuni <pfg@apache.org>

docs: G.3 COUNTBLANK semantics — decision documented, no code change needed

ODF 1.4 6.13.8 makes formula-cell-returning-"" blank-counting
implementation-defined. Source inspection confirms AOO alrea

docs: G.3 COUNTBLANK semantics — decision documented, no code change needed

ODF 1.4 6.13.8 makes formula-cell-returning-"" blank-counting
implementation-defined. Source inspection confirms AOO already exercises
this choice via lcl_IsCountBlankEmpty() (interpr1.cxx:4745-4758),
which inspects formula results and treats formula-cell-returning-""
as blank for COUNTBLANK. ISBLANK (6.13.14) returns FALSE for empty
string — no conflict since COUNTBLANK behavior is implementation-defined.

Correct semantic audit COUNTBLANK execution path table (was incorrectly
described as cell-type-only). Expand comparison table to cover all 8
cell cases. Update Conformance Classification, Compatibility Risks,
Recommended Changes. Mark G.3 COMPLETE in milestone sequence (decision
documented; no code change needed), including top-level Current Status
table.

No production code changes. Runtime verification blocked: no AOO build
tree available.

show more ...


# ad46309f 14-Nov-2026 Pedro Giffuni <pfg@apache.org>

docs/tests: G.2 ScDBCount empty-cell fix — source-level implementation with regression tests

The DCOUNT/DCOUNTA empty-cell limitation is resolved at source level via
CountRecords() (dociter.cxx:685-

docs/tests: G.2 ScDBCount empty-cell fix — source-level implementation with regression tests

The DCOUNT/DCOUNTA empty-cell limitation is resolved at source level via
CountRecords() (dociter.cxx:685-716), used by ScDBCount()
(interpr1.cxx:6871-6902) and ScDBCount2() (interpr1.cxx:6905-6935).
CountRecords() iterates row-by-row via IsQueryValid(), counting all
matching records regardless of cell emptiness — per ODF 1.4 §6.9.3/§6.9.4.

No production code changes needed — fix already in place via trunk commits
rebased onto openformula. G.2 marked IMPLEMENTED (source-level) in
milestone docs; semantic audit stale limitation statements removed.

Regression tests added to calcval-cases14.tsv:
- DB.DCOUNT.f.zero: numeric zero vs empty with field (COUNT: 0 counts,
empty does not)
- DB.DCOUNT.nf.zero: zero vs empty without field (all matching records count)
- DB.DCOUNTA.f.zero: zero vs empty with field for COUNTA (0 counts, empty
does not)

Update openformula-milestone-g-sequence.md G.2 status to IMPLEMENTED.
Remove stale G.2 limitation statements from
openformula-small-group-semantic-audit.md.
Update F-GAP-004 in semantic-gaps.tsv to reflect fix applied.

Runtime verification blocked: no AOO build tree available; calcval cannot
run. git diff --check clean; TSV format valid.

show more ...


# 2207e539 13-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: DCOUNT without a field skips rows with no content


# c780fc63 13-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: mark the DCOUNT without a field gap as fixed


# 362a9f34 13-Nov-2026 Jim Jagielski <jimjag@gmail.com>

Move the OpenFormula audit notes to odf_docs/


# e46e8a76 13-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: DCOUNT without a field skips rows with no content


# 6c920c1e 13-Nov-2026 Jim Jagielski <jimjag@gmail.com>

odf_docs: mark the DCOUNT without a field gap as fixed


# 9cdcc566 13-Nov-2026 Jim Jagielski <jimjag@gmail.com>

Move the OpenFormula audit notes to odf_docs/