Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7093 Separate out static/dynamic partitioning code in HCatalog as implementations
  3. HIVE-7094

Separate out static/dynamic partitioning code in FileRecordWriterContainer

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • HCatalog
    • None
    • Reviewed

    Description

      There are two major places in FileRecordWriterContainer that have the if (dynamicPartitioning) condition: the constructor and write().

      This is the approach that I am taking:

      1. Move the DP and SP code into two subclasses: DynamicFileRecordWriterContainer and StaticFileRecordWriterContainer.
      2. Make FileRecordWriterContainer an abstract class that contains the common code for both implementations. For write(), FileRecordWriterContainer will call an abstract method that will provide the local RecordWriter, ObjectInspector, SerDe, and OutputJobInfo.

      Attachments

        1. HIVE-7094.5.patch
          29 kB
          David Chen
        2. HIVE-7094.4.patch
          29 kB
          David Chen
        3. HIVE-7094.3.patch
          18 kB
          David Chen
        4. HIVE-7094.1.patch
          29 kB
          David Chen

        Activity

          People

            davidzchen David Chen
            davidzchen David Chen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: