deephaven / web-client-ui

Deephaven Web Client UI
Apache License 2.0
29 stars 31 forks source link

Input Tables cannot Paste More than the Number of Visible Rows #2089

Closed dgodinez-dh closed 1 month ago

dgodinez-dh commented 2 months ago

Description

Pasting a large number of rows into an InputTable fails with an error "Copy and paste area are not same size."

Steps to reproduce

  1. Run the following groovy script:

    import io.deephaven.engine.table.impl.util.AppendOnlyArrayBackedInputTable
    copyHere = emptyTable(1000).update("X = i")
    pasteHere = AppendOnlyArrayBackedInputTable.make(emptyTable(1).update("X = i"))
  2. From "copyHere" table, select all and copy.

  3. Copy data in the "pasteHere" table.

Expected results

Data should paste.

Actual results

InputTable displays error: "Copy and paste area are not same size."

Additional details and attachments

Problem found in Enterprise ticket DH-11898. Occurs in Grid.tsx pasteValue method.

Versions

Enterprise: 1.20231218.359 Core+: 0.33.4

(Note: Found earlier but fix in 1.20231218)

mofojed commented 1 month ago

Python equivalent:

from deephaven import empty_table, input_table
copy_here = empty_table(1000).update(["X=i"])
paste_here = input_table(init_table=empty_table(1).update(["X = i"]))