Closed yuqi1129 closed 4 months ago
@yuqi1129 We will support the h2 database in version 0.6.0. I think we only needs to change the file schema-h2.sql
to schema-0.6.0-mysql.sql
, and there's no need for other upgrade operations.
I recall that you used the procedure to insert some data to MySQL. Is it not necessary for the H2 database?
@yuqi1129 We use procedure to initialize data in MySQL because there is already some existing metalakes in MySQL. However, h2 only started supporting in version 0.6.0, there is no existing metalake in the database, so there is no need for initialization.
OK, please go ahead.
@lw-yang Please refer to Apache Hive's handling of schema upgrades for derby. https://github.com/apache/hive/tree/branch-3/metastore/scripts/upgrade/derby
What would you like to be improved?
DDL and table definition have used version management in the MySQL database, H2 database should also add it.
How should we improve?
Change file
schema-h2.sql
toschema-0.6.0-mysql.sql
and other necessary changes.