Unverified Commit 2ee56a63 authored by Tao Feng's avatar Tao Feng Committed by GitHub

Fix sample loader for user ES model (#234)

parent ae452b70
email,first_name,last_name,full_name,github_username,team_name,employee_type,manager_email,slack_id email,first_name,last_name,full_name,github_username,team_name,employee_type,manager_email,slack_id,role_name
roald.amundsen@example.org,Roald,Amundsen,"Roald Amundsen",lyft,"Team Amundsen",sailor,"phboss@example.org",ramundzn roald.amundsen@example.org,Roald,Amundsen,"Roald Amundsen",lyft,"Team Amundsen",sailor,"phboss@example.org",ramundzn,swe
chrisc@example.org,Christopher,Columbus,"Christopher Columbus",ChristopherColumbusFAKE,"Team Amundsen",sailor,"phboss@example.org",chrisc chrisc@example.org,Christopher,Columbus,"Christopher Columbus",ChristopherColumbusFAKE,"Team Amundsen",sailor,"phboss@example.org",chrisc,swe
buzz@example.org,Buzz,Aldrin,"Buzz Aldrin",BuzzAldrinFAKE,"Team Amundsen",astronaut,"phboss@example.org",buzz buzz@example.org,Buzz,Aldrin,"Buzz Aldrin",BuzzAldrinFAKE,"Team Amundsen",astronaut,"phboss@example.org",buzz,swe
...@@ -285,7 +285,7 @@ if __name__ == "__main__": ...@@ -285,7 +285,7 @@ if __name__ == "__main__":
return user.email as email, user.first_name as first_name, user.last_name as last_name, return user.email as email, user.first_name as first_name, user.last_name as last_name,
user.full_name as full_name, user.github_username as github_username, user.team_name as team_name, user.full_name as full_name, user.github_username as github_username, user.team_name as team_name,
user.employee_type as employee_type, manager.email as manager_email, user.slack_id as slack_id, user.employee_type as employee_type, manager.email as manager_email, user.slack_id as slack_id,
user.is_active as is_active, user.role_name as role_name, user.is_active as is_active,
REDUCE(sum_r = 0, r in COLLECT(DISTINCT read)| sum_r + r.read_count) AS total_read, REDUCE(sum_r = 0, r in COLLECT(DISTINCT read)| sum_r + r.read_count) AS total_read,
count(distinct b) as total_own, count(distinct b) as total_own,
count(distinct c) AS total_follow count(distinct c) AS total_follow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment