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

modify the getFileExtension in some tests to use HoodieTable.getBaseFileExtension

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Utilities
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: