Home > other >  Spark how statistical all id under same IP
Spark how statistical all id under same IP

Time:09-21

Two fields id IP according to the same IP to get all the id

CodePudding user response:

The Spark DataFrame very convenient handling,
Val df=SQL (" select id, IP from XXX ")
Val targetData=https://bbs.csdn.net/topics/df.filter ($==="IP" TargetIP). Select (" id "). The distinct ()
  • Related