mysql - Redshift Alter table 命令返回“目标表和源表属性不匹配”。
问题描述
我有一个气流管道,它从现有表创建一个临时表,从 csv 加载数据,然后执行以下更改命令。
ALTER TABLE "schema"."table"
APPEND FROM "schema"."table_staging"
FILLTARGET
我观察到偶尔会重新调整以下错误,我只是删除了原始表并重新创建它,它会正常工作几天,然后我会再次遇到这个问题。
DETAIL:
-----------------------------------------------
error: Target table and source table attributes don't match.
code: 8001
context: The source table and the target table have different sort keys. Both tables must use the same sort keys and sort style.
query: 0
location: tbl_perm.cpp:2823
process: padbmaster [pid=19083]
我无法弄清楚为什么它突然开始破裂。
解决方案
推荐阅读
- android - 从显式外部应用程序获取所有活动的名称
- postgresql - 如何在触发函数中选择多个变量?
- laravel - 我想更改 Laravel forge 供应商文件夹
- python - 在 INSTALLED_APPS 中添加“审核”时出错
- javascript - 如何在用户退出我的应用程序后更新用户,然后重新登录
- google-apps-script - Hmac256 Signature invalid error Google App Script
- php - 在生产中更新 .json 文件
- azure - AKS LoadBalancer 仅将流量发送到一个 pod
- python - Telnet 从跳转启动服务器(linux)切换
- parse-platform - 无法在 javascript 中初始化 Parse