mirror of
https://github.com/apache/impala.git
synced 2025-12-30 03:01:44 -05:00
This change adds a shell option called "hs2_fp_format" which manipulates the print format of floating-point values in HS2. It lets the user to specify a Python-based format specification expression (https://docs.python.org/2.7/library/string.html#formatspec) which will get parsed and applied to floating-point column values. The default value is None, in this case the formatting is the same as the state before this change. This option does not support the Beeswax protocol, because Beeswax converts all of the column values to strings in its response. Tests: command line tests for various formatting options and for invalid formatting option Change-Id: I424339266be66437941be8bafaa83fa0f2dfbd4e Reviewed-on: http://gerrit.cloudera.org:8080/18990 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>