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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • C++
    • 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

            uwe Uwe Korn
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: