redpanda-data / redpanda-data/connect

Cassandra output component arg_mapping type conversion issue

Open
#3,615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ux
Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

When using args_mapping it's failing to convert the string into a stricter inf.Dec type that Cassandra expects.

I’ve tried passing the value in both string and float formats, but in both cases, I encounter conversion errors:
When sent as string → Failed to send message: can not marshal string into decimal
When sent as float → Failed to send message: can not marshal float64 into decimal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Cassandra output component and its args_mapping handling. Reproduce the conversion errors with the reported string and float inputs, then verify that the resulting value is accepted as Cassandra's decimal type.

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, go
Domain
data-engineering, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.