This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new effd9bc52 [#5399] fix (docs): Add a description of reserved properties
to the `trino-connector/catalog-hive.md` documentation. (#5414)
effd9bc52 is described below
commit effd9bc52a95015c749d6a71432f159976b64b1c
Author: Yuhui <[email protected]>
AuthorDate: Fri Nov 1 12:17:49 2024 +0800
[#5399] fix (docs): Add a description of reserved properties to the
`trino-connector/catalog-hive.md` documentation. (#5414)
### What changes were proposed in this pull request?
Some properties are automatically added and managed as reserved
properties.
Update the doc to describe them
### Why are the changes needed?
Fix: #5399
### Does this PR introduce _any_ user-facing change?
Update docs
### How was this patch tested?
No
---
docs/trino-connector/catalog-hive.md | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/docs/trino-connector/catalog-hive.md
b/docs/trino-connector/catalog-hive.md
index d6e36ecba..21fd03c3d 100644
--- a/docs/trino-connector/catalog-hive.md
+++ b/docs/trino-connector/catalog-hive.md
@@ -127,11 +127,7 @@ The following tables are the properties supported by the
Hive table:
| Property | Description | Default Value
| Required | Reserved | Since Version |
|----------------|-----------------------------------------|------------------------------------------------------------|----------|----------|---------------|
| format | Hive storage format for the table | TEXTFILE
| No | No | 0.2.0 |
-| total_size | Total size of the table | (none)
| No | Yes | 0.2.0 |
-| num_files | Number of files | 0
| No | Yes | 0.2.0 |
-| external | Indicate whether it's an external table | (none)
| No | No | 0.2.0 |
| location | HDFS location for table storage | (none)
| No | No | 0.2.0 |
-| table_type | The type of Hive table | (none)
| No | No | 0.2.0 |
| input_format | The input format class for the table |
org.apache.hadoop.mapred.TextInputFormat | No | No
| 0.2.0 |
| output_format | The output format class for the table |
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat | No | No
| 0.2.0 |
| serde_lib | The serde library class for the table |
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe | No | No
| 0.2.0 |
@@ -141,6 +137,15 @@ The following tables are the properties supported by the
Hive table:
| bucket_count | Number of buckets for the table | (none)
| No | No | 0.4.0 |
| sorted_by | Sorted columns for the table | (none)
| No | No | 0.4.0 |
+The following properties are automatically added and managed as reserved
properties. Users are not allowed to set these properties.
+
+| Property | Description | Since Version |
+|----------------|-----------------------------------------|---------------|
+| total_size | Total size of the table | 0.2.0 |
+| num_files | Number of files | 0.2.0 |
+| external | Indicate whether it's an external table | 0.2.0 |
+| table_type | The type of Hive table | 0.2.0 |
+
## Basic usage examples
You need to do the following steps before you can use the Hive catalog in
Trino through Gravitino.