You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Artem Ervits <ar...@nyp.org> on 2013/09/16 23:06:59 UTC

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<ma...@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.

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

Posted by Artem Ervits <ar...@nyp.org>.
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 <us...@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 <ar...@nyp.org>> wrote:

Anyone?

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

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

Posted by Justin Workman <ju...@gmail.com>.
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 <ar...@nyp.org> wrote:

  Anyone?



*From:* Artem Ervits [mailto:are9004@nyp.org <ar...@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

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.

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

Posted by Artem Ervits <ar...@nyp.org>.
Anyone?

From: Artem Ervits [mailto:are9004@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
Artem@nyp.org<ma...@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.