Handling Import Errors
Scenarios
Handle errors that occurred during data import.
Querying Error Information
Errors that occur when data is imported are divided into data format errors and non-data format errors.
- Data format errors
When creating a foreign table, specify LOG INTO error_table_name. Data format errors during data import will be written into the specified table. You can run the following SQL statement to query error details:
1
openGauss=# SELECT * FROM error_table_name;
Table 1 lists the columns of the error_table_name table.Table 1 Columns in the error information table Column Name
Type
Description
nodeid
integer
ID of the node where an error is reported
begintime
timestamp with time zone
Time when a data format error was reported
filename
character varying
Name of the source data file where a data format error occurs
rownum
numeric
Number of the row where a data format error occurs in a source data file
rawrecord
text
Raw record of a data format error in the source data file
detail
text
Error details
- Non-data format errors
A non-data format error leads to the failure of an entire data import task. You can locate and troubleshoot a non-data format error based on the error message displayed during data import.
Handling Data Import Errors
Troubleshoot data import errors based on obtained error information and descriptions in Table 2.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot