Daniel Becker has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19487


Change subject: IMPALA-11869: Use to_string() in PrintValue for printing Thrift 
types
......................................................................

IMPALA-11869: Use to_string() in PrintValue for printing Thrift types

IMPALA-11645 introduced the function PrintValue() which we use to
convert Thrift types to strings. This function now uses operator<<,
which is provided for the generated Thrift types. However, Thrift also
generates a to_string() function that is overloaded for Thrift types. It
would be more efficient to use this instead of involving streams with
operator<<.

This change reimplements PrintValue() using to_string() instead of
operator<<.

Change-Id: Ibc5b847dea2bdea7ba0ab8e093a8bab5a8145019
---
M be/src/util/debug-util.h
1 file changed, 3 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/19487/1
--
To view, visit http://gerrit.cloudera.org:8080/19487
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc5b847dea2bdea7ba0ab8e093a8bab5a8145019
Gerrit-Change-Number: 19487
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Becker <daniel.bec...@cloudera.com>

Reply via email to