zui icon indicating copy to clipboard operation
zui copied to clipboard

Zed union values rendered blank in Detail window

Open SoftTools59654 opened this issue 2 years ago • 1 comments

Display the field as empty

While the desired fields have data, but when clicking to open and display the fields, sometimes the fields are displayed empty.

Mostly there are numbers in the fields inside them, this problem is seen more often

image

SoftTools59654 avatar Dec 20 '23 19:12 SoftTools59654

@SoftTools59654: I think I've figured out what's probably triggering the bug you saw. I couldn't initially reproduce the problem using only the data shown in your screenshot or other random data sets I had on hand. But in thinking about the kinds of Zed values that have caused problems in the past, in this attached video I happened to reproduce the problem successfully at Zui commit ca6ddd3 using this sample data.csv:

Index,Customer Id
1966079,54b0eFA66A2fE15
1900543,fE24fDD0D042fFE
123,456

https://github.com/brimdata/zui/assets/5934157/3a2dc08f-5ec5-4c3c-93f4-90e4b4234ba4

What seems to be important in reproducing the problem is that across the data set the Customer Id field has values of both string type and numeric type (i.e., the final row in my data.csv triggers the problem), such that after fuse is applied the overall data type for Customer Id becomes a Zed union data type.

image

Therefore it looks like we probably have a Zui bug here we can fix that's specific to rendering values of union types. If you've seen this same effect with other types, please do share the details so we can fix those as well.

philrz avatar Dec 22 '23 20:12 philrz

Verified in Zui commit e73f73b.

As shown in the attached video, when we repeat the repro steps with the same data.csv test data, the post-fuse union values are no longer blank in the Detail window or side panel.

https://github.com/brimdata/zui/assets/5934157/160b63d8-0f4d-42a7-a00e-8ed860d71da4

philrz avatar Jun 19 '24 19:06 philrz