gravitino icon indicating copy to clipboard operation
gravitino copied to clipboard

[Bug report] Document bug in fileset python sample code

Open shaofengshi opened this issue 10 months ago • 1 comments

Version

main branch

Describe what's wrong

When I follow the steps in https://gravitino.apache.org/docs/0.8.0-incubating/hadoop-catalog-with-s3 to create a fileset,

Image

Then I got error "GravitinoClient.create_catalog() got an unexpected keyword argument 'type'" as below:

Image

Then I checked the source code, the property is called "catalog_type", not "type":

Image

The same bug exists in other documents, should be solved in a batch:

Image

Error message and/or stacktrace

GravitinoClient.create_catalog() got an unexpected keyword argument 'type'

How to reproduce

Follow the steps in https://gravitino.apache.org/docs/0.8.0-incubating/hadoop-catalog-with-s3

Additional context

No response

shaofengshi avatar Mar 03 '25 07:03 shaofengshi

Hi, I would like to work on this issue. I noticed that other documents also have the same problem. For example:

https://github.com/apache/gravitino/blob/0e31573f5dc15f439268fb0861a93c52932ac368/docs/manage-fileset-metadata-using-gravitino.md?plain=1#L88-L93

Also:

https://github.com/apache/gravitino/blob/0e31573f5dc15f439268fb0861a93c52932ac368/docs/manage-model-metadata-using-gravitino.md?plain=1#L76-L81

And others. Can I work on this issue?

AndreVale69 avatar Mar 03 '25 12:03 AndreVale69