You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "jw-itq (via GitHub)" <gi...@apache.org> on 2024/09/15 14:50:19 UTC
[I] [Bug] [sink-starrocks] When adding a new column, the data write to the StarRocks column is erroneous. [seatunnel]
jw-itq opened a new issue, #7669:
URL: https://github.com/apache/seatunnel/issues/7669
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### What happened
When synchronizing MySQL to StarRocks in real-time, if a new column is added in MySQL, StarRocks cannot add a new column, but this leads to errors in writing other data.
### SeaTunnel Version
dev
### SeaTunnel Config
```conf
env {
# You can set engine configuration here
job.mode = "STREAMING"
checkpoint.interval = 2000
checkpoint.timeout=600000
job.name = "test"
}
source {
MySQL-CDC {
username = "root"
password = "***"
base-url = "jdbc:mysql://test"
#startup.mode = "latest"
#startup.specific-offset.file = "mysql-bin.017679"
#startup.specific-offset.pos = "31878924"
table-names = [
"test.test"
]
}
}
transform {
}
sink {
StarRocks {
nodeUrls = ["***:8030"]
username = "admin"
password = "***"
database = "test"
table = "${table_name}"
base-url = "jdbc:mysql://****:9030/test"
max_retries = 3
enable_upsert_delete = true
starrocks.config = {
format = "JSON"
strip_outer_array = true
}
"schema_save_mode"="RECREATE_SCHEMA"
"data_save_mode"="DROP_DATA"
save_mode_create_template = """
CREATE TABLE IF NOT EXISTS test.`${table_name}` (
${rowtype_primary_key},
${rowtype_fields}
) ENGINE=OLAP
PRIMARY KEY (${rowtype_primary_key})
DISTRIBUTED BY HASH (${rowtype_primary_key})
PROPERTIES (
"replication_num" = "3",
"in_memory" = "false",
"enable_persistent_index" = "true",
"replicated_storage" = "true",
"compression" = "LZ4"
)
"""
}
}
```
### Running Command
```shell
seatunnel.sh -c test.conf
```
### Error Exception
```log
data error
```
### Zeta or Flink or Spark Version
zeta
### Java or Scala Version
jdk1.8
### Screenshots
This is data from starrocks:
<img width="1004" alt="image" src="https://github.com/user-attachments/assets/36fda0a7-0e12-4604-8882-f72075546e54">
This is data from MySQL:
<img width="605" alt="image" src="https://github.com/user-attachments/assets/e506a335-a914-4c45-a4c0-20ed88dd497d">
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [sink-starrocks] When adding a new column, the data write to the StarRocks column is erroneous. [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7669:
URL: https://github.com/apache/seatunnel/issues/7669#issuecomment-2415393656
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [sink-starrocks] When adding a new column, the data write to the StarRocks column is erroneous. [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7669: [Bug] [sink-starrocks] When adding a new column, the data write to the StarRocks column is erroneous.
URL: https://github.com/apache/seatunnel/issues/7669
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [sink-starrocks] When adding a new column, the data write to the StarRocks column is erroneous. [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7669:
URL: https://github.com/apache/seatunnel/issues/7669#issuecomment-2433886022
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org