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

2013-09-18 Thread Artem Ervits
Thank you, will do.


Artem Ervits
Data Analyst
New York Presbyterian Hospital

From: Justin Workman [mailto:justinjwork...@gmail.com]
Sent: Wednesday, September 18, 2013 11:01 AM
To: 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 
mailto:are9...@nyp.org>> wrote:

Anyone?

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

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

2013-09-18 Thread Justin Workman
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  wrote:

  Anyone?



*From:* Artem Ervits [mailto: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.


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

2013-09-18 Thread Artem Ervits
Anyone?

From: Artem Ervits [mailto: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<mailto: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.

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

2013-09-16 Thread Artem Ervits
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<mailto: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.