Is there a way to assign the number of partitions on table dynamically relying on topic's number of partitions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- kafka, python
- Ambito
- stream-processing
Direzione di ricerca
The report is about the partitions argument of app.Table(...) and the .partitions attribute of app.topic(...), which reads as None when the table is declared. Start by finding where the topic's partition count is set or resolved, and check whether it is known at declaration time or only after the Kafka metadata is fetched. Done means the table's partition count can follow an external topic's count, or the issue gets a maintainer decision that this is not supported. The thread is over a year old with no linked pull request, so ask a maintainer about the intended design first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Checklist
- I have included information about relevant versions
- I have verified that the issue persists when using the
masterbranch of Faust.
Steps to reproduce
I want to know if there is a way to assign the number of partitions on table dynamically relying on topic's number of partitions. In my app I consume from external topics which doesn't belong to me which has different number of partitions in different environment and their number can be changed in future, but I do modify table under those topics and thus the number of partitions should be equal.
Expected behavior
I wanted to achieve it with something like that, but it doesn't work:
courier_event_topic = app.topic(
"courier_topic",
)
courier_table = app.Table(
"courier_table",
default=set,
partitions=courier_event_topic.partitions,
)
Actual behavior
right now in code above courier_event_topic.partitions will be None
Versions
- Python version: Python 3.10.6
- Faust version: 0.10.14
- Operating system: Ubuntu 22
- Kafka version: 3.4
- RocksDB version (if applicable)
- Lingua principale
- Python
- Stelle
- 1.9k
- Fork
- 205
- Merge medio
- 2h 2m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di faust-streaming/faust
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
faust-streaming/faust#804 ·
-
scripts/install script forces use of ./venv virtualenv, impossible to use with virtualenvwrapperAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
faust-streaming/faust#28 · 1 commento ·
-
[BUG] SASL PLAINTEXT producer initialization fails : missing sasl_plain_username/passwordForse già presa @wbarnha l’ha presa 56 giorni fa. Aperta
faust-streaming/faust#794 · 2 commenti · 1 reazione · 2 assegnatari ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
faust-streaming/faust#670 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
faust-streaming/faust#666 ·
Tutte le issue di faust-streaming/faust
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Maintainer] task area:visualizer
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
RailtownAI/railtracks#1824 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
apache/datafusion#27688 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
heasarc/heasarc-tutorials#317 ·
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
mloda-ai/mloda-registry#1664 ·
I maintainer di solito rispondono entro 1 giorno