# Composite types with line protocol

**URL:** <https://community.influxdata.com/t/composite-types-with-line-protocol/29196>\
**Category:** InfluxDB 2\
**Tags:** influxdb, getting-started\
**Created:** [March 23, 2023, 7:26am UTC](https://community.influxdata.com/t/composite-types-with-line-protocol/29196 "2023-03-23T07:26:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teclab](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@teclab](https://community.influxdata.com/u/teclab)\
**Post date:** [March 23, 2023, 7:26am UTC](https://community.influxdata.com/t/composite-types-with-line-protocol/29196/1 "2023-03-23T07:26:26Z")

</div>

Dear Community,

I found lots of array references, but nothing that explicitly describes how the line protocol handles composite types:

> **[Line protocol | InfluxDB Cloud (IOx) Documentation](https://docs.influxdata.com/influxdb/cloud-iox/reference/syntax/line-protocol/)**
>
> InfluxDB uses line protocol to write data points. It is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point.

> **[Work with composite Flux data types | Flux 0.x Documentation](https://docs.influxdata.com/flux/v0.x/data-types/composite/)**
>
> Flux composite types are types constructed from basic types. Flux supports the following composite types: record, array, dictionary, function.

Am I missing something? Would it work like this?

```auto
myMeasurement,tag1=value1,tag2=value2 fieldKey=[1, 2, 3, 4] 1556813561098000000

```

Thx!

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [March 24, 2023, 5:46pm UTC](https://community.influxdata.com/t/composite-types-with-line-protocol/29196/2 "2023-03-24T17:46:21Z")

</div>

Hello @teclab,  
For line protocol you can only use the following types:

> **[Line protocol | InfluxDB Cloud (IOx) Documentation](https://docs.influxdata.com/influxdb/cloud-iox/reference/syntax/line-protocol/#data-types-and-format)**
>
> InfluxDB uses line protocol to write data points. It is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point.

Flux allows you to create composite types after ingest which is why you’re seeing that documentation. For example the function findColumn() would return an array, but you can’t write an array into influxDB.  
You’d have to split that field value into multiple fields or contain it all as a string.
