zuotingbing opened a new issue, #8979:
URL: https://github.com/apache/gravitino/issues/8979

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   upgrade-0.8.0-to-0.9.0-postgresql.sql results error: "constraint 
"uk_fid_ver_del" of relation "fileset_version_info" does not exist".
   so we should delete  "ALTER TABLE fileset_version_info DROP CONSTRAINT IF 
EXISTS uk_fid_ver_del;" in upgrade-0.8.0-to-0.9.0-postgresql.sql file
   
   ### Error message and/or stacktrace
   
   gravitino-pg=# \d fileset_version_info
   Table "public.fileset_version_info"
   Column | Type | Collation | Nullable | Default
   
------------------+------------------------+-----------+----------+----------------------------------
   id | bigint | | not null | generated by default as identity
   metalake_id | bigint | | not null |
   catalog_id | bigint | | not null |
   schema_id | bigint | | not null |
   fileset_id | bigint | | not null |
   version | integer | | not null |
   fileset_comment | character varying(256) | | | ''::character varying
   properties | text | | |
   storage_location | text | | not null |
   deleted_at | bigint | | not null | 0
   Indexes:
   "fileset_version_info_pkey" PRIMARY KEY, btree (id)
   "fileset_version_info_fileset_id_version_deleted_at_key" UNIQUE CONSTRAINT, 
btree (fileset_id, version, deleted_at)
   "idx_schema_id" btree (schema_id)
   
   gravitino-pg=# ALTER TABLE fileset_version_info DROP CONSTRAINT 
uk_fid_ver_del;
   ERROR: constraint "uk_fid_ver_del" of relation "fileset_version_info" does 
not exist
   daip-gravitino-pg=#
   
   ### How to reproduce
   
   1. install gravitino 0.8.0 with schema-0.8.0-postgresql.sql
   2. upgrade gravitino from 0.8.0 to 0.9.0 with 
upgrade-0.8.0-to-0.9.0-postgresql.sql
   
   ### Additional context
   
   _No response_


-- 
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