[
https://issues.apache.org/jira/browse/SPARK-20138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946818#comment-15946818
]
Sean Owen commented on SPARK-20138:
-----------------------------------
I think the Spark imports were purposely excluded for brevity. However there
may be some cases where the imports aren't obvious because they aren't from
Spark. I think that could be valuable to add in some cases.
> Add imports to snippets in Spark SQL, DataFrames and Datasets Guide doc
> -----------------------------------------------------------------------
>
> Key: SPARK-20138
> URL: https://issues.apache.org/jira/browse/SPARK-20138
> Project: Spark
> Issue Type: Improvement
> Components: Documentation, SQL
> Affects Versions: 2.2.0
> Reporter: Jacek Laskowski
> Priority: Trivial
>
> Given [the question on
> StackOverflow|http://stackoverflow.com/q/43089100/1305344] it seems it'd be
> helpful to add imports to the snippets to make _some_ people's lives easier.
> {quote}
> When I try to load data using the second method in the link, I get the
> following error.
> scala> val connectionProperties = new Properties()
> <console>:44: error: not found: type Properties
> val connectionProperties = new Properties()
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]