Skip to content

Unable to delete rows in input tables when key columns are not the first columns #1677

@mofojed

Description

@mofojed

Description

If you specify an input table where the key columns are not the first columns in the table, you cannot delete rows.

Steps to reproduce

  1. Execute the following snippet:
from deephaven import empty_table, input_table

_source1 = empty_table(5).update(["Strings=`A` + i", "Integers=i"])
_source2 = empty_table(5).update(["Integers=i", "Strings=`A` + i"])

result1 = input_table(init_table=_source1, key_cols="Strings")
result2 = input_table(init_table=_source1, key_cols="Integers")
result3 = input_table(init_table=_source2, key_cols="Strings")
result4 = input_table(init_table=_source2, key_cols="Integers")
  1. In each resultN table, right-click a row and select "Delete Selected Rows"

Expected results
2. Should be able to delete a row in each table

Actual results
2. Cannot delete a row in result2 and result3 (when the key columns are not the first column). Error message in console:

Unable to delete ranges Array(1)0: GridRange {startColumn: 1, startRow: 1, endColumn: 1, endRow: 1}length: 1[[Prototype]]: Array(0) Error: java.lang.NumberFormatException: For input string: "A1"
    at NumberFormatException.createError (dh-core.js:1218:10)
    at NumberFormatException.initializeBackingError (dh-core.js:1238:46)
    at NumberFormatException.Throwable_0 (dh-core.js:1183:8)
    at NumberFormatException.Exception_1 (dh-core.js:1262:18)
    at NumberFormatException.RuntimeException_1 (dh-core.js:1275:18)
    at NumberFormatException.IllegalArgumentException_0 (dh-core.js:1800:25)
    at new NumberFormatException (dh-core.js:37874:33)
    at Object.__parseAndValidateDouble (dh-core.js:1553:16)
    at Object.ofNumber (dh-core.js:20928:27)
    at TableUtils.makeFilterRawValue (TableUtils.ts:1789:27)
    at IrisGridTableModel.ts:296:45
    at Array.map (<anonymous>)
    at IrisGridTableModel.delete (IrisGridTableModel.ts:291:26)

Additional details and attachments
image

Versions

Engine Version: 0.31.0-SNAPSHOT
Web UI Version: 0.55.0
Java Version: 11.0.21
Barrage Version: 0.6.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions