hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Hive/HiveQL/Transform" by ZhengShao
Date Wed, 21 Jan 2009 23:37:40 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by ZhengShao:
http://wiki.apache.org/hadoop/Hive/HiveQL/Transform

New page:
[[TableOfContents]]


== Transform/Map-Reduce Syntax ==

{{{

clusterBy: CLUSTER BY colName (, colName)*
distributeBy: DISTRIBUTE BY colName (, colName)*
sortBy: SORT BY colName (, colName)*

query:
  FROM (
    FROM src
    MAP ( expression (, expression)* )
    USING 'my_map_script'
    ( AS (colName (, colName)* ) )?
    ( clusterBy? | distributeBy? sortBy? )
  )
  REDUCE ( expression (, expression)* )
    USING 'my_reduce_script'
    ( AS (colName (, colName)* ) )?

}}}

== Transform/Map-Reduce Examples ==

Mime
View raw message