This is an automated email from the ASF dual-hosted git repository.
mchades 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 dd45b15b67 [9817] fix(docs): Optimize documentation example errors
(#9818)
dd45b15b67 is described below
commit dd45b15b677943bab8d6988bfd79c300eca99380
Author: 老王 <[email protected]>
AuthorDate: Sat Jan 31 21:57:06 2026 +0800
[9817] fix(docs): Optimize documentation example errors (#9818)
### What changes were proposed in this pull request?
Modified the file `manage-relational-metadata-using-gravitino.md`
### Why does it need to change?
There is an incorrect example in the document. The two attributes of
primary key auto-increment and default value are semantically
conflicting.
Fix: #9817
### Does this PR introduce _any_ user-facing changes?
None
### How is this patch tested?
Only the documentation has been changed, no unit tests need to be added
---
docs/manage-relational-metadata-using-gravitino.md | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/docs/manage-relational-metadata-using-gravitino.md
b/docs/manage-relational-metadata-using-gravitino.md
index ab482df814..bf58831e8f 100644
--- a/docs/manage-relational-metadata-using-gravitino.md
+++ b/docs/manage-relational-metadata-using-gravitino.md
@@ -716,12 +716,7 @@ curl -X POST -H "Accept:
application/vnd.gravitino.v1+json" \
"type": "integer",
"comment": "id column comment",
"nullable": false,
- "autoIncrement": true,
- "defaultValue": {
- "type": "literal",
- "dataType": "integer",
- "value": "-1"
- }
+ "autoIncrement": true
},
{
"name": "name",
@@ -849,7 +844,7 @@ Map<String, String> tablePropertiesMap =
ImmutableMap.<String, String>builder()
tableCatalog.createTable(
NameIdentifier.of("schema", "example_table"),
new Column[] {
- Column.of("id", Types.IntegerType.get(), "id column comment", false, true,
Literals.integerLiteral(-1)),
+ Column.of("id", Types.IntegerType.get(), "id column comment", false, true,
Column.DEFAULT_VALUE_NOT_SET),
Column.of("name", Types.VarCharType.of(500), "name column comment", true,
false, Literals.NULL),
Column.of("StartingDate", Types.TimestampType.withoutTimeZone(),
"StartingDate column comment", false, false,
Column.DEFAULT_VALUE_OF_CURRENT_TIMESTAMP),
Column.of("info", Types.StructType.of(