HIVE_PARTITION_SCHEMA_MISMATCH - PullRequest
       72

HIVE_PARTITION_SCHEMA_MISMATCH

0 голосов
/ 26 сентября 2019

Я получаю эту ошибку от 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'.

Нет связи с этими полями, но выдает ошибку.Это ошибка или я что-то упустил?

1 Ответ

0 голосов
/ 27 сентября 2019

Схема хранится на уровне раздела, если вы не наследуете схему из таблицы.См. Также: https://docs.aws.amazon.com/athena/latest/ug/updates-and-partitions.html

также обсуждается здесь: Как решить эту проблему HIVE_PARTITION_SCHEMA_MISMATCH?

...