AWS glue 中的转义字符

0

【以下的问题经过翻译处理】 大家好, 我有一个 AWS Glue作业,从 s3 中读取 CSV 文件,并将数据注入到 MySQL RDS Aurora DB 的表中。

问题是 CSV 文件中所有带有转义字符的行都被Glue作业完全忽略,并且没有插入到表格当中。

例如,在我的 CSV 文件中,如下字符串的行被 glue 作业忽略:

"Return "1" if the number is zero; "0" if the number is non-zero. xxxxxxxxxxxxxx."

我该如何配置Glue 作业,才能使其不漏掉那些包含转义双引号的行?

1 Respuesta
0

【以下的回答经过翻译处理】 我找到了一个解决方案:

在 AWS Glue 控制台 => 选择表,找到该表并编辑表详细信息。

在表属性中添加如下Key设置:

  • escapeChar,并输入一个反斜杠。
profile picture
EXPERTO
respondido hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas