You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@streampark.apache.org by GitBox <gi...@apache.org> on 2026/10/16 08:47:08 UTC
[GH] (streampark/fix/issue-4340-table-not-exists): Workflow run "Unit-Test" failed!
The GitHub Actions job "Unit-Test" on streampark.git/fix/issue-4340-table-not-exists has failed.
Run started by GitHub user zhang-arvin (triggered by zhang-arvin).
Head commit for run:
32e96014578647fc6cb88e0b69c2688950da0e91 / 张万义 <zh...@163.com>
[Bug] Fix table not exists error for MySQL/PostgreSQL by auto-initializing schema
Add schema and data SQL files for MySQL and PostgreSQL to the classpath resources,
and configure Spring Boot's sql.init to auto-initialize the database on startup.
Root cause: When using MySQL or PostgreSQL as the datasource, SpringProperties.java
only configured the datasource connection but did not set up spring.sql.init
properties. This caused tables to never be auto-created, resulting in
'Table does not exist' errors on first startup.
Changes:
- Add schema-mysql.sql, data-mysql.sql to resources/db/
- Add schema-pgsql.sql, data-pgsql.sql to resources/db/
- Update SpringProperties.java to configure spring.sql.init for MySQL and PostgreSQL
Closes #4340
Report URL: https://github.com/apache/streampark/actions/runs/35075410435
With regards,
GitHub Actions via GitBox