You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2013/06/04 01:36:20 UTC
[jira] [Commented] (HIVE-4566) NullPointerException if typeinfo and
nativesql commands are executed at beeline before a DB connection is
established
[ https://issues.apache.org/jira/browse/HIVE-4566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673785#comment-13673785 ]
Ashutosh Chauhan commented on HIVE-4566:
----------------------------------------
As in original description, I like the idea of printing "No current connection" in such scenarios but I don't think current patch prints it. Can you modify your test to make sure that indeed gets printed?
> NullPointerException if typeinfo and nativesql commands are executed at beeline before a DB connection is established
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: HIVE-4566
> URL: https://issues.apache.org/jira/browse/HIVE-4566
> Project: Hive
> Issue Type: Bug
> Components: CLI
> Affects Versions: 0.11.0
> Reporter: Xuefu Zhang
> Assignee: Xuefu Zhang
> Attachments: HIVE-4566.patch
>
>
> Before a DB connection is established, executing a command such as typeinfo and nativesql results an NPE shown at the console:
> beeline> !typeinfo
> java.lang.NullPointerException
> beeline> !nativesql
> java.lang.NullPointerException
> Instead, a message, such as "No current connection" should be given, as in case of some other commands, such as dropall.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira