You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the attached video, a pool containing 10 records is transformed and then the load operator is tacked on to import the data into a new/empty pool. As we can see, the new pool ends up having 20 records.
Repro.mp4
A peek at the traffic on Wireshark makes it clear what's going on here: The base query ends up being executed twice. The first is for populating the search results.
The second is for populating the stacked bar chart.
{"query":"from 'data.zson' | MyTime:=ts\n| cut MyTime,num\n| load alt | count() by every(100ms), _path"}
A purpose-built workflow like what's proposed in #2769 could certainly be implemented in a way that avoids such undesirable side effects, but that would not preclude users from still invoking load in their Zed programs directly. Perhaps the Zed language parser could be made smart enough to recognize when operators with side effects (e.g., not just load, but also delete) are invoked so a client like Zui could ensure it only gets executed once. Just one thought, though.
The text was updated successfully, but these errors were encountered:
Repro is with GA Zui tagged v1.1.0.
In the attached video, a pool containing 10 records is transformed and then the
load
operator is tacked on to import the data into a new/empty pool. As we can see, the new pool ends up having 20 records.Repro.mp4
A peek at the traffic on Wireshark makes it clear what's going on here: The base query ends up being executed twice. The first is for populating the search results.
The second is for populating the stacked bar chart.
A purpose-built workflow like what's proposed in #2769 could certainly be implemented in a way that avoids such undesirable side effects, but that would not preclude users from still invoking
load
in their Zed programs directly. Perhaps the Zed language parser could be made smart enough to recognize when operators with side effects (e.g., not justload
, but alsodelete
) are invoked so a client like Zui could ensure it only gets executed once. Just one thought, though.The text was updated successfully, but these errors were encountered: