https://bugs.documentfoundation.org/show_bug.cgi?id=174512

            Bug ID: 174512
           Summary: CALC: FILTER() dynamic array spill engine fails to
                    clear residual cells or resize correctly when result
                    rows decrease/increase dynamically
           Product: LibreOffice
           Version: 26.8.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When using the dynamic array function FILTER() combined with ELEGIRCOLS()
(CHOOSECOLS) to dynamically extract records based on a changing date criterion
in cell $J$1, the spill range fails to properly clear or resize its boundaries
when the number of resulting rows shrinks or grows, leaving residual ghost data
or truncated rows.

Steps to Reproduce:
1. Open a Calc spreadsheet containing a data table and set up a dynamic
FILTER() formula referencing a criteria cell (e.g.,
=FILTRAR(ELEGIRCOLS(TablaREGISTRO, 1, 2, 4), FechaActiv=$J$1, "Sin
actividades")).

2. Set the criteria in $J$1 to a value that returns multiple matches (e.g., 3
records). Observe the spill range expanding correctly (rows 4 to 6).

3. Change the criteria in $J$1 to a value with fewer matches (e.g., 2 records).

4. Observe that the bottom residual row (row 6) from the previous spill is not
cleared, leaving stale data or #N/D errors.

5. Change the criteria to a value with zero matches to trigger the fallback
text ("Sin actividades"), which erroneously replicates across the entire
footprint of the previous larger spill range instead of shrinking to a single
cell.

Actual Results:
The dynamic spill range retains ghost data from previous calculations when
shrinking, fails to clear residual cells, and duplicates or truncates records
when switching between criteria of different sizes.

Expected Results:
The dynamic array spill engine should automatically recalculate, expand,
cleanly clear, and shrink residual cells whenever the evaluation criteria in
$J$1 changes, without leaving ghost data or truncating valid rows.


Reproducible: Always


User Profile Reset: No

Additional Info:
Tested with multithreading and OpenCL both enabled and disabled (Calc:
default), confirming it is a native core issue in the dynamic array calculation
engine.
Environment / Version Info:
- Version: 26.8.2.2 (X86_64)
- Build ID: 9dea406ab7695df6325b11b0e...
- OS: Windows 10 X86_64 (build 19045)
- UI render: Skia/raster; VCL: win
- Locale: es-MX (es_ES); UI: es-ES

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to