apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.1k stars 345 forks source link

[Bug report] update tag failed #4540

Closed LauraXia123 closed 3 months ago

LauraXia123 commented 3 months ago

Version

main branch

Describe what's wrong

create a new tag without comment property Then update the tag, it will get an exception

Error message and/or stacktrace

image

How to reproduce

create a new tag by curl

curl -L -X POST 'http://localhost:8090/api/metalakes/:metalake/tags' \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.gravitino.v1+json' \
--data-raw '{
  "name": "string",
  "properties": {}
}'

then update the tag

curl -L -X PUT 'http://localhost:8090/api/metalakes/:metalake/tags/:tag' \
-H 'Content-Type: application/json' \
-H 'Accept: application/vnd.gravitino.v1+json' \
--data-raw '{
  "updates": [
    {
      "@type": "rename",
      "newName": "my_tag_new"
    },
  ]
}'

Additional context

No response

jerryshao commented 3 months ago

I will fix it.