Skip to content

Commit

Permalink
[FLINK-18313][docs] Update Hive dialect doc about VIEW
Browse files Browse the repository at this point in the history
This closes apache#12666
  • Loading branch information
lirui-apache authored Jun 23, 2020
1 parent efcc543 commit da68673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/dev/table/hive/hive_dialect.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ CREATE VIEW [IF NOT EXISTS] view_name [(column_name, ...) ]

#### Alter

**NOTE**: Altering view only works in Table API, but not supported via SQL client.

##### Rename

{% highlight sql %}
Expand Down Expand Up @@ -345,3 +347,4 @@ location is only supported in Hive-2.4.0 or later.
- Hive and Calcite have different sets of reserved keywords. For example, `default` is a reserved keyword in Calcite and
a non-reserved keyword in Hive. Even with Hive dialect, you have to quote such keywords with backtick ( ` ) in order to
use them as identifiers.
- Due to expanded query incompatibility, views created in Flink cannot be queried in Hive.
3 changes: 3 additions & 0 deletions docs/dev/table/hive/hive_dialect.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ CREATE VIEW [IF NOT EXISTS] view_name [(column_name, ...) ]

#### Alter

**NOTE**: Altering view only works in Table API, but not supported via SQL client.

##### Rename

{% highlight sql %}
Expand Down Expand Up @@ -345,3 +347,4 @@ location is only supported in Hive-2.4.0 or later.
- Hive and Calcite have different sets of reserved keywords. For example, `default` is a reserved keyword in Calcite and
a non-reserved keyword in Hive. Even with Hive dialect, you have to quote such keywords with backtick ( ` ) in order to
use them as identifiers.
- Due to expanded query incompatibility, views created in Flink cannot be queried in Hive.

0 comments on commit da68673

Please sign in to comment.