confluentinc / kafka-connect-datagen

Connector that generates data for demos
Apache License 2.0
20 stars 87 forks source link

Does format_as_time property work? #123

Open ismailmayat opened 1 year ago

ismailmayat commented 1 year ago

Looking at the quick start quickstream we have

{"name": "time", "type": { "type": "string", "format_as_time" : "dd/MMM/yyyy:HH:mm:ss Z", "arg.properties": { "iteration": { "start": 1, "step": 10} } }}, {"name": "_time", "type": { "type": "long", "format_as_time" : "unix_long", "arg.properties": { "iteration": { "start": 1, "step": 10} } }}

When you run this quickstart then I would expect for time property a date set with the format specified. However, this is not the case, when you run the quick start you get incrementing string integer. Looking at the code I do not see any reference to 'format_as_time' so does this property even do anything? I am trying to create a schema with a string representation of a date.