Open alvaradojl opened 5 years ago
I have the same issue: I created a stream but rowkey format is like this: {"schema":{"type":"struct","fields":[{"type":"int64","optional":true,"field":"Id"}],"optional":false,"name":"com.github.jcustenborder.kafka.connect.twitter.StatusKey","doc":"Key for a twitter status."},"payload":{"Id":1140239850848882688}}
and the rest of the fields are null
any idea how to solve this issue.
ksql> SELECT * FROM twitter_raw LIMIT 1; 1560689344973 | {"schema":{"type":"struct","fields":[{"type":"int64","optional":true,"field":"Id"}],"optional":false,"name":"com.github.jcustenborder.kafka.connect.twitter.StatusKey","doc":"Key for a twitter status."},"payload":{"Id":1140239850848882688}} | null | null | null
This topic may be indirectly related to: #1405
I have a kafka topic with valid messages but with no keys
I created a first stream from this topic, rekeying on a non-null field (remoteAddress):
create stream stream_relay_v0_topic(requestId varchar, requestTime varchar, remoteAddress varchar, requestUri varchar, hostname varchar) \ with (value_format='JSON', kafka_topic='relay_v0_topic', key='remoteAddress');
the description of the stream is:
If I query the stream columns remoteAddress and ROWKEY I expect them to be the same but the result is:
What I tried:
I created a second stream to check if I could rekey from another stream instead of the topic and I still have the same problem:
therefore the described stream is
I keep having a ROWKEY null from both streams
*I tried using docker images https://hub.docker.com/r/confluentinc/cp-ksql-cli/ https://hub.docker.com/r/confluentinc/cp-ksql-server/
tags: latest, 5.1.3, 5.2.1