Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5603

Replace String file paths to Hadoop Path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.0, 1.15.0
    • 1.16.0
    • None

    Description

      String paths are used in the different places of the Drill code:
      FileSelection, Metadata, ParquetGroupScan, ReadEntryWithPath, FileWork, FormatSelection, FormatPlugin, PartitionLocation and so on.
      Code with paths as strings is hard to test and maintain. And there are a lot of String to Path conversions and vice versa.

      The aim of this jira to replace String paths with Hadoop Path. The job of the Path class is do properly implement file path operations, just as the job of the older File and newer Path classes in Java is to handle OS paths.

      For the serialized structures a custom JsonSerializer<Path> and JsonDeserializer<Path> can be implemented.

      Attachments

        Issue Links

          Activity

            People

              vitalii Vitalii Diravka
              vitalii Vitalii Diravka
              Vova Vysotskyi Vova Vysotskyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: