Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxingao committed May 5, 2020
1 parent 0575f06 commit 5726a1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
2 changes: 1 addition & 1 deletion docs/sql-ref-functions-builtin.md
Expand Up @@ -70,7 +70,7 @@ license: |
### JSON Functions
{% include_relative generated-json-funcs-table.html %}
#### Examples
{% include_relative generated-agg-funcs-examples.html %}
{% include_relative generated-json-funcs-examples.html %}
{% break %}
{% endif %}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-aux-show-partitions.md
Expand Up @@ -42,7 +42,7 @@ SHOW PARTITIONS table_identifier [ partition_spec ]
* **partition_spec**

An optional parameter that specifies a comma separated list of key and value pairs
for partitions. When specified, the partitions that match the partition spec are returned.
for partitions. When specified, the partitions that match the partition specification are returned.

**Syntax:** `PARTITION ( partition_col_name = partition_col_val [ , ... ] )`

Expand Down
31 changes: 6 additions & 25 deletions docs/sql-ref-syntax-qry-select-tvf.md
Expand Up @@ -43,31 +43,12 @@ function_name ( expression [ , ... ] ) [ table_alias ]

### Supported Table-valued Functions

<table class="table">
<thead>
<tr><th style="width:25%">Function</th><th>Argument Type(s)</th><th>Description</th></tr>
</thead>
<tr>
<td><b> range </b>( <i>end</i> )</td>
<td> Long </td>
<td>Creates a table with a single <code>LongType</code> column named <code>id</code>, containing rows in a range from 0 to <code>end</code> (exclusive) with step value 1.</td>
</tr>
<tr>
<td><b> range </b>( <i> start, end</i> )</td>
<td> Long, Long </td>
<td width="60%">Creates a table with a single <code>LongType</code> column named <code>id</code>, containing rows in a range from <code>start</code> to <code>end</code> (exclusive) with step value 1.</td>
</tr>
<tr>
<td><b> range </b>( <i> start, end, step</i> )</td>
<td> Long, Long, Long </td>
<td width="60%">Creates a table with a single <code>LongType</code> column named <code>id</code>, containing rows in a range from <code>start</code> to <code>end</code> (exclusive) with <code>step</code> value.</td>
</tr>
<tr>
<td><b> range </b>( <i> start, end, step, numPartitions</i> )</td>
<td> Long, Long, Long, Int </td>
<td width="60%">Creates a table with a single <code>LongType</code> column named <code>id</code>, containing rows in a range from <code>start</code> to <code>end</code> (exclusive) with <code>step</code> value, with partition number <code>numPartitions</code> specified. </td>
</tr>
</table>
|Function|Argument Type(s)|Description|
|--------|----------------|-----------|
|**range** ( *end* )|Long|Creates a table with a single *LongType* column named *id*, <br/> containing rows in a range from 0 to *end* (exclusive) with step value 1.|
|**range** ( *start, end* )|Long, Long|Creates a table with a single *LongType* column named *id*, <br/> containing rows in a range from *start* to *end* (exclusive) with step value 1.|
|**range** ( *start, end, step* )|Long, Long, Long|Creates a table with a single *LongType* column named *id*, <br/> containing rows in a range from *start* to *end* (exclusive) with *step* value.|
|**range** ( *start, end, step, numPartitions* )|Long, Long, Long, Int|Creates a table with a single *LongType* column named *id*, <br/> containing rows in a range from *start* to *end* (exclusive) with *step* value, with partition number *numPartitions* specified.|

### Examples

Expand Down

0 comments on commit 5726a1f

Please sign in to comment.