-
Notifications
You must be signed in to change notification settings - Fork 58
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
Sink Connector with Hana Json Store not working #125
Comments
@mschuch unfortunately, there is no example in the tests. Could you post the exception? It looks like the sink connector is compelling about the incoming schema definition. Can you try to ingest the data into a normal table type to verify that the incoming schema is okay? |
Hi @elakito, I always get the same exception with or without a schema:
|
@mschuch How are you creating the input message? If your avro scenario is working when the messages are sent to a normal sink table, these messages are valid and you can also send them to a collection sink table by just changing the table type and name in the sink connector configuration. The error from your stack trace indicates the error happens when the structure of the message is analysed. It looks like something is wrong with the schema of the message. After the structure is determined from the schema, the message is prepared for the actual storing. When the target table is of collection type, they are serialised into a json document and stored into the collection table. Otherwise the records are stored as normal table records. |
Hi, @elakito. It looks like even though the key is with the StringConverter, the keySchema is not null, but it has no fields attached to it. i have tried and changed line 123 from
to
and line 63 from to
that worked and i could sink the values into the hana db. can you perhaps check if i could have changed my configuration to get this working? key.converter=org.apache.kafka.connect.storage.StringConverter Kind Regards and thanks for the help |
Thanks for your investigation. I added a more explicit condition to inspect the structured schema. |
Hi wanted to test if the sink connector is working with the Hana JSON Store, but I am unlucky with that.
Here is my config:
I am getting the following HANAConfigMissingException : A table name or query must be specified for HANA Kafka Connectors to workI got a little further than that, but I am now stuck with a DataException. "Cannot list fields on non-struct type".
What am i doing wrong here? Is there a working example?
The text was updated successfully, but these errors were encountered: