# Force field type

**URL:** <https://discuss.elastic.co/t/force-field-type/354342>\
**Category:** Elasticsearch\
**Created:** [February 28, 2024, 12:38pm UTC](https://discuss.elastic.co/t/force-field-type/354342 "2024-02-28T12:38:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goncalobsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goncalobsantos/32/50118_2.png) [@goncalobsantos](https://discuss.elastic.co/u/goncalobsantos)\
**Post date:** [February 28, 2024, 12:38pm UTC](https://discuss.elastic.co/t/force-field-type/354342/1 "2024-02-28T12:38:02Z")

</div>

I'm using the SQL integration to get the rows in a table as documents in an index/datastream.  
The column _phone\_number_ in the table is mapped to a field _metrics.sql.phone\_number_ that is automatically assigned the type _number_.  
How can override this assignment and assign the type _string_ to the field metrics.sql.phone\_number?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2024, 12:38pm UTC](https://discuss.elastic.co/t/force-field-type/354342/2 "2024-03-27T12:38:21Z")

</div>

Closed on March 27, 2024, 12:38pm UTC

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