local function map_profile(record)
-- Add username and password to returned map.
-- Could add other record bins here as well.
return map {cdte=record.cdte,
sts=record.sts,
oid=record.oid,
typ=record.typ,
cnvpxurl=record.cnvpxurl,
offerconversionpixel=record.offerconversionpixel,
id=record.id,
glid=record.glid,
afid=record.afid
}
end
function check_offer_conversion(stream,oid,afid,gid)
local function filter_oid(record)
return record.oid == oid
end
local function filter_afid(record)
return record.afid==afid
end
local function filter_gid(record)
return record.gid==gid
end
return stream : filter(filter_oid):filter(filter_afid):filter(filter_gid):map(map_profile)
end
I want the filter_glid to skip if value of oid == 0
.
Please tell me the changes in the above lua.