hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artem Ervits <are9...@nyp.org>
Subject Re: FAILED: ParseException line 12:0 mismatched input 'Comment' expecting Identifier near ',' in column specification
Date Thu, 19 Sep 2013 00:57:19 GMT
Thank you, will do.


Artem Ervits
Data Analyst
New York Presbyterian Hospital

From: Justin Workman [mailto:justinjworkman@gmail.com]
Sent: Wednesday, September 18, 2013 11:01 AM
To: user@hive.apache.org <user@hive.apache.org>
Subject: Re: FAILED: ParseException line 12:0 mismatched input 'Comment' expecting Identifier
near ',' in column specification

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 <are9004@nyp.org<mailto:are9004@nyp.org>>
wrote:

Anyone?

From: Artem Ervits [mailto:are9004@nyp.org]
Sent: Monday, September 16, 2013 5:07 PM
To: user@hive.apache.org<mailto: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
Artem@nyp.org<mailto:Artem@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.

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.
Mime
View raw message