工作中,遇到要从已有的pgsql 转移到hive 中,下面总结一些用到的转换。
- 字符定位
pgsql: position('市' in locationField)
hql: instr(locationField, '市')
2.hive只支持全表操作,pg支持指定记录操作。
pgsql: update set field=newValue where field in ...
hql: if
工作中,遇到要从已有的pgsql 转移到hive 中,下面总结一些用到的转换。
pgsql: position('市' in locationField)
hql: instr(locationField, '市')
2.hive只支持全表操作,pg支持指定记录操作。
pgsql: update set field=newValue where field in ...
hql: if