-
Notifications
You must be signed in to change notification settings - Fork 81
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
JSAPI returns undefined
for a null
value in table data
#5400
Comments
We may categorize this as a "known issue, not planned", this happens in a few places, and always has done so. EDIT: this may not be true, I'll investigate further. Will investigate briefly as part of #188. |
To test in JSAPI page (e.g. from http://localhost:10000/jsapi/table_basic.html), enter this in the browser console: var dh = (await import('./dh-core.js')).default
var client = new dh.CoreClient(window.location.protocol + "//" + window.location.host);
await client.login({type: 'io.deephaven.authentication.psk.PskAuthenticationHandler', token: 'iris'});
var connection = await client.getAsIdeConnection();
var ide = await connection.startSession("python");
await ide.runCode(`
from deephaven import empty_table
x = empty_table(1).update("X=(String)null")
`)
var x = await connection.getObject({ type: 'Table', name: 'x' })
x.setViewport(0, 0)
var data = await x.getViewportData()
var value = data.get(0).get(x.columns[0])
console.log('Value is', value, ', isNull?=', value === null) We should expect the value to be |
PR up is, tested in plain DHC:
from deephaven import time_table, empty_table
remoteTable = empty_table(1).update("X=(String)null")
When this bug is happening, the result should be |
Description
The value retrieved from a table via the JSAPI doesn't match the value shown in the console.
Steps to reproduce
TestPQ
https://<vm>/irisapi/table_viewport.html
Expected results
Value retrieved via JSAPI matches the value returned by
ts.getColumnSource("X").get(0)
in the Code StudioActual results
JSAPI returns
undefined
when the actual value in the table isnull
Versions
The text was updated successfully, but these errors were encountered: