简体   繁体   English

Azure 数据工厂 v2 管道双引号

[英]Azure Data Factory v2 pipeline double quotes

My source file has nvarchar and numeric columns.我的源文件有 nvarchar 和数字列。

Numeric column has thousand separator, do identify the value comes with double quotes.数值列有千位分隔符,请务必用双引号识别值。 When i use the quoteChar ("\\"") in file format the numeric value works fine.当我在文件格式中使用 quoteChar ("\\"") 时,数值工作正常。

Same time the nvarchar column (Name) has multiple double quotes between the data, if i use the quoteChar the values are split into further more columns based on the number of double quotes.同时,nvarchar 列(名称)在数据之间有多个双引号,如果我使用 quoteChar,则值将根据双引号的数量分成更多的列。

Is there any fix/solution for this?是否有任何修复/解决方案?

Based on the properties in Text format, only one character is allowed. 根据文本格式的属性 ,仅允许使用一个字符。 So you can't separate the different data types by different delimiter. 因此,您不能通过不同的定界符来分隔不同的数据类型。

You could try to use | 您可以尝试使用| column delimiter if your nvarchar doesn't have | 列定界符,如果您的nvarchar没有| character. 字符。 Or maybe you have to parse your source file to remove the thousand separator in an Azure Function activity before the transfer. 或者,也许您必须解析源文件才能在传输之前删除Azure Function活动中的千位分隔符。 Then it could be identified by copy activity in adf. 然后可以通过adf中的复制活动来识别它。

ADF parser fails while reading text that is encapsulated with double quotes and also have a comma within the text, like "Hello, World". ADF 解析器在读取用双引号封装并且在文本中包含逗号(例如“Hello, World”)的文本时失败。 To make it work, set Escape Character and Quote Character properties value to double quote.要使其工作,请将 Escape Character 和 Quote Character 属性值设置为双引号。 This will save the whole text with double quotes into destination.这会将带有双引号的整个文本保存到目的地。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM