Bur*_*rak 7 amazon-athena aws-glue
我从 AWS Athena 收到此错误:
HIVE_PARTITION_SCHEMA_MISMATCH: There is a mismatch between the table and partition schemas. The types are incompatible and cannot be coerced. The column 'id' in table 'db.app_events' is declared as type 'string', but partition 'xxxxx' declared column 'data.entity_price' as type 'double'.
Run Code Online (Sandbox Code Playgroud)
与这些字段没有联系,但它给出了一个错误。这是一个错误还是我错过了什么?
除非您从表继承架构,否则架构保持在分区级别。请参阅:https : //docs.aws.amazon.com/athena/latest/ug/updates-and-partitions.html
这里也讨论过: How to solve this HIVE_PARTITION_SCHEMA_MISMATCH?