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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: CLI
    • Labels:
      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.1
          4 kB
          Xuefu Zhang
        2. HIVE-4566.patch
          4 kB
          Xuefu Zhang

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: