Skip to content

Commit

Permalink
updated to sql documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tijoparacka committed Jun 29, 2015
1 parent a27949c commit 4042fcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/sql-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ the Data Sources API. The following options are supported:
{% highlight scala %}
val jdbcDF = sqlContext.read.format("jdbc").options(
Map("url" -> "jdbc:postgresql:dbserver",
"dbtable" -> "schema.tablename")).load
"dbtable" -> "schema.tablename")).load()
{% endhighlight %}

</div>
Expand All @@ -1797,7 +1797,6 @@ DataFrame jdbcDF = sqlContext.read().format("jdbc"). options(options).load();
<div data-lang="python" markdown="1">

{% highlight python %}

df = sqlContext.read.format('jdbc').options(url = 'jdbc:postgresql:dbserver', dbtable='schema.tablename').load()
{% endhighlight %}

Expand All @@ -1806,8 +1805,7 @@ df = sqlContext.read.format('jdbc').options(url = 'jdbc:postgresql:dbserver', db
<div data-lang="r" markdown="1">

{% highlight r %}

df <- read.df(sqlContext, source = "jdbc",url="jdbc:postgresql:dbserver", dbtable="schema.tablename")
df <- loadDF(sqlContext, source="jdbc", url="jdbc:postgresql:dbserver", dbtable="schema.tablename")
{% endhighlight %}

</div>
Expand Down

0 comments on commit 4042fcf

Please sign in to comment.