{"action":"opened","issue":{"url":"https://api.github.com/repos/TresAmigosSD/SMV/issues/122","labels_url":"https://api.github.com/repos/TresAmigosSD/SMV/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/TresAmigosSD/SMV/issues/122/comments","events_url":"https://api.github.com/repos/TresAmigosSD/SMV/issues/122/events","html_url":"https://github.com/TresAmigosSD/SMV/issues/122","id":64787170,"number":122,"title":"Give SmvModule run method access to the app","user":{"login":"ninjapapa","id":8062822,"avatar_url":"https://avatars.githubusercontent.com/u/8062822?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjapapa","html_url":"https://github.com/ninjapapa","followers_url":"https://api.github.com/users/ninjapapa/followers","following_url":"https://api.github.com/users/ninjapapa/following{/other_user}","gists_url":"https://api.github.com/users/ninjapapa/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapapa/subscriptions","organizations_url":"https://api.github.com/users/ninjapapa/orgs","repos_url":"https://api.github.com/users/ninjapapa/repos","events_url":"https://api.github.com/users/ninjapapa/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapapa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-27T15:40:30Z","updated_at":"2015-03-27T15:40:30Z","closed_at":null,"body":"Although we didn't started that way, the SmvApp/SmvModule structure effectively provided a OO style wrapper to SqlContext/SchemaRDD with additional functions as we intended to do.\r\n\r\nTo complete that wrapper, we need to give SmvModule run method an access to the SmvApp which gonna to run it, just like Srdd have an access to sqlContext. \r\n\r\nThe real need is that SmvApp may have sqlContext level resource which the SmvModule's may want to utilize at run time. In contrary to Srdd, a SmvModule is an Object, which only attach to an App at run time."}}