我们经常无法在Netezza连接器中使用分区读取。
示例
当分区读取=是和运行时生成的SQL =是时,这有效:
SELECT "Firma", "KundeNr", "ArtikkelNr"," LagerstedNr"
FROM dwhusr."TI_FT_Salg"
当运行时生成的SQL =否且DataStage自动生成查询(或者我们自己编写)时,查询如下所示:
SELECT "Firma", "KundeNr", "ArtikkelNr"," LagerstedNr"
FROM dwhusr."TI_FT_Salg"
WHERE mod(datasliceid,[[node-count]])=[[node-number]]
然后会抛出错误:
DB_TI_FT_Salg:发生意外的ODBC错误。原因:[SQLCODE = 42000] [Native = 27] ERROR:'SELECT“Firma”,“KundeNr”,“ArtikkelNr”,“LagerstedNr”来自dwhusr。“TI_FT_Salg”其中mod(datasliceid,[[node-count]]) = [[node-number]] limit 0'
error ^ found“[”(在字符102处)期望标识符找到关键字(CC_NZMetadataHelper :: describeResultSet,file CC_NZMetadataHelper.cpp,第5行622)
请帮忙!