Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-1840

impala-shell always treats tab as column boundaries and adds delimiter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Product Backlog
    • None
    • Clients

    Description

      From the user list:

      In debugging some issues exporting csv data I caught an interesting edge case in impala-shell. Apparently any time you have a tab in a string, shell decides it's a column boundary and adds a delimiter regardless of what your delimiter choice was. I suppose behind the scenes it's doing something like producing tab delimited strings then remapping the tabs to your delimiter of choice, because that's the best explanation I can think of for this behavior

      Sample:

      $ bin/impala-shell.sh --quiet -B --output_delimiter ":" -q 'select "ab", "cd"'
      ab:cd
      
      $ bin/impala-shell.sh --quiet -B --output_delimiter ":" -q $'select "a\tb", "cd"'
      a:b:cd
      

      Attachments

        Issue Links

          Activity

            People

              zi Zoltan Ivanfi
              ippokratis Ippokratis Pandis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: