How to add a field to Views table output with hook_views_pre_render?
To take a different approach: you could add the field through the UI as normal, and use hook_views_query_alter() to change the join type:

function MYMODULE views_query_alter(&amp;$view, &amp;$query) {
  if ($view-&gt;name == 'my_view' &amp;&amp; $view-&gt;current_display == 'foo') {
    $query-&gt;table_queue['field_data_field_myfield']['join']-&gt;type = 'RIGHT';
  }
}


That should get you the same effect with a bit less effort.