Browse Source

Merge pull request #11616 from richardkchapman/roxie-user

HPCC-20282 Std.System.Job.User() fails on Roxie

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 6 years ago
parent
commit
51c5959820
1 changed files with 8 additions and 1 deletions
  1. 8 1
      roxie/ccd/ccdcontext.cpp

+ 8 - 1
roxie/ccd/ccdcontext.cpp

@@ -3784,7 +3784,14 @@ public:
         }
         return strdup(factory->queryQueryName());
     }
-    virtual char *getJobOwner() { throwUnexpected(); }
+    virtual char *getJobOwner()
+    {
+        if (workUnit)
+        {
+            return strdup(workUnit->queryUser());
+        }
+        return strdup("");
+    }
     virtual char *getPlatform()
     {
         if (clusterNames.length())