What Should I Do If a Field Is Escaped and Contains a Backslash (\) During the Migration of a DLI Foreign Table (OBS File) to DWS?
Symptom
After the migration of a DLI foreign table to GaussDB(DWS), a field has an extra pair of quotation marks which contain an extra escape character. Other fields are normal.
Source
Fault Analysis
- As shown in the preceding figure, the sample value at the source contains special characters such as brackets and quotation marks. The JDBC driver escapes the field, and the escape character is displayed at the destination.
- For DLI foreign table and OBS bucket storage, and file-to-table migration, you can add a quote character (") to the source job configuration.
Solution
In the source job configuration, set Use Quote Char to Yes and use a double quotation mark (").
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