Sơn Bùi
08/10/2026, 4:00 AMRocky
08/10/2026, 4:00 AMSELECT ... FROM ... WHERE ... queries.
* Aggregates: Only the count aggregate function is supported; others are not.
* LIMIT Clause: The LIMIT statement is not supported in Flink SQL for this connector.
* Checkpoints: StarRocks does not support the checkpointing mechanism for read tasks; if a read task fails, it must be restarted from the beginning as consistency isn't guaranteed.
* Schema Mapping: The order of fields in your Flink DDL must match the order in the StarRocks table exactly.
Writing (Sink) Limits:
* Buffer Limits: sink.buffer-flush.max-bytes must be between 64 MB and 10 GB.
* Parallelism: If the Flink sink parallelism is set to 1, the "Merge Commit" feature provides no performance benefit and may even increase latency.
* Memory Management: Large batch sizes (controlled by sink.buffer-flush.max-bytes) can improve performance but increase memory usage and latency.
3. Common Issues (Documentation & GitHub)
The following are common issues reported in the StarRocks FAQ and GitHub repository:
* Network & Connectivity:
* Internal IP Redirection: A known issue where the FE returns internal BE IP addresses that are unreachable from the Flink cluster (especially in Docker/K8s environments). Solution involves ensuring BE IPs are reachable or using NAT/Proxy.
* Unreachable Load URL: Errors like None of hosts in load_url could be connected often require increasing sink.connect.timeout-ms.
* Data Integrity & Formatting:
* Timezone Offset: Users often report an 8-hour time difference when sinking timestamps. This is fixed by setting server-time-zone in the DDL.
* JSON Batch Size: Large JSON loads may fail with The size of this batch exceed the max size [104857600]. This requires setting sink.properties.ignore_json_size = true.
* Partial Updates: Flink CDC to StarRocks often fails with "NULL value in non-nullable column" if sink.properties.partial_update is not explicitly enabled for Primary Key tables.
* Performance & Stability:
* Scan Context Expiration: The error Failed to get next from be occurs when a scan task takes too long. Solution: Increase the BE config scan_context_gc_interval_min.
* Shared-Data Mode: Some issues have been reported (e.g., GitHub #33368) where the connector fails to sink data correctly when StarRocks is in shared-data mode.
For a full list of active bugs and feature requests, you can visit the official StarRocks Flink Connector GitHub Issues page.
References
• unloading/Flink_connector.mdRocky
08/10/2026, 4:00 AM