Hive
  1. Hive
  2. HIVE-2172

Hive CLI should let you specify database on the command line

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None

      Description

      I'd like to be able to do the following:

      % hive --dbname=mydb
      hive> ...
      

      instead of having to do:

      % hive
      hive> use mydb;
      hive> ...
      

        Issue Links

          Activity

          Hide
          Phabricator added a comment -

          navis requested code review of "HIVE-2172 [jira] Hive CLI should let you specify database on the command line".
          Reviewers: JIRA

          DPAL-626 Hive CLI should let you specify database on the command line

          I'd like to be able to do the following: <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>% hive --dbname=mydb hive> ... </pre> </div></div>

          instead of having to do: <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>% hive hive> use mydb; hive> ... </pre> </div></div>

          TEST PLAN
          EMPTY

          REVISION DETAIL
          https://reviews.facebook.net/D1269

          AFFECTED FILES
          cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
          cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java
          cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java

          MANAGE HERALD DIFFERENTIAL RULES
          https://reviews.facebook.net/herald/view/differential/

          WHY DID I GET THIS EMAIL?
          https://reviews.facebook.net/herald/transcript/2655/

          Tip: use the X-Herald-Rules header to filter Herald messages in your client.

          Show
          Phabricator added a comment - navis requested code review of " HIVE-2172 [jira] Hive CLI should let you specify database on the command line". Reviewers: JIRA DPAL-626 Hive CLI should let you specify database on the command line I'd like to be able to do the following: <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>% hive --dbname=mydb hive> ... </pre> </div></div> instead of having to do: <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>% hive hive> use mydb; hive> ... </pre> </div></div> TEST PLAN EMPTY REVISION DETAIL https://reviews.facebook.net/D1269 AFFECTED FILES cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java MANAGE HERALD DIFFERENTIAL RULES https://reviews.facebook.net/herald/view/differential/ WHY DID I GET THIS EMAIL? https://reviews.facebook.net/herald/transcript/2655/ Tip: use the X-Herald-Rules header to filter Herald messages in your client.

            People

            • Assignee:
              Jakob Homan
              Reporter:
              Carl Steinbach
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development