-
Notifications
You must be signed in to change notification settings - Fork 759
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
[Feature Request] Support inserting UUID from string in cassandra #2587
Comments
@mmayantz, Can you please provide a docker-compose and a working Benthos config to replicate this problem? It's important to note that I am not affiliated with the Benthos maintainers and am new to Benthos. However, I am eager to contribute to the project and learn from this experience 😇 |
Here is a docker-compose.yaml
benthos_config.yaml
|
I think the libraries expect an object of this type https://pkg.go.dev/github.com/gocql/gocql#UUID which, currently, can't be created using Benthos. One way to do it would be to add a new Bloblang function which does the conversion so then you'd get an instance of that type that you can pass into the |
@mihaitodor I didn't fully understand what you meant there, but both |
It seems to me that the |
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"
The text was updated successfully, but these errors were encountered: