Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial will guide you on how to expose data stored in Cassandra as a data serviceAlso, see the samples in Data Integration Samples.

...

...

  1. Click Add New Query and enter the following details:

    Query IDEnter addUsers as the query ID.
    DatasourceSelect the datasource for which you are going to write a query. Select the Cassandra datasource that you created previously.
    SQL

    In this field, enter the SQL statement describing the data that should be added to the Cassandra datasource.

    Code Block
    INSERT INTO UsersKS.Users (id, name, country, age) values (:id, :name, :country, :age)
  2. Click Generate Input Mapping to create the input mappings.


  3. Edit the id column and change the Type to UUID.
  4. Save the mapping.
  5. Edit the age column and change the Type to integer.
  6. Save the mapping and click Main Configuration to return to the query. You will now have the following input mappings:
    Image Added
  7. Save the query.

Creating a query to GET data

...