Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-23425

load data for hdfs file path with wild card usage is not working properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: SQL
    • Labels:
    • Docs Text:
      Hide
      Release notes:

      Wildcard symbols {{*}} and {{?}} can now be used in SQL paths when loading data, e.g.:

      LOAD DATA INPATH 'hdfs://hacluster/user/ext*'
      LOAD DATA INPATH 'hdfs://hacluster/user/???/data'

      Where these characters are used literally in paths, they must be escaped with a backslash.

      Wildcards can be used in the folder level of a local File system in Load command from now.

       e.g. LOAD DATA LOCAL INPATH 'tmp/folder*/

      Now onward normal Space convention can be used in folder/file names (e.g file Name.csv), Older versions space in folder/file names has been represented using '%20'(e.g. myFile%20Name).

      #
      Show
      Release notes: Wildcard symbols {{*}} and {{?}} can now be used in SQL paths when loading data, e.g.: LOAD DATA INPATH ' hdfs://hacluster/user/ext*' LOAD DATA INPATH ' hdfs://hacluster/user/???/data' Where these characters are used literally in paths, they must be escaped with a backslash. Wildcards can be used in the folder level of a local File system in Load command from now.  e.g. LOAD DATA LOCAL INPATH 'tmp/folder*/ Now onward normal Space convention can be used in folder/file names (e.g file Name.csv), Older versions space in folder/file names has been represented using '%20'(e.g. myFile%20Name). #

      Description

      load data command  for loading data from non local  file paths by using wild card strings lke * are not working

      eg:

      "load data inpath 'hdfs://hacluster/user/ext*  into table t1"

      Getting Analysis excepton while executing this query

        Attachments

        1. wildcard_issue.PNG
          13 kB
          Sujith Chacko

          Issue Links

            Activity

              People

              • Assignee:
                S71955 Sujith Chacko
                Reporter:
                S71955 Sujith Chacko
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: