Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4450

Add seek support to TCompactInputProtocol in Rust

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: Ruby - Library
    • Labels:
      None

      Description

      Per Vadim Chekan:

      When Thrift is used in encoding which combine manual and Thrift serialization, such as Apache Parquet then it is required to be able to position within a file manually.
      https://github.com/apache/parquet-format#file-format
      As TCompactInputProtocol owns value of transport, it is not possible to access it outside of TCompactInputProtocol and perform seek operation.

      This patch implements Seek trait for transports which support it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                jking3 James E. King III
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: