1.在hive建表时,如果使用tab \t作为分隔符, 一定要保证各个字段里没有该字符,不然会顺延数据;
2.如果是其他分隔符分隔,但是字段里仍然含有\t tab 分隔符,在使用select数据时仍然会出现数据顺延,所以也要对数据去除这个特殊符号
select description as cc0,description as cc1,description as cc2,description as cc3 from bdwh.dim_tv_push_video where dt=20190928 and vid =124551353 limit 1
select regexp_replace('\t abc \n def \r hij', '\n|\t|\r', '') as c limit 1