Search found 7 matches
- Fri Jun 10, 2016 10:31 pm
- Forum: Vertica SQL
- Topic: Named value pair data in VARCHAR
- Replies: 1
- Views: 13965
Named value pair data in VARCHAR
Hi All, We are trying to read LONG VAR CHAR data which has named value pair separated by '+' and the columns itself are delimited by semicolon. For example the column has data like this: Sequence+19;Description+SB;OrderStatus+Created If we pass attribute name as Sequence, then it should return: 19 I...
- Thu Apr 18, 2013 5:46 pm
- Forum: Vertica Data Load
- Topic: Suppressing Header records in Copy command
- Replies: 1
- Views: 8951
Suppressing Header records in Copy command
All,
If I receive a file with header and trailer, how can I exclude them while loading using copy command. For ex: below is the file format
Is it possible to exclude C1 and C2 from loading in to the table?
If I receive a file with header and trailer, how can I exclude them while loading using copy command. For ex: below is the file format
Code: Select all
C1|C2
1|A
2|B
- Sun Apr 14, 2013 2:45 am
- Forum: Vertica Data Load
- Topic: COPY command has ETL capabilities
- Replies: 6
- Views: 16863
Re: COPY command has ETL capabilities
Thanks so much sKwa. This is great idea. But is it possible to not include c1 c2 and c3 as part of copy command but still achieve this?
- Fri Apr 12, 2013 1:34 pm
- Forum: Vertica Error Codes
- Topic: ERROR: permission denied for storage location
- Replies: 8
- Views: 50250
Re: ERROR: permission denied for storage location
Hi All, We have resolved this. In Vertica, only a super user (or sudo) can copy the data. See the following from manual: Only a superuser can use the COPY statement to bulk load data. The COPY exceptions to requiring a superuser to bulk load data files are to run copy to load from a stream on the ho...
- Fri Apr 12, 2013 1:28 pm
- Forum: Vertica Data Load
- Topic: COPY command has ETL capabilities
- Replies: 6
- Views: 16863
Re: COPY command has ETL capabilities
sKwa, knicely87, Assume if a file used for bulk loading has 20 million records with 7 columns, then I would like to add 3 additional static auditing columns to all the 20 million records while loading using copy command. Is it possible to include these columns with copy command (Ofcourse table has 7...
- Thu Apr 11, 2013 2:29 am
- Forum: Vertica Error Codes
- Topic: ERROR: permission denied for storage location
- Replies: 8
- Views: 50250
Re: ERROR: permission denied for storage location
Jim,
I too have the same question like becky. Additionally what will be the storage location for a user? How can we know that?
I too have the same question like becky. Additionally what will be the storage location for a user? How can we know that?
- Thu Apr 04, 2013 9:39 pm
- Forum: Vertica Error Codes
- Topic: ERROR: permission denied for storage location
- Replies: 8
- Views: 50250
Re: ERROR: permission denied for storage location
Knicely, I too faced the same error and I modified to use stdin/copy command. But I still faced the same error. However, when I removed exceptions from the command it worked just fine. See below. This worked: cat /home/xxxxxx/file.dat | /opt/vertica/bin/vsql -U xxxxxx-w yyyyyy -c "copy xxxxxx.book f...