Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] [Sql Gateway][WIP] Implement flink catalog use mysql as metadata store backend #3504

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -557,3 +557,36 @@ create table if not exists `t_resource` (
);

set foreign_key_checks = 1;

CREATE TABLE t_catalog(
`id` bigint auto_increment NOT NULL,
`catalog_name` varchar(10) NOT NULL comment 'catalog name',
`catalog_type` varchar(10) NOT NULL comment '1.jdbc 2.hive',
`default_database` varchar(50) NOT NULL,
`username` varchar(50),
`password` varchar(50),
`base-url` varchar(100) comment 'jdbc connection',
`hive-conf-dir` varchar(100) comment 'hive config path',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
primary key (`id`) using btree
)engine=innodb auto_increment=100000 default charset=utf8mb4 collate=utf8mb4_general_ci;

CREATE TABLE t_catalog_databases (
`id` bigint auto_increment NOT NULL,
`catalog_id` bigint NOT NULL,
`database_name` varchar(100) NOT NULL comment 'databbase name in catalog',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
primary key (`id`) using btree
)engine=innodb auto_increment=100000 default charset=utf8mb4 collate=utf8mb4_general_ci

CREATE TABLE t_catalog_tables (
`id` bigint auto_increment NOT NULL,
`catalog_id` bigint NOT NULL,
`catalog_database_id` bigint NOT NULL,
`table_name` varchar(100) NOT NULL comment 'table name in database',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP NOT NULL,
primary key (`id`) using btree
)engine=innodb auto_increment=100000 default charset=utf8mb4 collate=utf8mb4_general_ci;
Loading