-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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][Connector-V2] Iceberg-sink supports writing data to branches #6697
[Feature][Connector-V2] Iceberg-sink supports writing data to branches #6697
Conversation
"sh", "-c", "cd " + CATALOG_DIR + " && tar -zxvf " + NAMESPACE_TAR); | ||
try { | ||
Process process = processBuilder.start(); | ||
// 等待命令执行完成 |
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.
please use English comment
fileScanTask -> { | ||
try { | ||
DataFile file = fileScanTask.file(); | ||
// 构建文件的输入流 |
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.
same as above
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.
done
497f5b4
to
16fed67
Compare
@hailin0 PTAL |
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.
please update docs
}; | ||
|
||
@TestTemplate | ||
public void testInsertAndCheckDataE2e(TestContainer container) |
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.
How to validate iceberg.table.commit-branch="commit-branch"
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.
How to validate
iceberg.table.commit-branch="commit-branch"
'loadDataFromIcebergTableBranch()' uses 'table.newScan().useRef(commitBranch)' to specify that data should be read from a branch.
c68c01c
to
f859c2d
Compare
@hailin0 PTAL |
please check ci error or retry |
1474a4a
to
0ef8ab9
Compare
@hailin0 done |
@@ -109,13 +109,20 @@ public class SinkConfig extends CommonConfig { | |||
.defaultValue(DataSaveMode.APPEND_DATA) | |||
.withDescription("data save mode"); | |||
|
|||
public static final Option<String> TABLES_DEFAULT_COMMIT_BRANCH = |
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.
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.
5e55397
to
4e8fa8e
Compare
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.
LGTM
} | ||
} | ||
} catch (IOException e) { | ||
e.printStackTrace(); |
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.
add to log message
log.error("Extract files failed with exit code " + exitCode); | ||
} | ||
} catch (IOException | InterruptedException e) { | ||
e.printStackTrace(); |
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.
add to log message
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.
add to log message
@hailin0 done
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.
+1
Purpose of this pull request
closed #6686
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note
.