1、问项目,问的比较细。
2、讲述几个算子,transformation算子,action算子
3、写二分查找
4、中序遍历二叉树
5、求PV,UV
6、讲几个算子
7、求网站的留存,
id action time
1 1 11.00
2 0 11.00
业务要求是七天之前登录这个网站的有多少人,假如是100吧
七天之后登录这个网站的人里边,七天之前登录过的只剩下了30人
那么留存就是30/100=0.3
写语句来查询求这个值。提示是写SQL
select count(id) from table1 group by time
select count(id) from table groupby time and id in select id from table1
select count(id) from table group by time
distinct
over
group by
row number