> 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