hive踩过的坑

 

1、hive 中  between的是包括边界值的 

a between 1 and 10    =      a<=10 and a>=1

 

2、case when 只能限制一列的值。  一个 case后只能限制一列,其他的不行!!!