blob: 06ea5ea872cd672f48f61c11c082a5d183218198 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: (Deprecated) Create an external table</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head><body>
<table width="100%" summary="page for createExternalTable {SparkR}"><tr><td>createExternalTable {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table>
<h2>(Deprecated) Create an external table</h2>
<h3>Description</h3>
<p>Creates an external table based on the dataset in a data source,
Returns a SparkDataFrame associated with the external table.
</p>
<h3>Usage</h3>
<pre>
## Default S3 method:
createExternalTable(tableName, path = NULL,
source = NULL, schema = NULL, ...)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>tableName</code></td>
<td>
<p>a name of the table.</p>
</td></tr>
<tr valign="top"><td><code>path</code></td>
<td>
<p>the path of files to load.</p>
</td></tr>
<tr valign="top"><td><code>source</code></td>
<td>
<p>the name of external data source.</p>
</td></tr>
<tr valign="top"><td><code>schema</code></td>
<td>
<p>the schema of the data required for some data sources.</p>
</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
<p>additional argument(s) passed to the method.</p>
</td></tr>
</table>
<h3>Details</h3>
<p>The data source is specified by the <code>source</code> and a set of options(...).
If <code>source</code> is not specified, the default data source configured by
&quot;spark.sql.sources.default&quot; will be used.
</p>
<h3>Value</h3>
<p>A SparkDataFrame.
</p>
<h3>Note</h3>
<p>createExternalTable since 1.4.0
</p>
<h3>See Also</h3>
<p><a href="createTable.html">createTable</a>
</p>
<h3>Examples</h3>
<pre><code class="r">## Not run:
##D sparkR.session()
##D df &lt;- createExternalTable(&quot;myjson&quot;, path=&quot;path/to/json&quot;, source=&quot;json&quot;, schema)
## End(Not run)
</code></pre>
<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.4.0 <a href="00Index.html">Index</a>]</div>
</body></html>