10 2018 档案
摘要:这些子查询在oracle和mysql等数据库中都能执行,但是在hive中却不支持,但是我们可以把这些查询语句改为join操作: -- 1.子查询 select * from A a where a.update_time = (select min(b.update_time) from A b) -- 2.in操作 select * from...
阅读全文
摘要:建表语句: create table tb_in_base ( id bigint, devid bigint, devname string ) partitioned by (job_time bigint) row format delimited fields terminated by '
阅读全文
摘要:今天为了监控一下脚本,按照网上说的利用mail 发邮件,mail -s "error预警2" peien@1221.qq.com<'邮件内容',发现出现cc,不知道啥问题,也没有啥时间去深究了,最后估计是重定向出了问题,然后改成mail -s "error预警2" peien@1221.qq.com
阅读全文
摘要:1 package com.chinagas.common.utils; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Calendar; 6 import java.util.Date; 7 8 9 public ...
阅读全文
摘要:1、作为“通配符”,类似Java中的*。如import scala.math._ 2、:_*作为一个整体,告诉编译器你希望将某个参数当作参数序列处理!例如val s = sum(1 to 5:_*)就是将1 to 5当作参数序列处理。 3、指代一个集合中的每个元素。例如我们要在一个Array a中筛
阅读全文

浙公网安备 33010602011771号