【发布时间】:2012-01-10 12:11:48
【问题描述】:
寻找一些关于在 apache pig 中编写子查询的帮助。例如我有以下两个关系-
A
sam 12 grad maths
sony 13 postgrad english
B
maths {(4.5,sam),(4,david)}
english {(4.2,peter),(3.9,rob)}
按主题连接两个关系,即 A 通过 A.$3 和 B 通过 B.$0,并且必须编写查询,它将输出为 -
sam 12 grad maths 4.5
sony 13 postgrad english
基本上它应该检查 B 中的匹配主题,然后在其中查找名称。
【问题讨论】:
标签: hadoop apache-pig