0

I have a user defined python library which parses the data from a file and returns key value pairs. Now how do I use this library to insert data into Cassandra column family? I’m using python Cassandra driver.

Erick Ramirez
  • 13,964
  • 1
  • 18
  • 23
spark_dream
  • 326
  • 2
  • 8
  • 23

1 Answers1

0

Have you looked at the Datastax Driver Documentation?

Most specifically:

  • Executing Queries
  • Passing Parameters to CQL Queries

Generate a PreparedStatement for the insertion query and iterate over a list/tuple/generator with the key value pairs from your parsed file data.

Andrew Mo
  • 1,433
  • 9
  • 12