Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-1084

modify the getFileExtension in some tests to use HoodieTable.getBaseFileExtension

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Utilities
    • None

    Description

      https://issues.apache.org/jira/browse/HUDI-684 when this issue "Introduce abstraction for writing and reading and compacting from FileGroups " has finished. we can replace 

      HoodieFileFormat.PARQUET.getFileExtension to HoodieTable.getBaseFileExtension. But some tests and utils also use HoodieFileFormat.PARQUET.getFileExtension. such as:

      class FSUtils

      public static String makeDataFileName(String instantTime, String writeToken, String fileId)

      { return String.format("%s_%s_%s%s", fileId, writeToken, instantTime, HoodieFileFormat.PARQUET.getFileExtension()); }

       

      class HoodieClientTestUtils

      if (paths[0].endsWith(HoodieFileFormat.PARQUET.getFileExtension()))

      { rows = sqlContext.read().parquet(paths); }

      ...

       

       

        

      Attachments

        Issue Links

          Activity

            People

              309637554 liwei
              309637554 liwei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: