wyn*_*wyn 0 etl amazon-web-services amazon-redshift
SELECT s.store_id AS store_key,
s.store_id,
a.address,
a.address2,
a.district,
c.city,
co.country,
a.postal_code,
st.first_name AS manager_first_name,
st.last_name AS manager_last_name,
now() AS start_date,
now() AS end_date
FROM staging_store s
JOIN staging_staff st ON (s.manager_staff_id = st.staff_id)
JOIN staging_address a ON (s.address_id = a.address_id)
JOIN staging_city c ON (a.city_id = c.city_id)
JOIN staging_country co ON (c.country_id = co.country_id)
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用上面的查询将我的 pagila 数据加载到 Redshift 中,但遇到了这个错误。到处找遍了,还是没找到解决办法。
[Amazon](500310) Invalid operation: Specified types or functions (one per INFO message) not supported on Redshift tables.;
Run Code Online (Sandbox Code Playgroud)
这是什么意思以及如何解决?
这是在基于计算节点的查询中引用领导节点信息时出现的 Redshift 错误 - 是的,它有点神秘。当您引用领导者表并尝试将它们与计算节点表连接时,通常会发生这种情况。但这不是你正在做的。在你的情况下,我相信“now()”是一个领导者函数并且已被弃用 - 你需要使用“getdate()”代替。
| 归档时间: |
|
| 查看次数: |
3413 次 |
| 最近记录: |