Skip to content

Commit 7ea5ee5

Browse files
github-actions[bot]AndreVale69jerryshao
authored
[#6577] docs: fix param typo from 'type' to 'catalog_type' (#6634)
### 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: AndreVale69 <57899285+AndreVale69@users.noreply.github.com> Co-authored-by: Jerry Shao <jerryshao@datastrato.com>
1 parent 53b65f7 commit 7ea5ee5

6 files changed

+6
-6
lines changed

docs/hadoop-catalog-with-adls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ adls_properties = {
110110
}
111111

112112
adls_properties = gravitino_client.create_catalog(name="example_catalog",
113-
type=Catalog.Type.FILESET,
113+
catalog_type=Catalog.Type.FILESET,
114114
provider="hadoop",
115115
comment="This is a ADLS fileset catalog",
116116
properties=adls_properties)

docs/hadoop-catalog-with-gcs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ gcs_properties = {
105105
}
106106

107107
gcs_properties = gravitino_client.create_catalog(name="test_catalog",
108-
type=Catalog.Type.FILESET,
108+
catalog_type=Catalog.Type.FILESET,
109109
provider="hadoop",
110110
comment="This is a GCS fileset catalog",
111111
properties=gcs_properties)

docs/hadoop-catalog-with-oss.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ oss_properties = {
114114
}
115115

116116
oss_catalog = gravitino_client.create_catalog(name="test_catalog",
117-
type=Catalog.Type.FILESET,
117+
catalog_type=Catalog.Type.FILESET,
118118
provider="hadoop",
119119
comment="This is a OSS fileset catalog",
120120
properties=oss_properties)

docs/hadoop-catalog-with-s3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ s3_properties = {
114114
}
115115

116116
s3_catalog = gravitino_client.create_catalog(name="test_catalog",
117-
type=Catalog.Type.FILESET,
117+
catalog_type=Catalog.Type.FILESET,
118118
provider="hadoop",
119119
comment="This is a S3 fileset catalog",
120120
properties=s3_properties)

docs/manage-fileset-metadata-using-gravitino.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Catalog catalog = gravitinoClient.createCatalog("catalog",
8787
```python
8888
gravitino_client: GravitinoClient = GravitinoClient(uri="http://localhost:8090", metalake_name="metalake")
8989
catalog = gravitino_client.create_catalog(name="catalog",
90-
type=Catalog.Type.FILESET,
90+
catalog_type=Catalog.Type.FILESET,
9191
provider="hadoop",
9292
comment="This is a Hadoop fileset catalog",
9393
properties={"location": "/tmp/test1"})

docs/manage-model-metadata-using-gravitino.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Catalog catalog = gravitinoClient.createCatalog(
7575
```python
7676
gravitino_client: GravitinoClient = GravitinoClient(uri="http://localhost:8090", metalake_name="example")
7777
catalog = gravitino_client.create_catalog(name="model_catalog",
78-
type=Catalog.Type.MODEL,
78+
catalog_type=Catalog.Type.MODEL,
7979
provider=None,
8080
comment="This is a model catalog",
8181
properties={"k1": "v1"})

0 commit comments

Comments
 (0)