danhuawang commented on code in PR #111:
URL: 
https://github.com/apache/gravitino-playground/pull/111#discussion_r1976245823


##########
init/common/init_metalake_catalog.sh:
##########
@@ -52,6 +58,9 @@ else
   response=$(curl -X POST -H "Accept: application/vnd.gravitino.v1+json" -H 
"Content-Type: application/json" -d '{ "name":"catalog_postgres", 
"type":"RELATIONAL", "provider":"jdbc-postgresql", "comment":"comment", 
"properties":{ "jdbc-url":"jdbc:postgresql://postgresql/db", 
"jdbc-user":"postgres", "jdbc-password":"postgres", "jdbc-database":"db", 
"jdbc-driver": "org.postgresql.Driver" } }' 
http://gravitino:8090/api/metalakes/metalake_demo/catalogs)
   if echo "$response" | grep -q "\"code\":0"; then
     true # Placeholder, do nothing
+  elif echo "$response" | grep -q 
"\"type\":\"CatalogAlreadyExistsException\""; then

Review Comment:
   If there's old catalog data in gravitino, will it cause the test cases run 
failed ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to