Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
Product Backlog
-
None
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
- is related to
-
IMPALA-116 The impala shell should take of strings with tabs for output formatting.
- Resolved
- relates to
-
IMPALA-2998 impala-shell -B and --output_delimiter does not work if string contains delimiter or TABs
- Resolved