fix bug in decimal of Hive 0.13.1 & unit test of CTAS