Gino Bustelo created TOREE-285:
----------------------------------

             Summary: DOCS: Amend documentation on implicit sqlContext term 
limitations due to use of 'def'
                 Key: TOREE-285
                 URL: https://issues.apache.org/jira/browse/TOREE-285
             Project: TOREE
          Issue Type: Task
            Reporter: Gino Bustelo
            Priority: Minor
             Fix For: 0.1.0


Due to fixes merged for https://github.com/apache/incubator-toree/pull/15, we 
made 'sc' and 'sqlContext' in the ScalaInterpreter be "def"s. This allows them 
to be changed at runtime and code will pick the current one.

The main limitation of this approach is that now the user will not be able to 
do 

```
import sqlContext.implicits._
```

That is because import statements cannot contain variable terms. The workaround 
to document is, that if the user wants to use the managed `sqlContext` to 
import implicits, they need to do

```
val sqlc = sqlContext
import sqlc.implicits._
```



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to