Hive
  1. Hive
  2. HIVE-3066

Add the option -database DATABASE in hive cli to specify a default database to use for the cli session.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: CLI
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    1. HIVE-3066.1.patch.txt
      3 kB
      herman tai
    2. HIVE-3066.2.patch.txt
      3 kB
      herman tai

      Issue Links

        Activity

        Hide
        Ashutosh Chauhan added a comment -

        This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.

        Show
        Ashutosh Chauhan added a comment - This issue is fixed and released as part of 0.10.0 release. If you find an issue which seems to be related to this one, please create a new jira and link this one with new jira.
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-hadoop2 #54 (See https://builds.apache.org/job/Hive-trunk-hadoop2/54/)
        HIVE-3066
        Add the option -database DATABASE in hive cli to specify a default database to use for the cli session. (herman via namit) (Revision 1345293)

        Result = ABORTED
        namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1345293
        Files :

        • /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
        • /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java
        • /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-hadoop2 #54 (See https://builds.apache.org/job/Hive-trunk-hadoop2/54/ ) HIVE-3066 Add the option -database DATABASE in hive cli to specify a default database to use for the cli session. (herman via namit) (Revision 1345293) Result = ABORTED namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1345293 Files : /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java
        Hide
        herman tai added a comment -

        When Namit commits patch 1 (HIVE-3066.1.patch.txt), he actually uses the patch in the phabricator, so the trunk has the correct files. For reference purpose, HIVE-3066.2.patch.txt is the correct patch.

        Show
        herman tai added a comment - When Namit commits patch 1 ( HIVE-3066 .1.patch.txt), he actually uses the patch in the phabricator, so the trunk has the correct files. For reference purpose, HIVE-3066 .2.patch.txt is the correct patch.
        Hide
        Namit Jain added a comment -

        Herman, can you file a new jira for the follow-up and submit a new patch, which is based of latest trunk ?

        Show
        Namit Jain added a comment - Herman, can you file a new jira for the follow-up and submit a new patch, which is based of latest trunk ?
        Hide
        herman tai added a comment -

        The previous patch was a reverse patch, this is the correct patch.

        Show
        herman tai added a comment - The previous patch was a reverse patch, this is the correct patch.
        Hide
        Edward Capriolo added a comment -

        I am confused the patch has - not +. It looks like it is removing the feature.

        Show
        Edward Capriolo added a comment - I am confused the patch has - not +. It looks like it is removing the feature.
        Hide
        Hudson added a comment -

        Integrated in Hive-trunk-h0.21 #1462 (See https://builds.apache.org/job/Hive-trunk-h0.21/1462/)
        HIVE-3066
        Add the option -database DATABASE in hive cli to specify a default database to use for the cli session. (herman via namit) (Revision 1345293)

        Result = FAILURE
        namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1345293
        Files :

        • /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
        • /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java
        • /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java
        Show
        Hudson added a comment - Integrated in Hive-trunk-h0.21 #1462 (See https://builds.apache.org/job/Hive-trunk-h0.21/1462/ ) HIVE-3066 Add the option -database DATABASE in hive cli to specify a default database to use for the cli session. (herman via namit) (Revision 1345293) Result = FAILURE namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1345293 Files : /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/CliSessionState.java /hive/trunk/cli/src/java/org/apache/hadoop/hive/cli/OptionsProcessor.java
        Hide
        Namit Jain added a comment -

        Committed. Thanks Herman

        Show
        Namit Jain added a comment - Committed. Thanks Herman
        Hide
        Namit Jain added a comment -

        +1

        Show
        Namit Jain added a comment - +1
        Hide
        herman tai added a comment -
        Show
        herman tai added a comment - Link to the diff: https://reviews.facebook.net/D3453

          People

          • Assignee:
            herman tai
            Reporter:
            herman tai
          • Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development