Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address comments
  • Loading branch information
huaxingao committed May 5, 2020
commit 5726a1f080f7bffc9a863d79f7ddb8b674716b4e
2 changes: 1 addition & 1 deletion docs/sql-ref-functions-builtin.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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