使用azure数据工厂将雪花中的别名列名称插入到azure sql中

问题描述 投票:0回答:1

我有下面的选择查询,它从雪花中的多个表中选择值并插入到azure sql中 我正在为此使用 azure 数据工厂...

select a.first_name as Name,  b.emp_id as Id from table1 a join table2 b on a.id=b.empId

已经在 azure sql 中为 Name 和 Id 创建了列 但管道失败并显示以下消息

Failure happend on sink side
Column NAME cannot found in the Physical data base. 

我能够为“名称”创建映射,但即使只有名称值插入到 SQL 表中也是如此。在这种情况下,管道成功但未插入其他列值“Id”。 事实上,我无法添加其他列“Id”的映射

对此有什么解决办法吗?

azure azure-sql-database azure-data-factory snowflake-schema
1个回答
0
投票

故障发生在水槽一侧 在物理数据库中找不到列 NAME。

您收到的错误是,如果 SQL 表中不存在该列,并且您使用的映射不正确,则该列的名称区分大小写。

  • 检查您使用的名称是否正确。

检查您的查询是否获得正确的数据预览。

enter image description here

然后在“映射”下导入映射并相应地映射列。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.