Advertisement
Guest User

Untitled

a guest
Jun 7th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. hive> set hive.optimize.ppd=false;
  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. Reduce Output Operator
  19. key expressions:
  20. expr: key
  21. type: int
  22. sort order: +
  23. Map-reduce partition columns:
  24. expr: key
  25. type: int
  26. tag: 0
  27. value expressions:
  28. expr: key
  29. type: int
  30. expr: some_col
  31. type: string
  32. b
  33. TableScan
  34. alias: b
  35. Reduce Output Operator
  36. key expressions:
  37. expr: key
  38. type: int
  39. sort order: +
  40. Map-reduce partition columns:
  41. expr: key
  42. type: int
  43. tag: 1
  44. Reduce Operator Tree:
  45. Join Operator
  46. condition map:
  47. Inner Join 0 to 1
  48. condition expressions:
  49. 0 {VALUE._col0} {VALUE._col1}
  50. 1
  51. handleSkewJoin: false
  52. outputColumnNames: _col0, _col1
  53. Filter Operator
  54. predicate:
  55. expr: (_col1 = 'blah')
  56. type: boolean
  57. Select Operator
  58. expressions:
  59. expr: _col0
  60. type: int
  61. expr: _col1
  62. type: string
  63. outputColumnNames: _col0, _col1
  64. File Output Operator
  65. compressed: false
  66. GlobalTableId: 0
  67. table:
  68. input format: org.apache.hadoop.mapred.TextInputFormat
  69. output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  70.  
  71. Stage: Stage-0
  72. Fetch Operator
  73. limit: -1
  74.  
  75.  
  76. Time taken: 3.012 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement