Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-462

[C++] Implement in-memory conversions between non-nested primitive types and DictionaryArray equivalent

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5.0
    • Component/s: C++
    • Labels:
      None

      Description

      We use a hash table to extract unique values and dictionary indices. There may be an opportunity to consolidate common code from the dictionary encoding implementation implemented in parquet-cpp (but the dictionary indices will not be run-length encoded in Arrow):

      https://github.com/apache/parquet-cpp/blob/master/src/parquet/encodings/dictionary-encoding.h

      This functionality also needs to permit encoding split across multiple record batches – so the hash table would be a stateful entity, and we can continue to hash more chunks of data to dictionary-encode multiple arrays with a shared dictionary at the end.

        Attachments

          Activity

            People

            • Assignee:
              xhochy Uwe L. Korn
              Reporter:
              wesmckinn Wes McKinney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: