[SPARK-29788][DOC] Fix the typos in the SQL reference documents

### What changes were proposed in this pull request?

Fixing the typos in SQL reference document.

### Why are the changes needed?

For user readability

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
Tested manually.

Closes #26424 from jobitmathew/typo.

Authored-by: Jobit Mathew <jobit.mathew@huawei.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
This commit is contained in:
Jobit Mathew 2019-11-09 08:04:14 -06:00 committed by Sean Owen
parent 1e2d76e80a
commit 1e408d6fe6
12 changed files with 17 additions and 17 deletions

View file

@ -34,7 +34,7 @@ interchangeable.
<dl>
<dt><code><em>db_name</em></code></dt>
<dd>
Specifies a name of an existing database or an existing schema in the syetem. If the name does not exist, an
Specifies a name of an existing database or an existing schema in the system. If the name does not exist, an
exception is thrown.
</dd>
</dl>

View file

@ -62,7 +62,7 @@ DESCRIBE QUERY select age, sum(age) FROM person GROUP BY age;
|sum(age)|bigint |null |
+--------+---------+----------+
-- Returns column metadata information for common table experession (`CTE`).
-- Returns column metadata information for common table expression (`CTE`).
DESCRIBE QUERY WITH all_names_cte
AS (SELECT name from person) SELECT * FROM all_names_cte;
+--------+---------+-------+

View file

@ -48,7 +48,7 @@ to return the metadata pertaining to a partition or column respectively.
<dt><code><em>partition_spec</em></code></dt>
<dd>
An optional parameter that specifies a comma separated list of key and value pairs
for paritions. When specified, additional partition metadata is returned.<br><br>
for partitions. When specified, additional partition metadata is returned.<br><br>
<b>Syntax:</b>
<code>
PARTITION (partition_col_name = partition_col_val [ , ... ])
@ -56,7 +56,7 @@ to return the metadata pertaining to a partition or column respectively.
</dd>
<dt><code><em>col_name</em></code></dt>
<dd>
An optional paramter that specifies the column name that needs to be described.
An optional parameter that specifies the column name that needs to be described.
The supplied column name may be optionally qualified. Parameters `partition_spec`
and `col_name` are mutually exclusive and can not be specified together. Currently
nested columns are not allowed to be specified.<br><br>

View file

@ -22,7 +22,7 @@ license: |
### Description
Lists the databases that match an optionally supplied string pattern. If no
pattern is supplied then the command lists all the databases in the system.
Please note that the usage of `SCHEMAS` and `DATABASES` are interchangable
Please note that the usage of `SCHEMAS` and `DATABASES` are interchangeable
and mean the same thing.
### Syntax

View file

@ -21,7 +21,7 @@ license: |
### Description
This statement returns the value of a table property given an optional value for
a property key. If no key is specified then all the proerties are returned.
a property key. If no key is specified then all the properties are returned.
### Syntax
{% highlight sql %}
@ -56,11 +56,11 @@ SHOW TBLPROPERTIES table_identifier
</dl>
**Note**
- Property value returned by this statement exludes some properties
- Property value returned by this statement excludes some properties
that are internal to spark and hive. The excluded properties are :
- All the properties that start with prefix `spark.sql`
- Propery keys such as: `EXTERNAL`, `comment`
- All the properties generated intenally by hive to store statistics. Some of these
- Property keys such as: `EXTERNAL`, `comment`
- All the properties generated internally by hive to store statistics. Some of these
properties are: `numFiles`, `numPartitions`, `numRows`.
### Examples

View file

@ -21,13 +21,13 @@ license: |
### Description
You can alter metadata associated with a database by setting `DBPROPERTIES`. The specified property
values override any existing value with the same property name. Please note that the usage of
`SCHEMA` and `DATABASE` are interchangable and one can be used in place of the other. An error message
`SCHEMA` and `DATABASE` are interchangeable and one can be used in place of the other. An error message
is issued if the database is not found in the system. This command is mostly used to record the metadata
for a database and may be used for auditing purposes.
### Syntax
{% highlight sql %}
ALTER {DATABASE | SCHEMA} database_name SET DBPROPERTIES (propery_name=property_value, ...);
ALTER {DATABASE | SCHEMA} database_name SET DBPROPERTIES (property_name=property_value, ...);
{% endhighlight %}
### Parameters

View file

@ -101,7 +101,7 @@ this overrides the old value with the new one.
##### Syntax
{% highlight sql %}
--Set SERDE Propeties
--Set SERDE Properties
ALTER TABLE table_name [PARTITION part_spec]
SET SERDEPROPERTIES (key1=val1, key2=val2, ...)

View file

@ -60,7 +60,7 @@ CREATE [ OR REPLACE ] [ TEMPORARY ] FUNCTION [ IF NOT EXISTS ]
</dd>
<dt><code><em>function_name</em></code></dt>
<dd>
Specifies a name of funnction to be created. The function name may be
Specifies a name of function to be created. The function name may be
optionally qualified with a database name. <br><br>
<b>Syntax:</b>
<code>

View file

@ -56,7 +56,7 @@ SELECT * from Student;
| XYZ | 3 | 12 |
+-------+---------+------+--+
-- Removes all rows from the table in the partion specified
-- Removes all rows from the table in the partition specified
TRUNCATE TABLE Student partition(age=10);
--After truncate execution, records belonging to partition age=10 are removed

View file

@ -55,7 +55,7 @@ INSERT OVERWRITE [ LOCAL ] DIRECTORY directory_path
<dl>
<dt><code><em>VALUES ( { value | NULL } [ , ... ] ) [ , ( ... ) ]</em></code></dt>
<dd>
Specifies the values to be inserted. Either an explicitly specified value or a NULL can be inserted. A comma must be used to seperate each value in the clause. More than one set of values can be specified to insert multiple rows.
Specifies the values to be inserted. Either an explicitly specified value or a NULL can be inserted. A comma must be used to separate each value in the clause. More than one set of values can be specified to insert multiple rows.
</dd>
</dl>

View file

@ -51,7 +51,7 @@ INSERT OVERWRITE [ LOCAL ] DIRECTORY [ directory_path ]
<dl>
<dt><code><em>VALUES ( { value | NULL } [ , ... ] ) [ , ( ... ) ]</em></code></dt>
<dd>
Specifies the values to be inserted. Either an explicitly specified value or a NULL can be inserted. A comma must be used to seperate each value in the clause. More than one set of values can be specified to insert multiple rows.
Specifies the values to be inserted. Either an explicitly specified value or a NULL can be inserted. A comma must be used to separate each value in the clause. More than one set of values can be specified to insert multiple rows.
</dd>
</dl>

View file

@ -43,7 +43,7 @@ INSERT OVERWRITE [ TABLE ] table_name
<dl>
<dt><code><em>VALUES ( { value | NULL } [ , ... ] ) [ , ( ... ) ]</em></code></dt>
<dd>Specifies the values to be inserted. Either an explicitly specified value or a NULL can be inserted. A comma must be used to seperate each value in the clause. More than one set of values can be specified to insert multiple rows.</dd>
<dd>Specifies the values to be inserted. Either an explicitly specified value or a NULL can be inserted. A comma must be used to separate each value in the clause. More than one set of values can be specified to insert multiple rows.</dd>
</dl>
<dl>