-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG in Expression] Null or incorrect expression field in JSON output after delete operation #1710
Comments
Hi, are there any updates on this issue? It is blocking an important feature. |
This comment was marked as outdated.
This comment was marked as outdated.
We realized that the perspective viewer also has the similar issue when configured a group_by. |
Any update? |
@kryaksy we'll provide updates as soon as they are available, there's no need to ask multiple times on the same issue for updates. We try to do a good job of linking a PR to corresponding issues, so you'll see when something is nearing completion. Otherwise it's best to assume everything is under consideration or in progress pending other priorities. |
@timkpaine Sorry to spam this issue. You may be right. I just wanted to learn if this is a bug or we are doing something wrong or any thought about this. Lesson learned. Thanks for the comment. |
@kryaksy no worries! it's almost certainly a bug there's just lots of stuff we're working on and deletes in particular require us to take a deeper look |
It's worth to mention. This issue seems to be resolved in perspective-viewer in v1.4.0. But still current for the other examples. |
I've checked out these repos and they don't do what the bug description says they do (there's no Independent of this, we have had a good repro of a similar-ish sounding bug reported which occurs in the mixed presence of |
Bug Report
Applying the delete operation while updating the table creates either incorrect or null results on the resulting expression field in the view.to_json() output in JS, when an expression is applied.
We have created a Github repository for demonstrating the problem via two separate sample poc applications. In the both of these applications we have created, there is a Perspective Viewer with the following expression applied: if (match("string", 'B')) {"float" * -1} else {"float"}
Null outcome: https://github.com/kryaksy/perspective-poc/tree/expression-null-issue
Incorrect outcome: https://github.com/kryaksy/perspective-poc/tree/expression-equality-issue
Steps to Reproduce:
Expected Result:
We expect the JSON output to have a correct value for the "exp" field. The absolute value of the "exp" and the "float" fields should match, since the expression only multiplies the value of the "float" field with -1 based on a simple condition inside the if statement.
Actual Result:
The JSON output has null values for the "exp" field or values whose absolute value doesn't match with the value of the "float" column.
Examples include the following:
Also:
Environment:
Perspective version is up-to-date.
Additional Context:
We have also noticed that this error does not occur in Perspective-Viewer, just the view.to_json() output has this issue. Also, this does not occur with the insert and update operations.
The text was updated successfully, but these errors were encountered: