You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/22 00:37:40 UTC
[Hadoop Wiki] Update of "Hive/HiveQL/Transform" by ZhengShao
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 ==