"mismatched input 'Date' expecting Identifier near '(' in column specification"



ALTER TABLE test1 ADD PARTITION (Date='2013-11-20');

导致以下错误:

FAILED: Parse Error: line 1:84 mismatched input 'Date' expecting Identifier near '(' in column specification

问题出在哪里?

Date似乎是HiveQL中的一个保留词,如这里所解释的。

我将列名更改为d,它运行良好(这很不幸,因为名称Dated更有意义)。