Re: substr() index out of range exception in hive 0.8.1

2013-01-24 Thread 曹坤
Hi Yu Yang have a look at this issue: https://issues.apache.org/jira/browse/HIVE-2722 2013/1/25 Yu Yang > Hi All, > > I'm working on hive 0.8.1. and meet following problem. > I use function substr(item,-4,1) to process one item in hive table, and > there is one row in which the content of the

substr() index out of range exception in hive 0.8.1

2013-01-24 Thread Yu Yang
Hi All, I'm working on hive 0.8.1. and meet following problem. I use function substr(item,-4,1) to process one item in hive table, and there is one row in which the content of the item is "ba_s0一朝忽觉京梦醒,半世浮沉雨打萍--衣俊卿小n实录010", then the job failed. I checked the task log, it appeared java.lang.Strin