Advertisement
Guest User

Untitled

a guest
Jun 7th, 2012
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. hive> set hive.optimize.ppd=true;
  2. hive> explain select a.* from a join b on(a.key=b.key) where a.some_col='blah';
  3. OK
  4. ABSTRACT SYNTAX TREE:
  5. (TOK_QUERY (TOK_FROM (TOK_JOIN (TOK_TABREF (TOK_TABNAME a)) (TOK_TABREF (TOK_TABNAME b)) (= (. (TOK_TABLE_OR_COL a) key) (. (TOK_TABLE_OR_COL b) key)))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_ALLCOLREF (TOK_TABNAME a)))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL a) some_col) 'blah'))))
  6.  
  7. STAGE DEPENDENCIES:
  8. Stage-1 is a root stage
  9. Stage-0 is a root stage
  10.  
  11. STAGE PLANS:
  12. Stage: Stage-1
  13. Map Reduce
  14. Alias -> Map Operator Tree:
  15. a
  16. TableScan
  17. alias: a
  18. Filter Operator
  19. predicate:
  20. expr: (some_col = 'blah')
  21. type: boolean
  22. Reduce Output Operator
  23. key expressions:
  24. expr: key
  25. type: int
  26. sort order: +
  27. Map-reduce partition columns:
  28. expr: key
  29. type: int
  30. tag: 0
  31. value expressions:
  32. expr: key
  33. type: int
  34. expr: some_col
  35. type: string
  36. b
  37. TableScan
  38. alias: b
  39. Reduce Output Operator
  40. key expressions:
  41. expr: key
  42. type: int
  43. sort order: +
  44. Map-reduce partition columns:
  45. expr: key
  46. type: int
  47. tag: 1
  48. Reduce Operator Tree:
  49. Join Operator
  50. condition map:
  51. Inner Join 0 to 1
  52. condition expressions:
  53. 0 {VALUE._col0} {VALUE._col1}
  54. 1
  55. handleSkewJoin: false
  56. outputColumnNames: _col0, _col1
  57. Filter Operator
  58. predicate:
  59. expr: (_col1 = 'blah')
  60. type: boolean
  61. Select Operator
  62. expressions:
  63. expr: _col0
  64. type: int
  65. expr: _col1
  66. type: string
  67. outputColumnNames: _col0, _col1
  68. File Output Operator
  69. compressed: false
  70. GlobalTableId: 0
  71. table:
  72. input format: org.apache.hadoop.mapred.TextInputFormat
  73. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  74.  
  75. Stage: Stage-0
  76. Fetch Operator
  77. limit: -1
  78.  
  79.  
  80. Time taken: 2.659 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement