上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: SET start_day=case when '${start_day}'='null' then '$[time(yyyy-MM-dd,-3d)]' else '${start_day}' end; --3天前的 SET end_day=case when '${end_day}'='null' 阅读全文
posted @ 2022-08-02 11:01 架构艺术 阅读(159) 评论(0) 推荐(0)
摘要: 在一个几年的旧表,表最后面,新增字段 alter table dwd.dwd_xxx_dtl_di add columns( `line_type` string COMMENT 'xx类型' ) cascade; 插入语句,新增字段一定在select语句最后面。不然字段会错位 insert sel 阅读全文
posted @ 2022-06-09 14:00 架构艺术 阅读(151) 评论(1) 推荐(0)
摘要: 字段内容,以M或P开头 select dept_code RLIKE '^[MP].*' a, * from tmp_gdl.tmp10_bk where dept_code RLIKE '^[MP].*' limit 100 字段名,查找除了ds和hr之外的所有列。 set hive.suppor 阅读全文
posted @ 2022-06-09 13:56 架构艺术 阅读(66) 评论(0) 推荐(0)
摘要: hive解析json,高级案例,非udf 阅读全文
posted @ 2022-05-07 12:59 架构艺术 阅读(333) 评论(0) 推荐(0)
摘要: show PROCESSLIST; kill 852535; 阅读全文
posted @ 2022-04-15 10:32 架构艺术 阅读(31) 评论(0) 推荐(0)
摘要: Error: java.io.IOException: cannot find class org.apache.hudi.hadoop.HoodieParquetInputFormat at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.g 阅读全文
posted @ 2022-03-29 15:09 架构艺术 阅读(773) 评论(0) 推荐(0)
摘要: 5.2 随机数的处理 导入模块后,可以直接在 模块名称 后面敲一个 . 然后按 Tab 键,会提示该模块中包含的所有函数 import random random.randint(12, 20) # 生成的随机数n: 12 <= n <= 20 random.randint(20, 20) # 结果 阅读全文
posted @ 2022-01-05 18:19 架构艺术 阅读(37) 评论(0) 推荐(0)
摘要: 查看当前类所有方法:alt+7,如下图 阅读全文
posted @ 2021-12-03 01:01 架构艺术 阅读(48) 评论(0) 推荐(0)
摘要: 1.点击"setings" 2.选择"plugins",然后选择Browse repositories 3.在搜索框中输入"lombok",点击"lombok Plugin" , 然后点击"inatall"进行插件下载. 4.下载成功后,在pom.xml文件中编写lombok的版本控制 <depen 阅读全文
posted @ 2021-11-21 23:42 架构艺术 阅读(1020) 评论(0) 推荐(0)
摘要: import com.bean.Yyds1 import org.apache.spark.sql.SparkSession object TestReadCSV { def main(args: Array[String]): Unit = { val spark = SparkSession.b 阅读全文
posted @ 2021-11-21 23:39 架构艺术 阅读(3957) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页