You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Yadid Ayzenberg <ya...@media.mit.edu> on 2014/06/01 04:39:26 UTC

Re: possible typos in spark 1.0 documentation

Yep, I just issued a pull request.

Yadid


On 5/31/14, 1:25 PM, Patrick Wendell wrote:
>> 1. ctx is an instance of JavaSQLContext but the textFile method is called as
>> a member of ctx.
>> According to the API JavaSQLContext does not have such a member, so im
>> guessing this should be sc instead.
> Yeah, I think you are correct.
>
>> 2. In that same code example the object sqlCtx is referenced, but it is
>> never instantiated in the code.
>> should this be ctx?
> Also correct.
>
> I think it would be good to be consistent and always have "ctx" refer
> to a JavaSparkContext and have "sqlCtx" refer to a JavaSQLContext.
>
> Any interest in creating a pull request for this? We'd be happy to
> accept the change.
>
> - Patrick