Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dgodinez-dh opened this issue Jun 20, 2024 · 1 comment · Fixed by #2152
Closed

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

dgodinez-dh opened this issue Jun 20, 2024 · 1 comment · Fixed by #2152
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dgodinez-dh
Copy link
Contributor

dgodinez-dh commented Jun 20, 2024

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"))
  1. From "copyHere" table, select all and copy.
  2. 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)

@dgodinez-dh dgodinez-dh added bug Something isn't working triage Issue requires triage labels Jun 20, 2024
@mofojed mofojed added this to the July 2024 milestone Jun 25, 2024
@mofojed mofojed removed the triage Issue requires triage label Jun 25, 2024
@mofojed
Copy link
Member

mofojed commented Jul 24, 2024

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"]))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants