Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[9817] fix(docs): Optimize documentation example errors (#9818)

老王dd45b15b6779
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(