如何编写配置单元sql从表a获取表b(没有任何自定义项)?
表a
PLATFORM USER_ID CLICK_TIME CLICK_URL
网址:12332321 2013-03-21 13:48:31.324/主页/
网址:12332321 2013-03-21 13:48:32.954/selectcat/er/
网址:12332321 2013-03-21 13:48:46.365/er/viewad/12.html
网址:12332321 2013-03-21 13:48:53.651/er/viewad/13.html
网址:12332321 2013-03-21 13:49:13.435/er/viewad/24.html
网址:12332321 2013-03-21 13:49:35.876/selectcat/che/
网址:12332321 2013-03-21 13:49:56.398/che/viewad/93.html
网址:12332321 2013-03-21 13:50:03.143/che/viewad/10.html
网址:12332321 2013-03-21 13:50:34.265/主页/
wap 32483923 2013-03-21 23:58:41.123/m/主页/
wap 32483923 2013-03-21 23:59:16.123/m/selectcat/fang/
wap 32483923 2013-03-21 23:59:45.123/m/fang/33.html。。。。。。
表b
平台用户\u id seq from \u url to \u url
网站12332321 1空/主页/
网址12332321 2/home//selectcat/er/
网址12332321 3/selectcat/er//er/viewad/12.html
网址12332321 4/er/viewad/12.html/er/viewad/13.html
网站12332321 5/er/viewad/13.html/er/viewad/24.html
网址12332321 6/er/viewad/24.html/selectcat/che/
网址12332321 7/selectcat/che//che/viewad/93.html
网址12332321 8/che/viewad/93.html/che/viewad/10.html
网址:12332321 9/che/viewad/10.html/home/
wap 32483923 1空/m/家/
wap 32483923 2/m/主页//m/选择猫/方/
wap 32483923 3/m/selectcat/fang//m/fang/33.html
wap 32483923 4/m/fang/33.html/m/fang/54.html
1条答案
按热度按时间mkh04yzy1#
没有自定义项的rank()现在是不可能的。您可以使用pig或伪udf。这里是类似的帖子(来源)。德国劳埃德!