Решите эту проблему в Impala, вручную создав новые столбцы
create table newtab as select period,case when `date`=2005 then rating else null end as 2005,
case when `date`=2006 then rating else null end as 2006,
.
.
case when `date`=2011 then rating else null end as 2011
from origtable