mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
IMPALA-10660: Impala shell prints DOUBLEs with less precision in HS2 than beeswax
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>
This commit is contained in:
committed by
Impala Public Jenkins
parent
3f382b7ebb
commit
81e36d4584
@@ -60,6 +60,7 @@ assemble_package_files() {
|
||||
cp "${SHELL_HOME}/ImpalaHttpClient.py" "${MODULE_LIB_DIR}"
|
||||
cp "${SHELL_HOME}/shell_exceptions.py" "${MODULE_LIB_DIR}"
|
||||
cp "${SHELL_HOME}/cookie_util.py" "${MODULE_LIB_DIR}"
|
||||
cp "${SHELL_HOME}/value_converter.py" "${MODULE_LIB_DIR}"
|
||||
|
||||
cp "${SHELL_HOME}/packaging/README.md" "${PACKAGE_DIR}"
|
||||
cp "${SHELL_HOME}/packaging/MANIFEST.in" "${PACKAGE_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user