Fixes Download Records in Historical Flows not working (#9643)

This commit is contained in:
GabrieleDeri 2025-09-10 18:45:46 +02:00 committed by GitHub
parent 831b2ad9ea
commit 568e0b1c2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1546,7 +1546,8 @@ end
-- #####################################
function historical_flow_utils.get_flow_columns_to_tags(aggregated)
function historical_flow_utils.get_flow_columns_to_tags(aggregated, real_cols_only)
local c2t = {}
local t2c = {}
@ -1567,15 +1568,18 @@ function historical_flow_utils.get_flow_columns_to_tags(aggregated)
end
end
for k, v in pairs(additional_flow_columns) do
if v.tag then
if not t2c[v.tag] then -- tag not already defined in real columns
c2t[k] = v.tag
-- t2c[v.tag] = k
-- if real_cols_only is provided, exclude additional_flow_columns for historical flow export errors
if not real_cols_only then
for k, v in pairs(additional_flow_columns) do
if v.tag then
if not t2c[v.tag] then -- tag not already defined in real columns
c2t[k] = v.tag
-- t2c[v.tag] = k
end
end
end
end
return c2t
end