Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-428

Use ORC_UNIQUE_PTR consistently in OrcFile, OrcHdfsFile, and Writer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • C++
    • None

    Description

      In OrcFile.hh, the declarations of  readLocalFile() and other four functions return  ORC_UNIQUE_PTR:

      ORC_UNIQUE_PTR<InputStream> readLocalFile(const std::string& path);

      ORC_UNIQUE_PTR<InputStream> readHdfsFile(const std::string& path);

      ORC_UNIQUE_PTR<Reader> createReader(ORC_UNIQUE_PTR<InputStream> stream,
      const ReaderOptions& options);

      ORC_UNIQUE_PTR<Writer> createWriter(const Type& type, OutputStream* stream, const WriterOptions& options);

      However, these functions' definitions all return std::unique_ptr. On a system where ORC_UNIQUE_PTR is not defined as std::unique_ptr but std::auto_ptr, there is inconsistency.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fangzheng Fang Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: