Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples and utility function to deal with Cassio #689

Merged
merged 3 commits into from
Nov 4, 2023

Conversation

eolivelli
Copy link
Member

@eolivelli eolivelli commented Nov 3, 2023

Summary:

  • add mapOf(...), listOf(...), concat(....),mapAll(), mapRemove() EL functions
  • add integration test about how to deal with map<string, string> objects in Cassandra, that is used by Cass.io
pipeline:
    - id: step1
      type: compute
      name: "Compute metadata"
      input: "input-topic-cassio"
      configuration:
        fields:
           - name: "value.metadata_s"
             expression: "fn:mapOf('filename', value.filename, 'chunk_id', value.chunk_id)"
    - name: "Write a new record to Cassandra"
      type: "vector-db-sink"
      configuration:
        datasource: "CassandraDatasource"
        table-name: "documents"
        keyspace: "cassio"
        mapping: "row_id=value.row_id,attributes_blob=value.attributes_blob,body_blob=value.body_blob,metadata_s=value.metadata_s,vector=value.vector"
  

@eolivelli eolivelli merged commit 70fb424 into main Nov 4, 2023
10 checks passed
@eolivelli eolivelli deleted the impl/cassio-example branch November 4, 2023 10:37
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant