I create a table with
CREATE TABLE CUSTOMERS (IMAGENID STRING PRIMARY KEY, FQDN STRING) WITH (KAFKA_TOPIC='IMAGEN', KEY_FORMAT='KAFKA', VALUE_FORMAT='JSON');
My Topic has ImagenID variable
But when I look at the table, it has not used that and has instead used a different string for the ID which looks like a GUID
And example topic message is
{
"ImagenID": "25AjTwFdI0hmHFL2hMJF",
"UserID": 3275,
"Category": "Search",
"OrganisationID": 0,
"Action": "View",
"SubAction": null,
"ObjectID": 0,
"ObjectType": null,
"ObjectOrg": 0,
"FQDN": "www.someurl.com",
"Referrer": "https://www.someurl.com/search/results",
"timestamp": 1648115728000,
"intField_0": 1,
"intField_1": 0,
"intField_2": 0,
"intField_3": 0,
"intField_4": 0,
"intField_5": 0,
"stringField_0": "search title",
"stringField_1": null,
"stringField_2": null,
"stringField_3": null,
"stringField_4": null,
"stringField_5": null,
"Values": [],
"id": "2a4a3baa-51d6-42f1-ba4a-aea016c8b549",
"_rid": "TpIGAKCPadX8Q3IEAAAAAw==",
"_self": "dbs/TpIGAA==/colls/TpIGAKCPadU=/docs/TpIGAKCPadX8Q3IEAAAAAw==/",
"_etag": "\"8400d9ea-0000-0d00-0000-623c40100000\"",
"_attachments": "attachments/",
"_ts": 1648115728,
"_lsn": 75688459
}
I am trying to create a table which shows the latest FQDN for a given ImagenID
An example row from the table is (not the same row as record above)
|"\"849bd7a7-3ed3-48d3-9b20-dd5e521737c2\"" |www.someurl.com |