Greenplum external table loading HDFS data, the data is as follows:
S1000001 ^ @ ^ 200001 ^ @ ^ 300001
S1000002 ^ @ ^ 200002 ^ @ ^ 300002
Separator is ^ @ ^
In greenplum external table mode loading, can only use a single delimiter, is there any way to customize the delimiter? Best to have an example, thank you.
I tried to modify the greenplum source code, in the copy.c file, modify the following code, build the table can be successful, but the data is wrong.
/* single byte encoding such as ascii, latinx and other */
if (strlen(delim) != 1 && !delim_off)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("delimiter must be a single one-byte character, or \'off\'")));