case when to_date(substring(data,126,8), 'YYYYMMDD') = '00000000' or to_date(substring(data,126,8), 'YYYYMMDD') = '20180505' or to_date(substring(data,126,8), 'YYYYMMDD') = ''
then null
else
to_date(substring(data,126,8), 'YYYYMMDD')
end ,
trim( substring(data,126,8))
错误:日期/时间字段值超出范围:“ 00000000”第15行:... to_date(substring(data,126,8),'YYYYMMDD')='00000000'...
我文件中的样本数据如下:
20180704
28.08
65.48
74.98
93.87
20180705