starrocks-connector-for-apache-spark
starrocks-connector-for-apache-spark copied to clipboard
[feature] support spark overwrite into starrocks
What type of PR is this:
- [ ] BugFix
- [x] Feature
- [ ] Enhancement
- [ ] Refactor
- [ ] UT
- [ ] Doc
- [ ] Tool
Which issues of this PR fixes :
Fixes #125
Problem Summary(Required) :
- We implement the overwrite operation by using a temporary partition and atomically replacing the partition. After the job finishes, we create a new table and write to it.
- The swap table statement can be used to perform the overwrite operation on the entire table.
- However, expression partitioning does not allow the creation of partitions through the ALTER TABLE statement. This limitation means that tables using expression partitioning do not support the overwrite operation.
Checklist:
- [x] I have added test cases for my bug fix or my new feature
- [x] This pr will affect users' behaviors
- [x] This pr needs user documentation (for new or modified features or behaviors)
- [ ] I have added documentation for my new feature or new function
@banmoy are you planning to introduce this capabillity?