designs.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [
  2. {
  3. "name":"Sample: Top salary",
  4. "desc":"Top salary 2007 above $100k",
  5. "type":"0",
  6. "data":{
  7. "query":{
  8. "query":"SELECT sample_07.description, sample_07.salary\nFROM\n sample_07\nWHERE\n( sample_07.salary > 100000)\nSORT BY sample_07.salary DESC",
  9. "type":null,
  10. "email_notify":null,
  11. "is_parameterized":null
  12. },
  13. "functions":[ ],
  14. "VERSION":"0.4.0",
  15. "file_resources":[ ],
  16. "settings":[ ]
  17. }
  18. },
  19. {
  20. "name":"Sample: Salary growth",
  21. "desc":"Salary growth (sorted) from 2007-08",
  22. "type":"0",
  23. "data":{
  24. "query":{
  25. "query":"SELECT s07.description, s07.salary, s08.salary,\n s08.salary - s07.salary\nFROM\n sample_07 s07 JOIN sample_08 s08\nON ( s07.code = s08.code)\nWHERE\n s07.salary < s08.salary\nSORT BY s08.salary-s07.salary DESC",
  26. "type":null,
  27. "email_notify":null,
  28. "is_parameterized":null
  29. },
  30. "functions":[ ],
  31. "VERSION":"0.4.0",
  32. "file_resources":[ ],
  33. "settings":[
  34. {
  35. "value":"1",
  36. "key":"hive.merge.mapredfiles"
  37. }
  38. ]
  39. }
  40. },
  41. {
  42. "name":"Sample: Job loss",
  43. "desc":"Job loss among the top earners 2007-08",
  44. "type":"0",
  45. "data":{
  46. "query":{
  47. "query":"SELECT s07.description, s07.total_emp, s08.total_emp, s07.salary\nFROM\n sample_07 s07 JOIN \n sample_08 s08\nON ( s07.code = s08.code )\nWHERE\n( s07.total_emp > s08.total_emp\n AND s07.salary > 100000 )\nSORT BY s07.salary DESC",
  48. "type":null,
  49. "email_notify":null,
  50. "is_parameterized":null
  51. },
  52. "functions":[ ],
  53. "VERSION":"0.4.0",
  54. "file_resources":[ ],
  55. "settings":[ ]
  56. }
  57. }
  58. ]