[ https://issues.apache.org/jira/browse/IMPALA-10660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17608821#comment-17608821 ]
ASF subversion and git services commented on IMPALA-10660: ---------------------------------------------------------- Commit 81e36d45844e41e0edf5f51c03b3abdae1094cbd in impala's branch refs/heads/master from Peter Rozsa [ https://gitbox.apache.org/repos/asf?p=impala.git;h=81e36d458 ] 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-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> > Impala shell prints DOUBLEs with less precision in HS2 than beeswax > ------------------------------------------------------------------- > > Key: IMPALA-10660 > URL: https://issues.apache.org/jira/browse/IMPALA-10660 > Project: IMPALA > Issue Type: Bug > Components: Clients > Reporter: Csaba Ringhofer > Assignee: Peter Rozsa > Priority: Major > Labels: ramp-up > > python shell/impala_shell.py --protocol hs2 > select cast("0.123451234512345" as double); > result: 0.123451234512 (looses precision) > python shell/impala_shell.py --protocol beeswax > select cast("0.123451234512345" as double); > result 0.123451234512345 (no precision loss) -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org