Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4566

NullPointerException if typeinfo and nativesql commands are executed at beeline before a DB connection is established

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • CLI
    • None

    Description

      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.

      Attachments

        1. HIVE-4566.patch
          4 kB
          Xuefu Zhang
        2. HIVE-4566.patch.1
          4 kB
          Xuefu Zhang

        Activity

          People

            xuefuz Xuefu Zhang
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: