-
Notifications
You must be signed in to change notification settings - Fork 3
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
problem for data entry #1
Comments
Hey @jcalhinho, you're right, the expected fields for the plugin to work are source (source nodes), target (target nodes) and value (link values). Each record in the SQL should have these 3 fields. Also, this is an acyclic network implementation of the Sankey, so loops are not allowed. I will soon expand the docs with more details 🙏 |
thanks for the answer ismael so this sql request is bad? GROUP BY t,source,target |
for me it doesn t work... |
Hey @jcalhinho, looking at the sql it seems that it was failing at first since the group by clause was also expecting the field value. Although about your final sql, Is your intention to count the number of times a source-target pair appears? or to sum up the total nb_yte for each source-target pair? Remember that it's the value field that should express your total aggregation, so in your sql COUNT() as value or this SUM(nb_byte) as value I would guess for the last one. Regarding the For the circular link error, you could try to mask the target values with a prefix, something like this CASE
WHEN ip_src = ip_dst THEN CONCAT('P-', ip_dst)
ELSE ip_dst
END "target", Hope it was helpful 🙌 |
One last piece of advice, you could first build the sql and display it using a regular table, this way you could double-check the values being generated by your sql. |
great i will try now, thanks a lot! |
hello ismael, great job for the sankey, i have a problem, i have a clickhouse database and my sql request is bad because the "required field source, target and value are missing...
i have a csv with fieldname: ip_src, ip_dst and nb_bytes. should i replace the fieldname by alias source, target, value?
do you have an example of request sql?
Thanks a lot
The text was updated successfully, but these errors were encountered: