-
Notifications
You must be signed in to change notification settings - Fork 434
Support Add Column in Fluss. #2010
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
base: main
Are you sure you want to change the base?
Conversation
fluss-server/src/main/java/org/apache/fluss/server/coordinator/MetadataManager.java
Outdated
Show resolved
Hide resolved
fluss-client/src/main/java/org/apache/fluss/client/admin/FlussAdmin.java
Outdated
Show resolved
Hide resolved
|
|
||
| public Column(String columnName, DataType dataType) { | ||
| this(columnName, dataType, null); | ||
| this(columnName, dataType, null, UNKNOWN_COLUMN_ID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to get the column id for the previous schema (use the column order). Using -1 as default column is error-prone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I also want to do it. But as a public api, I cannot remove this constructor Column(String columnName, DataType dataType). If not set -1, I have no idea how to handle it.
| /** Register schema to ZK metadata and return the schema id. */ | ||
| public int registerSchema(TablePath tablePath, Schema schema) throws Exception { | ||
| int currentSchemaId = getCurrentSchemaId(tablePath); | ||
| return registerSchema(tablePath, schema, getCurrentSchemaId(tablePath) + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is creating a new table, we can directly use schema id = 1 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
279a97d to
2ade0ce
Compare
...client/src/main/java/org/apache/fluss/client/table/scanner/batch/KvSnapshotBatchScanner.java
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/metadata/TableChange.java
Outdated
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/metadata/TableChange.java
Outdated
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/metadata/TableInfo.java
Outdated
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/record/LogRecordBatch.java
Outdated
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/record/LogRecordReadContext.java
Outdated
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/row/encode/ValueDecoder.java
Outdated
Show resolved
Hide resolved
fluss-client/src/main/java/org/apache/fluss/client/FlussConnection.java
Outdated
Show resolved
Hide resolved
fluss-common/src/main/java/org/apache/fluss/record/DefaultLogRecordBatch.java
Outdated
Show resolved
Hide resolved
4277102 to
d490cb1
Compare
2. flink write with smaller row
d490cb1 to
a475aee
Compare
5829700 to
9742f89
Compare

Purpose
Linked issue: close #2056
Brief change log
Tests
API and Format
Documentation