# Logicaltype conversion in kafka conenct

**URL:** <https://forum.confluent.io/t/logicaltype-conversion-in-kafka-conenct/37440>\
**Category:** Kafka Connect\
**Created:** [10 March 2025 07:50 UTC](https://forum.confluent.io/t/logicaltype-conversion-in-kafka-conenct/37440 "2025-03-10T07:50:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramuvalivarthi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/ramuvalivarthi/32/4997_2.png) [@ramuvalivarthi](https://forum.confluent.io/u/ramuvalivarthi)\
**Post date:** [10 March 2025 07:50 UTC](https://forum.confluent.io/t/logicaltype-conversion-in-kafka-conenct/37440/1 "2025-03-10T07:50:11Z")

</div>

we are using `avrodata.toConnectData(schema(has logical types),record)`method , the returned object SchemaAndvalue has logical types (decimal,date,timestamp) decimal is converting from bytes to decimal value and int converting to date but long is not converting to timestamp ,also while writing to S3 in parquet format using ‘io.confluent.connect.s3.format.parquet.ParquetFormat’, date field is writing as int not as date(which was converted) and and long writing as long. what could be the reason. help is really appreciable.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [9 April 2025 07:50 UTC](https://forum.confluent.io/t/logicaltype-conversion-in-kafka-conenct/37440/2 "2025-04-09T07:50:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
