Redshift 加载数据问题:Redshift 表不支持指定的类型或函数(每个 INFO 消息一个)
Redshift loading data issue: Specified types or functions (one per INFO message) not supported on Redshift tables
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)
我正在尝试使用上面的查询将我的 pagila 数据加载到 Redshift 中,但我遇到了这个错误。找遍了还是找不到办法。
[Amazon](500310) Invalid operation: Specified types or functions (one per INFO message) not supported on Redshift tables.;
这是什么意思,如何解决?
这是在基于计算节点的查询中引用领导节点信息的 Redshift 错误 - 是的,它有点神秘。当您引用领导表并尝试将它们与计算节点表连接时,通常会发生这种情况。但这不是你在做什么。在您的情况下,我认为“now()”是一个领导者功能并已弃用 - 您需要改用“getdate()”。
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)
我正在尝试使用上面的查询将我的 pagila 数据加载到 Redshift 中,但我遇到了这个错误。找遍了还是找不到办法。
[Amazon](500310) Invalid operation: Specified types or functions (one per INFO message) not supported on Redshift tables.;
这是什么意思,如何解决?
这是在基于计算节点的查询中引用领导节点信息的 Redshift 错误 - 是的,它有点神秘。当您引用领导表并尝试将它们与计算节点表连接时,通常会发生这种情况。但这不是你在做什么。在您的情况下,我认为“now()”是一个领导者功能并已弃用 - 您需要改用“getdate()”。