hive中如何避免用科学计数法表示浮点数?
  1. format_number

    hive> select format_number(pow(10,8),'##################.##');
    100000000
  2. decimal

    hive> select cast (pow(10,8) as decimal(20, 2) );
    100000000
Author: Tunan
Link: http://yerias.github.io/2021/07/18/hive/38/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.