You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this PR implement create/drop database creste/drop table for paimon
1.create databse:
create database if not exists test_db; 2.drop databse:
drop database if exists test_db; 3.create table:
The current storage format is the default Parquet. 3.1 simple table:
CREATE TABLE test_db.test01 (
id int
) engine=paimon;
3.2 table with primaty-key:
CREATE TABLE test_db.test02 (
id int
) engine=paimon
properties("primary-key"=id);
yx-keith
changed the title
[feature](paimon) implement ddl for paimon
[feature](paimon) implement create/drop db, create/drop table for paimon
Dec 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Related #56005
this PR implement create/drop database creste/drop table for paimon
1.create databse:
create database if not exists test_db;
2.drop databse:
drop database if exists test_db;
3.create table:
The current storage format is the default Parquet.
3.1 simple table:
CREATE TABLE test_db.test01 (
id int
) engine=paimon;
3.2 table with primaty-key:
CREATE TABLE test_db.test02 (
id int
) engine=paimon
properties("primary-key"=id);
3.3 table with many types:
CREATE TABLE test_db.test03 (
c0 int,
c1 bigint,
c2 float,
c3 double,
c4 string,
c5 date,
c6 decimal(10,5),
c7 datetime
) engine=paimon
properties("primary-key"=c0);
3.4 partition table:
CREATE TABLE test_db.test04 (
c0 int,
c1 bigint,
c2 float,
c3 double,
c4 string,
c5 date,
c6 decimal(10,5),
c7 datetime
) engine=paimon
partition by (c1) ()
properties("primary-key"=c0);
3.5 table with bucket:
create table test_db.test05 (
c0 int,
c1 bigint,
c2 float,
c3 double,
c4 string,
c5 date,
c6 decimal(20,10),
c7 datetime
) engine = paimon
properties (
'primary-key' = 'c0,c1',
'bucket' = '4',
'bucket-key' = 'c0,c1'
);
Note:
All bucket keys should be included in the primary key.
All table properties will be passed to paimon.
4.drop table:
drop table if exists test_db.test01;
5.TODO:
5.1 support ORC format when creating table
5.2 support alter table and other DDL
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)