Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12498

ACID: Setting OrcRecordUpdater.OrcOptions.tableProperties() has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 1.3.0, 2.0.0
    • None

    Description

      OrcRecordUpdater does not honor the OrcRecordUpdater.OrcOptions.tableProperties() setting.
      It would need to translate the specified tableProperties (as listed in OrcTableProperties enum) to the properties that OrcWriter internally understands (listed in HiveConf.ConfVars).

      This is needed for multiple clients.. like Streaming API and Compactor.

          Properties orcTblProps = ..   // get Orc Table Properties from MetaStore;
          AcidOutputFormat.Options updaterOptions =   new OrcRecordUpdater.OrcOptions(conf)
                                                           .inspector(..)
                                                           .bucket(..)
                                                           .minimumTransactionId(..)
                                                           .maximumTransactionId(..)
                                                           .tableProperties(orcTblProps); // <<== 
          OrcOutputFormat orcOutput =   new ...
          orcOutput.getRecordUpdater(partitionPath, updaterOptions );
      
      

      Attachments

        1. HIVE-12498-branch-1.patch
          10 kB
          Prasanth Jayachandran
        2. HIVE-12498.2.patch
          4 kB
          Prasanth Jayachandran
        3. HIVE-12498.1.patch
          4 kB
          Prasanth Jayachandran

        Issue Links

          Activity

            People

              prasanth_j Prasanth Jayachandran
              prasanth_j Prasanth Jayachandran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: