hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <>
Subject [jira] [Commented] (HIVE-4669) Make username available to semantic analyzer hooks
Date Wed, 02 Oct 2013 19:35:45 GMT


Brock Noland commented on HIVE-4669:

I believe the test failure is unrelated. This is a trivial patch which doesn't impact any
users of Hive so I am fine with committing it. However, I did notice that there is something
funky with the patch. The first constructor which doesn't take a username argument sets the
instance variable userName to what I presume is itself:

   public Driver(HiveConf conf) {
     this.conf = conf;
+    this.userName = userName;
+  }

Since we are fixing that, this constructor can be redirected through the first constructor.
I understand it's nit-picky since it's a good practice and we are going to be modifying the
patch again anyways, let's do that.
+  public Driver(HiveConf conf, String userName) {
+    this.conf = conf;
+    this.userName = userName;

> Make username available to semantic analyzer hooks
> --------------------------------------------------
>                 Key: HIVE-4669
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0, 0.11.0
>            Reporter: Shreepadma Venugopalan
>            Assignee: Shreepadma Venugopalan
>         Attachments: HIVE-4669.1.patch, HIVE-4669.2.patch
> Make username available to the semantic analyzer hooks.

This message was sent by Atlassian JIRA

View raw message