Commit 6557852
fix: enable streaming append for Kafka with Cayenne accelerator (spiceai#10269) (spiceai#10780)
Allow `refresh_mode: append` to use a connector-provided `append_stream`
when the accelerator engine is Cayenne. Previously, the Cayenne engine was
unconditionally excluded from the append-stream attachment path, so a Kafka
dataset with `engine: cayenne` and `refresh_mode: append` failed because no
streaming source was registered and Cayenne could not fall through to its
primary_key validation (since Kafka messages have neither time_column nor
primary_key).
The check now attempts to attach the source's `append_stream` first. If the
source provides one (Kafka, SpiceAI), it is used for all engines including
Cayenne. If it does not, Cayenne still falls back to its primary_key
validation; other engines require time_column.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 276f9fc commit 6557852
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
2407 | 2407 | | |
2408 | 2408 | | |
2409 | | - | |
| 2409 | + | |
2410 | 2410 | | |
2411 | 2411 | | |
2412 | 2412 | | |
| |||
0 commit comments