-
Notifications
You must be signed in to change notification settings - Fork 71
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
Bind variables cannot be used for table names #1310
Comments
Please explain a bit better what you're trying to do and maybe add some code and examples. |
insert into table_name(id, name) values (?,?) : This is my query but I need to replace the table name along with kafka returned value , suppose if my kafka values are like this [table_name,id,name] how can I assign the table_name to the above query? Im using Cassandra sink connector
|
This is not possible at this stage. The bind is just for values not for the table name. You could try to manipulate the table name through modifying the Kamelets and change the sink from to to toD, but it's conceptually wrong for Kamelets. If you have multiple tables, you should have a kafka topic for each of them and consume with n kamelets one for each table. Kamelets are building blocks, not all the use cases could be covered. |
how can I bind kafka values as bind variables for sink connector
The text was updated successfully, but these errors were encountered: