influxdata / flux

Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.

Home Page:https://influxdata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

join two table streams issue with flux

tbs575 opened this issue · comments

commented

I have two table streams
one is
image

another is
image

try to join two tables stream with following flux

join.left(
    left: leftdata,
    right: rightdata,
    on: (l, r) => l.source_ip == r.source_ip,
    as: (l, r) => ({C: r.source_country}),
)

but can not get anything, should be retrun country information, is there problem? thanks
image

try playing with grouping the tables before joining them. I rememeber there was something in the docs about the need of grouping

This issue has had no recent activity and will be closed soon.