Skip to content

Apache BEAM Sink for the QuestDB time-series database

License

Notifications You must be signed in to change notification settings

javier/questdb-beam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

questdb-beam: Apache Beam Sink for QuestDB in Python and Java

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.

Basic Python usage

pcoll | WriteToQuestDB(table, symbols=[list_of_symbols], columns=[list_of_columns],
        host=host, port=port, batch_size=optionalSizeOfBatch, tls=optionalBoolean, auth=optionalAuthDict)

Basic JAVA usage

// 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)
        );

Running the examples

Please refer to the examples README

About

Apache BEAM Sink for the QuestDB time-series database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published