Apache Beam python sink for writing data into QuestDB time-series database.
We offer two versions:
- Java Sink
- Python Sink. Please note that since Python streaming is not well supported in many of the Beam runners (including the direct runner and the Flink portable one), you might prefer to use the JAVA version in streaming scenarios.
pcoll | WriteToQuestDB(table, symbols=[list_of_symbols], columns=[list_of_columns],
host=host, port=port, batch_size=optionalSizeOfBatch, tls=optionalBoolean, auth=optionalAuthDict)
// pcoll needs to be a PCollection with QuestDbRow objects
pcoll.apply(ParDo.of(new LineToMapFn()));
parsedLines.apply(QuestDbIO.write()
.withUri("localhost:9009")
.withTable("beam_demo")
.withDeduplicationEnabled(true)
);
Please refer to the examples README