redpanda-data / redpanda-data/connect
[Feature Request] Support inserting UUID from string in cassandra
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.8k
- Forks
- 969
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 64
Description
- output:
cassandra:
addresses: [ "localhost:9042" ]
query: "insert into tableX (property1, property2, property3, property4, property5) VALUES (?, ?, ?, ?, ?)"
args_mapping: |
root = [
this.prop1,
this.prop2,
this.prop3,
this.prop4,
this.prop5
]
If the table im inserting into has uuid types, can this type be supported in the args mapping? Currently this does not appear to be the case.
if i manually insert into scylladb this:
VALUES (00000000-0000-0000-0000-000000000000, etc..
it inserts correctly, but with quotes:
VALUES ('00000000-0000-0000-0000-000000000000'
we get this error:
message="Invalid STRING constant (00000000-0000-0000-0000-000000000000) for "object_id" of type uuid"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the shown Cassandra output configuration against ScyllaDB and inspect how args_mapping values are passed to UUID columns. Trace the Cassandra output implementation and its argument conversion path; done means a UUID supplied as a string is accepted without the invalid STRING constant error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100