[jira] [Updated] (HIVE-15107) HiveLexer can throw NPE in allowQuoteId

2016-11-01 Thread Ratandeep Ratti (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ratandeep Ratti updated HIVE-15107:
---
Status: Patch Available  (was: Open)

> HiveLexer can throw NPE in allowQuoteId
> ---
>
> Key: HIVE-15107
> URL: https://issues.apache.org/jira/browse/HIVE-15107
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 1.1.1
>Reporter: Ratandeep Ratti
>Assignee: Ratandeep Ratti
> Attachments: HIVE-15107.patch
>
>
> In HiveLexer.allowQuoteId we reference the HiveConf field, which may be null. 
>  The configuration field is set in ParseDriver only if the hive.ql.Context 
> variable is not null. ParseDriver exposes API such as 
> org.apache.hadoop.hive.ql.parse.ParseDriver#parse(java.lang.String) which can 
> result in the hive.ql.Context field to be null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HIVE-15107) HiveLexer can throw NPE in allowQuoteId

2016-11-01 Thread Ratandeep Ratti (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ratandeep Ratti updated HIVE-15107:
---
Attachment: HIVE-15107.patch

> HiveLexer can throw NPE in allowQuoteId
> ---
>
> Key: HIVE-15107
> URL: https://issues.apache.org/jira/browse/HIVE-15107
> Project: Hive
>  Issue Type: Bug
>Affects Versions: 1.1.1
>Reporter: Ratandeep Ratti
>Assignee: Ratandeep Ratti
> Attachments: HIVE-15107.patch
>
>
> In HiveLexer.allowQuoteId we reference the HiveConf field, which may be null. 
>  The configuration field is set in ParseDriver only if the hive.ql.Context 
> variable is not null. ParseDriver exposes API such as 
> org.apache.hadoop.hive.ql.parse.ParseDriver#parse(java.lang.String) which can 
> result in the hive.ql.Context field to be null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)