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 392cdd5e05 [#6577] docs: fix param typo from 'type' to 'catalog_type'
(#6581)
392cdd5e05 is described below
commit 392cdd5e05198a1262a0134ab264faa38d799518
Author: AndreVale69 <[email protected]>
AuthorDate: Fri Mar 7 07:12:30 2025 +0100
[#6577] docs: fix param typo from 'type' to 'catalog_type' (#6581)
### What changes were proposed in this pull request?
Fix parameter typo for `create_catalog` function in `hadoop-catalog`
fileset documentation and `manage-fileset` and `manage-model`. Change
parameter typo from `type` to `catalog_type`.
### Why are the changes needed?
Incorrect parameter name in the documentation.
Fix: #6577
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
None.
Co-authored-by: Jerry Shao <[email protected]>
---
docs/hadoop-catalog-with-adls.md | 2 +-
docs/hadoop-catalog-with-gcs.md | 2 +-
docs/hadoop-catalog-with-oss.md | 2 +-
docs/hadoop-catalog-with-s3.md | 2 +-
docs/manage-fileset-metadata-using-gravitino.md | 2 +-
docs/manage-model-metadata-using-gravitino.md | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/hadoop-catalog-with-adls.md b/docs/hadoop-catalog-with-adls.md
index 880166776f..6e6b682ece 100644
--- a/docs/hadoop-catalog-with-adls.md
+++ b/docs/hadoop-catalog-with-adls.md
@@ -110,7 +110,7 @@ adls_properties = {
}
adls_properties = gravitino_client.create_catalog(name="example_catalog",
- type=Catalog.Type.FILESET,
+
catalog_type=Catalog.Type.FILESET,
provider="hadoop",
comment="This is a ADLS
fileset catalog",
properties=adls_properties)
diff --git a/docs/hadoop-catalog-with-gcs.md b/docs/hadoop-catalog-with-gcs.md
index 29465c2549..cd9c34aa94 100644
--- a/docs/hadoop-catalog-with-gcs.md
+++ b/docs/hadoop-catalog-with-gcs.md
@@ -105,7 +105,7 @@ gcs_properties = {
}
gcs_properties = gravitino_client.create_catalog(name="test_catalog",
- type=Catalog.Type.FILESET,
+
catalog_type=Catalog.Type.FILESET,
provider="hadoop",
comment="This is a GCS
fileset catalog",
properties=gcs_properties)
diff --git a/docs/hadoop-catalog-with-oss.md b/docs/hadoop-catalog-with-oss.md
index f330f7ede9..b72793a2a0 100644
--- a/docs/hadoop-catalog-with-oss.md
+++ b/docs/hadoop-catalog-with-oss.md
@@ -114,7 +114,7 @@ oss_properties = {
}
oss_catalog = gravitino_client.create_catalog(name="test_catalog",
- type=Catalog.Type.FILESET,
+
catalog_type=Catalog.Type.FILESET,
provider="hadoop",
comment="This is a OSS fileset
catalog",
properties=oss_properties)
diff --git a/docs/hadoop-catalog-with-s3.md b/docs/hadoop-catalog-with-s3.md
index c7fcef3737..caf48dc549 100644
--- a/docs/hadoop-catalog-with-s3.md
+++ b/docs/hadoop-catalog-with-s3.md
@@ -114,7 +114,7 @@ s3_properties = {
}
s3_catalog = gravitino_client.create_catalog(name="test_catalog",
- type=Catalog.Type.FILESET,
+ catalog_type=Catalog.Type.FILESET,
provider="hadoop",
comment="This is a S3 fileset
catalog",
properties=s3_properties)
diff --git a/docs/manage-fileset-metadata-using-gravitino.md
b/docs/manage-fileset-metadata-using-gravitino.md
index 0ff84c8346..90550da14b 100644
--- a/docs/manage-fileset-metadata-using-gravitino.md
+++ b/docs/manage-fileset-metadata-using-gravitino.md
@@ -87,7 +87,7 @@ Catalog catalog = gravitinoClient.createCatalog("catalog",
```python
gravitino_client: GravitinoClient =
GravitinoClient(uri="http://localhost:8090", metalake_name="metalake")
catalog = gravitino_client.create_catalog(name="catalog",
- type=Catalog.Type.FILESET,
+ catalog_type=Catalog.Type.FILESET,
provider="hadoop",
comment="This is a Hadoop fileset
catalog",
properties={"location":
"/tmp/test1"})
diff --git a/docs/manage-model-metadata-using-gravitino.md
b/docs/manage-model-metadata-using-gravitino.md
index 519f79b7f7..74d2a3e76a 100644
--- a/docs/manage-model-metadata-using-gravitino.md
+++ b/docs/manage-model-metadata-using-gravitino.md
@@ -75,7 +75,7 @@ Catalog catalog = gravitinoClient.createCatalog(
```python
gravitino_client: GravitinoClient =
GravitinoClient(uri="http://localhost:8090", metalake_name="example")
catalog = gravitino_client.create_catalog(name="model_catalog",
- type=Catalog.Type.MODEL,
+ catalog_type=Catalog.Type.MODEL,
provider=None,
comment="This is a model catalog",
properties={"k1": "v1"})