Hive
  1. Hive
  2. HIVE-1532

Replace globStatus with listStatus inside Hive.java's replaceFiles.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      globStatus expects a regular expression, so if there is special characters (like '{' , '[') in the filepath, this function will fail.

      We should be able to replace this call with listStatus easily since we are not passing regex to replaceFiles(). The only places replaceFiles is called is in loadPartition and Table's replaceFiles.

        Activity

        Hide
        Namit Jain added a comment -

        +1

        will commit if the tests pass

        Show
        Namit Jain added a comment - +1 will commit if the tests pass
        Hide
        Namit Jain added a comment -

        Committed. Thanks yongqiang

        Show
        Namit Jain added a comment - Committed. Thanks yongqiang

          People

          • Assignee:
            He Yongqiang
            Reporter:
            He Yongqiang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development