can I load a file with delimiter including several chars?
I want to load a file with delimiter including four char. but I got error: ERROR 2730: COPY delimiter must be a single character can I load a file with delimiter isn't a single char?
0
Comments
https://community.vertica.com/vertica/topics/use_special_symbol_for_delimiter
For anyone who have same issue I did a small python script. Will demonstrate on Topic Question.
Table
Data
Script - http://pastebin.com/Q8At8Tcr
Usage example:
daniel@synapse:~/Documents$ /tmp/vconv.py -i /tmp/sample.txt -d '$NC$' | vsql -c "copy multisep from stdin direct delimiter e'\033' abort on error" Regards