This is an automated email from the ASF dual-hosted git repository.
jimjag pushed a commit to branch openformula
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/openformula by this push:
new fe6551a1e9 odf_docs: IFERROR is not implemented yet
fe6551a1e9 is described below
commit fe6551a1e9b66657af0edc63842ac91a8c83ece6
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Nov 16 07:11:13 2026 -0500
odf_docs: IFERROR is not implemented yet
The audits said every ODF 1.2 baseline function but IFNA and SKEWP was
present; =IFERROR(7;5) gives #NAME?.
---
odf_docs/openformula-conformance.md | 8 +++++---
odf_docs/openformula-final-report.md | 7 +++++--
odf_docs/openformula-test-gap-analysis.md | 4 ++--
3 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/odf_docs/openformula-conformance.md
b/odf_docs/openformula-conformance.md
index f67733449d..cd03f60ed1 100644
--- a/odf_docs/openformula-conformance.md
+++ b/odf_docs/openformula-conformance.md
@@ -11,9 +11,11 @@ Therefore **no conformance level (Small/Medium/Large) may be
claimed for AOO Cal
## 2. Coverage of mandatory functions by group
-The ODF 1.2 function baseline (used by AOO's own
`test/aoo-test/data/openformula-functions.txt` and
`test/odf-validate/openformula-functions.txt`, titled "OpenDocument 1.2 Part 2
chapter 6") lists 414 function names. AOO's opcode map
(`main/formula/inc/formula/compiler.hrc`, last opcode id 410 = SKEWP) covers
all of those. IFNA (opcode 409) and SKEWP (opcode 410) were implemented in
Milestone B and are no longer missing.
+The ODF 1.2 function baseline (used by AOO's own
`test/aoo-test/data/openformula-functions.txt` and
`test/odf-validate/openformula-functions.txt`, titled "OpenDocument 1.2 Part 2
chapter 6") lists 414 function names. AOO's opcode map
(`main/formula/inc/formula/compiler.hrc`, last opcode id 410 = SKEWP) covers
all of those except IFERROR, which has no opcode. IFNA (opcode 409) and SKEWP
(opcode 410) were implemented in Milestone B and are no longer missing.
-All 414 baseline functions have opcodes, implementations in `interpr*.cxx`,
`scfuncs.src` metadata, and `core_resource.src` name mappings (see
`openformula-functions.tsv`).
+Every baseline function except IFERROR has an opcode, an implementation in
`interpr*.cxx`, `scfuncs.src` metadata, and a `core_resource.src` name mapping
(see `openformula-functions.tsv`).
+
+**[CONFIRMED 2026-11-16] IFERROR is not implemented.** `=IFERROR(7;5)` gives
`#NAME?`, and an xls file that uses `_xlfn.IFERROR` loads with an unresolved
name (xlsx not tested). The same run found seven more baseline names that AOO
does not recognise under their ODF names: DATEDIF, FINDB, REPLACEB, SEARCHB,
BINOM.DIST.RANGE, LEGACY.TDIST and ERROR.TYPE (AOO has it as ERRORTYPE).
Method: AOO's ODFF function table (`FormulaOpCodeMapper`) plus its function
descriptions compared with the bas [...]
**[CONFIRMED] IFNA and SKEWP are now implemented (Milestone B).**
- IFNA: `SC_OPCODE_IFNA=409` in `compiler.hrc`, `ocIfna` in `opcode.hxx`,
`ScInterpreter::ScIfna()` in `interpr1.cxx:392`, dispatch `case ocIfna` in
`interpr4.cxx:3451`, `scfuncs.src:1027`, `core_resource.src:357`.
@@ -62,7 +64,7 @@ AOO does not claim the Small Group. However, the Small Group
audit (`openformula
## 7. Conformance conclusion
- **Claimed conformance group: none.** AOO does not claim Small/Medium/Large.
-- **Confirmed missing functions: none.** All 110 Small Group functions
(§2.3.2.E) are implemented. IFNA (Large Group) and SKEWP (Medium Group) were
implemented in Milestone B.
+- **Confirmed missing functions in the Small Group: none** (outside it,
IFERROR is missing, see section 2). All 110 Small Group functions (§2.3.2.E)
are implemented. IFNA (Large Group) and SKEWP (Medium Group) were implemented
in Milestone B.
- **Confirmed semantic discrepancies vs ODF 1.4:** INDEX row-vector rule (kept
as a known deviation; the Milestone A change was reverted), CONVERT `atm`
(corrected in Milestone C), EASTERSUNDAY naming alias (behavior correct).
- **Cannot certify any group** without runtime testing every mandatory
requirement against the ODF 1.4 Part 4 normative text.
diff --git a/odf_docs/openformula-final-report.md
b/odf_docs/openformula-final-report.md
index 0e048a20fe..dc4c4acaeb 100644
--- a/odf_docs/openformula-final-report.md
+++ b/odf_docs/openformula-final-report.md
@@ -28,7 +28,7 @@ Scope: AUDIT ONLY. No production source code was modified. No
dependencies intro
### Confirmed present (FULL) — opcodes + implementation + scfuncs +
core_resource mapping
-All ODF 1.2 baseline functions in
`test/aoo-test/data/openformula-functions.txt` have opcodes and implementations
EXCEPT IFNA and SKEWP. Notable present functions (representative, full list in
`openformula-functions.tsv`):
+All ODF 1.2 baseline functions in
`test/aoo-test/data/openformula-functions.txt` have opcodes and implementations
EXCEPT IFNA, SKEWP and IFERROR (IFERROR added 2026-11-16, see section 4).
Notable present functions (representative, full list in
`openformula-functions.tsv`):
- Logical: AND, OR, XOR, NOT, IF, CHOOSE, TRUE, FALSE, NA.
- IS*: ISBLANK, ISTEXT, ISNONTEXT, ISLOGICAL, ISREF, ISNUMBER, ISFORMULA,
ISNA, ISERR, ISERROR, ISEVEN, ISODD, TYPE, CELL, N, ERROR.TYPE.
@@ -50,6 +50,7 @@ All ODF 1.2 baseline functions in
`test/aoo-test/data/openformula-functions.txt`
|----------|-------------|----------|
| IFNA | ODF 1.3 | No opcode (`compiler.hrc` max = 408 = BITRSHIFT), no
`ScIfNA` in any `interpr*.cxx`, no `scfuncs.src` entry, no `core_resource.src`
entry. Only `main/sc/source/filter/excel/xlformula.cxx:404` `EXC_FUNCENTRY_ODF(
ocNoName, 2, 2, 0, "IFNA" )` — an Excel-filter stub with `ocNoName` (no
opcode). |
| SKEWP | ODF 1.3 | No opcode/implementation/metadata. Only
`xlformula.cxx:415` `EXC_FUNCENTRY_ODF( ocNoName, 1, MX, 0, "SKEWP" )`. `SKEW`
(sample skewness, `SC_OPCODE_SCHIEFE=325`, `interpr3.cxx:793`) is present;
SKEWP (population) is not. |
+| IFERROR | ODF 1.2 baseline list | No opcode, no `scfuncs.src` or
`core_resource.src` entry. Checked 2026-11-16: `=IFERROR(7;5)` gives `#NAME?`.
The Excel filters carry it only as `oox/source/xls/formulabase.cxx` row `{ 0,
"IFERROR", 480, ... }` with no Calc function behind it. |
### Partial implementations / semantic discrepancies
@@ -90,7 +91,9 @@ AOO writes non-standard names for some functions (ODF 1.4
strict mode should use
1. **IFNA** (ODF 1.3) — absent from opcode map, interpreter, `scfuncs.src`,
`core_resource.src`; only Excel-filter `ocNoName` stub (`xlformula.cxx:404`).
2. **SKEWP** (ODF 1.3) — absent from opcode
map/interpreter/`scfuncs.src`/`core_resource.src`; only Excel-filter `ocNoName`
stub (`xlformula.cxx:415`). Sample `SKEW` present.
-No other function in the ODF 1.2 baseline is missing from AOO's opcode map.
+3. **IFERROR** (ODF 1.2 baseline list) — no opcode, interpreter, `scfuncs.src`
or `core_resource.src` entry (added 2026-11-16).
+
+The earlier sentence here, that no other function in the ODF 1.2 baseline is
missing from the opcode map, was wrong for IFERROR. A runtime check on
2026-11-16 also found DATEDIF, FINDB, REPLACEB, SEARCHB, BINOM.DIST.RANGE,
LEGACY.TDIST and ERROR.TYPE (present as ERRORTYPE) not recognised under their
ODF names; these are not audited further (see `openformula-conformance.md`
section 2).
## 5. Partial implementations
diff --git a/odf_docs/openformula-test-gap-analysis.md
b/odf_docs/openformula-test-gap-analysis.md
index c03889abf6..18e1e977bf 100644
--- a/odf_docs/openformula-test-gap-analysis.md
+++ b/odf_docs/openformula-test-gap-analysis.md
@@ -38,7 +38,7 @@ Source-of-truth: `test/aoo-test/`, `test/odf-validate/`, and
AOO source. Finding
- **[CONFIRMED]** SKEWP: listed in inventories; implemented in Milestone B
(`SC_OPCODE_SKEWP=410`, `ScSkewP` in `interpr3.cxx`, dispatch in
`interpr4.cxx:3695`). Regression tests added to `calcval-cases14.tsv`
(SKEWP.sym, SKEWP.pos, SKEWP.neg, SKEWP.vs.skew, SKEWP.one, SKEWP.zero,
SKEWP.two, SKEWP.range, SKEWP.array, SKEWP.mixed, SKEWP.err).
- **[CONFIRMED]** EASTERSUNDAY: implemented (`interpr2.cxx:261`) but NOT in
either function inventory. No dedicated test coverage confirmed.
-**[CONFIRMED] IFNA and SKEWP are no longer missing functions.** Both were
implemented in Milestone B. The test inventories list them as standard ODF
functions, which is now correct.
+**[CONFIRMED] IFNA and SKEWP are no longer missing functions.** Both were
implemented in Milestone B. The test inventories list them as standard ODF
functions, which is now correct. IFERROR is on the same lists but is not
implemented (checked 2026-11-16).
### Missing semantic tests
- No confirmed semantic test for CONVERT `atm` (fixed in Milestone C: 101325.1
Pa vs old 101324.996583 Pa).
@@ -82,7 +82,7 @@ Source-of-truth: `test/aoo-test/`, `test/odf-validate/`, and
AOO source. Finding
| Category | Gap | Severity |
|----------|-----|----------|
| Spec inventory | No ODF 1.3/1.4 function/operator inventory in test/ | High |
-| Missing functions | None — IFNA and SKEWP implemented in Milestone B | None |
+| Missing functions | IFERROR (not implemented); IFNA and SKEWP were
implemented in Milestone B | Medium |
| Implemented but uninventoried | EASTERSUNDAY not in either test inventory |
Medium |
| Semantic tests | CONVERT atm (fixed Milestone C), INDEX row-vector (fixed
Milestone A), DATE pre-1583, bit ops, short-circuit | High |
| Parser tests | Precedence, intersection, union, quoted labels | Medium |