Handle errors that occurred during data import.
Errors that arise during data import are categorized as either data format errors or non-data format errors. The error table records only data format errors.
When creating a foreign table, specify LOG INTO error_table_name. Data format errors occurring during the data import will be written into the specified table. You can run the following SQL statement to query error details:
1 | SELECT * FROM error_table_name; |
Column |
Type |
Description |
---|---|---|
nodeid |
integer |
ID of the node where an error is reported |
begintime |
timestamp with time zone |
Time when a data format error is reported |
filename |
character varying |
Name of the source data file where a data format error occurs If you use GDS for importing data, the error information includes the IP address and port number of the GDS server. |
rownum |
bigint |
Number of the row where an error occurs in a source data file |
rawrecord |
text |
Raw record of the data format error in the source data file |
detail |
text |
Error details |
If a non-data format error occurs during data import, the entire process is halted. During data import, you can identify and correct errors by reviewing the displayed error information.
Troubleshoot data import errors based on obtained error information and the description in the following table.