Try putting back ticks around comment since its a reserved word.

Sent from my iPhone

On Sep 18, 2013, at 8:54 AM, Artem Ervits <are9...@nyp.org> wrote:

  Anyone?



*From:* Artem Ervits [mailto:are9...@nyp.org <are9...@nyp.org>]
*Sent:* Monday, September 16, 2013 5:07 PM
*To:* user@hive.apache.org
*Subject:* FAILED: ParseException line 12:0 mismatched input 'Comment'
expecting Identifier near ',' in column specification



Hello all, I’m trying to create a table with a column called “Comment” and
I get the following exception:



FAILED: ParseException line 12:0 mismatched input 'Comment' expecting
Identifier near ',' in column specification



I am running hive-common-0.10.0.23.jar version of Hive. Is that a bug or a
feature? I understand that you can insert comments in DDL statements but
what if a column name happens to be a reserved word, as in this case?



Thanks



Artem Ervits

ar...@nyp.org

New York Presbyterian Hospital




This electronic message is intended to be for the use only of the named
recipient, and may contain information that is confidential or privileged.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or use of the contents of this message is
strictly prohibited. If you have received this message in error or are not
the named recipient, please notify us immediately by contacting the sender
at the electronic mail address noted above, and delete and destroy all
copies of this message. Thank you.
 ------------------------------


Confidential Information subject to NYP's (and its affiliates') information
management and security policies (http://infonet.nyp.org/QA/HospitalManual).

This electronic message is intended to be for the use only of the named
recipient, and may contain information that is confidential or privileged.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or use of the contents of this message is
strictly prohibited. If you have received this message in error or are not
the named recipient, please notify us immediately by contacting the sender
at the electronic mail address noted above, and delete and destroy all
copies of this message. Thank you.

Reply via email to