Попытка изменить тип cloumn в улье, запуск DDL, но выдает ошибку "
Попытка изменить тип cloumn в улье, запуск DDL, но выдает ошибку
Запуск следующего DDL:
ALTER TABLE INV.HTL_RATE_PLAN
CHANGE RATE_PLAN_RSTRCT_STRT_DT RATE_PLAN_RSTRCT_STRT_DT DATE
COMMENT 'Advance booking alternate days restriction rule applied to a rate category. This rule dictates the minimum number of days before arrival the guest must book for the rate category to be available.'
AFTER PRICE_GRID_CD;
Ошибка:
Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Reordering columns is not supported for table INV_TRF.HTL_RATE_PLAN. SerDe may be incompatible.
Помогите? Что я делаю неправильно. Пожалуйста, Предложите.
1 ответ
Чтобы изменить тип столбца, вам нужно только для этого:
ALTER TABLE INV.HTL_RATE_PLAN
CHANGE RATE_PLAN_RSTRCT_STRT_DT RATE_PLAN_RSTRCT_STRT_DT DATE
COMMENT 'Advance booking alternate days restriction rule applied to a rate category. This rule dictates the minimum number of days before arrival the guest must book for the rate category to be available.';
Че убрал часть AFTER PRICE_GRID_CD
измените положение столбца, чтобы оно было после указанного столбца, но ваш тип хранения, который обрабатывается serde, не поддерживает эту операцию.