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.09k stars 343 forks source link

[Bug report] Audit information is empty of MYSQL schema #1767

Closed danhuawang closed 9 months ago

danhuawang commented 9 months ago

Version

main branch

Describe what's wrong

截屏2024-01-29 21 04 07 截屏2024-01-29 21 04 20

Error message and/or stacktrace

N/A

How to reproduce

curl -X POST -H "Content-Type: application/json" -d '{"name":"s3","comment":"comment"}' http://localhost:8090/api/metalakes/test/catalogs/m11/schemas

{"code":0,"schema":{"name":"s3","properties":{"COLLATE":"utf8mb4_0900_ai_ci","CHARACTER SET":"utf8mb4"},"audit":{"creator":"anonymous","createTime":"2024-01-29T13:10:18.936Z"}}}%

curl http://localhost:8090/api/metalakes/test/catalogs/m11/schemas/s3

{"code":0,"schema":{"name":"s3","properties":{"COLLATE":"utf8mb4_0900_ai_ci","CHARACTER SET":"utf8mb4"},"audit":{}}}%

Additional context

No response

FANNG1 commented 9 months ago

Similar with https://github.com/datastrato/gravitino/issues/1499, What's the different is we could get schema comment in PG while couldn't get the schema comment in Mysql, see #1717