fix SQL doc comment (#7981)

This commit is contained in:
Vadim Ogievetsky 2019-06-27 15:05:45 -07:00 committed by Jihoon Son
parent c4aaf26797
commit ad45ef12ed
1 changed files with 13 additions and 13 deletions

View File

@ -22,12 +22,12 @@ title: "SQL"
~ under the License. ~ under the License.
--> -->
<!-- <!--
The format of the tables that describe the functions and operators The format of the tables that describe the functions and operators
should not be changed without updating the script create-sql-function-doc should not be changed without updating the script create-sql-function-doc
in web-console/script/create-sql-function-doc, because the script detects in web-console/script/create-sql-function-doc, because the script detects
patterns in this markdown file and parse it to TypeScript file for web console patterns in this markdown file and parse it to TypeScript file for web console
--> -->
# SQL # SQL
@ -676,22 +676,22 @@ SERVER_SEGMENTS is used to join servers with segments table
|server|STRING|Server name in format host:port (Primary key of [servers table](#SERVERS-table))| |server|STRING|Server name in format host:port (Primary key of [servers table](#SERVERS-table))|
|segment_id|STRING|Segment identifier (Primary key of [segments table](#SEGMENTS-table))| |segment_id|STRING|Segment identifier (Primary key of [segments table](#SEGMENTS-table))|
JOIN between "servers" and "segments" can be used to query the number of segments for a specific datasource, JOIN between "servers" and "segments" can be used to query the number of segments for a specific datasource,
grouped by server, example query: grouped by server, example query:
```sql ```sql
SELECT count(segments.segment_id) as num_segments from sys.segments as segments SELECT count(segments.segment_id) as num_segments from sys.segments as segments
INNER JOIN sys.server_segments as server_segments INNER JOIN sys.server_segments as server_segments
ON segments.segment_id = server_segments.segment_id ON segments.segment_id = server_segments.segment_id
INNER JOIN sys.servers as servers INNER JOIN sys.servers as servers
ON servers.server = server_segments.server ON servers.server = server_segments.server
WHERE segments.datasource = 'wikipedia' WHERE segments.datasource = 'wikipedia'
GROUP BY servers.server; GROUP BY servers.server;
``` ```
### TASKS table ### TASKS table
The tasks table provides information about active and recently-completed indexing tasks. For more information The tasks table provides information about active and recently-completed indexing tasks. For more information
check out [ingestion tasks](#../ingestion/tasks.html) check out [ingestion tasks](#../ingestion/tasks.html)
|Column|Type|Notes| |Column|Type|Notes|