Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11869

Use to_string() in PrintValue for printing Thrift types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • None
    • Impala 4.3.0
    • Backend
    • None
    • ghx-label-1

    Description

      The change IMPALA-11645: Remove PrintThriftEnum functions in debug-util.cc 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<<.

      Attachments

        Issue Links

          Activity

            People

              daniel.becker Daniel Becker
              daniel.becker Daniel Becker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: