bulk loading
Hi, I am trying to load a .txt file with nearly 33 Million integers( separated with spaces) which I am storing in a table as a single column of integers. I am using COPY with Direct option. Though on execution I am not getting any error but the loading is not happening even after hours of waiting. .txt file is nearly of 1.2 Gb. I am using community edition.
0
Comments
COPY 'table name' FROM '/path/to/data.txt' DIRECT RECORD TERMINATOR ','
3. try option ABORT ON ERROR - will output a reason for rejection.COPY 'table name' FROM '/path/to/data.txt' DIRECT RECORD TERMINATOR ',' ABORT ON ERROR
4. Check rejected and exception files or define it in COPY:COPY 'table name' FROM '/path/to/data.txt' DIRECT RECORD TERMINATOR ',' REJECTED DATA 'path' EXCEPTIONS 'path'
https://my.vertica.com/docs/6.1.x/HTML/index.htm#12330.htm