# Google Sheet - How to override Matillion's column typecasting?

**URL:** <https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154>\
**Category:** Matillion ETL\
**Created:** [April 26, 2023, 12:32am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154 "2023-04-26T00:32:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [April 26, 2023, 12:32am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/1 "2023-04-26T00:32:41Z")

</div>

We are loading a Google Sheet from a client that has been shared to us.

A column in the data (Invoice Number) contains both numeric and alpha values.

The alpha values are after the first 100 rows.

Matillion is reading the metadata of the sheet and assigning a type of Integer to Invoice Number.

 ![0694G00000RrvC5QAJ_0D54G00009HtKvOSAV](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/b1228c9583802d10cff1df43edfd450e4e1c2c53.png)

How do we override the type Integer and assign a type string?

&nbsp;

Things I have tried:

1. I have tried to typecast in the SQL (Advanced mode) but can’t seem to get this to work.
2. I have tried creating a “static” stage table with a varchar Invoice Number column and turning off the ‘Recreate Target Table’ option in the Google Sheet component.
3. I have tried setting some Connection Options in the Google Sheet component to affect the API call (valuerenderoption).

&nbsp;

Any suggestions? Or is this an issue with the Google Sheet itself? Does the client need to set the column to “Text” explicitely?

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [April 26, 2023, 1:11am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/2 "2023-04-26T01:11:24Z")

</div>

SOLVED:

&nbsp;

Using a larger RowScanDepth in Connection Options has forced Matillion to compare more rows in the source data before assigning data types.

&nbsp;

 ![0694G00000RrvIrQAJ_0D74G000008yqs5SAA](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/998c5c41176516d5d82fa50bdd1c9da5a01c5fd3.png)

&nbsp;

 ![0694G00000RrvIwQAJ_0D74G000008yqs5SAA](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/e2468becd343cced317a1cc62d0a5787b9b956be.png)

---

<div class="post-metadata">

**Author:** ![bostjan.begelj](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@bostjan.begelj](https://matillioncommunity.discourse.group/u/bostjan.begelj)\
**Post date:** [February 9, 2024, 1:16pm UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/3 "2024-02-09T13:16:51Z")

</div>

Hi,

&nbsp;

Is there a solution for the same issue for Data Loader.

I can't find RowScanDepth parameter anywhere.

&nbsp;

Thanks, B

---

<div class="post-metadata">

**Author:** ![bostjan.begelj](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@bostjan.begelj](https://matillioncommunity.discourse.group/u/bostjan.begelj)\
**Post date:** [February 12, 2024, 7:26am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/4 "2024-02-12T07:26:12Z")

</div>

Hi.

I mean here:

 ![069Tm000002boxbIAA_0D7Tm000000UOzNKAW](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/036adf32d15af3be17d73af69fd6833d8a9ba52b.png)

These are the settings where I would expect the parameter:

 ![069Tm000002bqRVIAY_0D7Tm000000UOzNKAW](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/ac55555ce8fe13023148836c772e40852442f953.png)

&nbsp;

Thanks, B.

---

<div class="post-metadata">

**Author:** ![bostjan.begelj](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@bostjan.begelj](https://matillioncommunity.discourse.group/u/bostjan.begelj)\
**Post date:** [February 13, 2024, 6:54am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/5 "2024-02-13T06:54:20Z")

</div>

Yes, it is the Cloud version. I am new ti Matillion and didn't even know there are old and new (Cloud) versions :)

If I find a solution, I will post it here.

&nbsp;

All available parameters are hard predefined. These are the available options:

 ![069Tm000002e15tIAA_0D7Tm000000UwL7KAK](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/9e7064910222e381aae4120ea5cff6037bff8cbf.png)

 ![069Tm000002e1AjIAI_0D7Tm000000UwL7KAK](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/648a142d6579093dfcd3570af08fd464b4674c19.png)

 ![069Tm000002e1FZIAY_0D7Tm000000UwL7KAK](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/4b0acdae0ed6ae4e88865cf6b918461c7f41cd37.png)

---

<div class="post-metadata">

**Author:** ![bostjan.begelj](https://avatars.discourse-cdn.com/v4/letter/b/f04885/32.png) [@bostjan.begelj](https://matillioncommunity.discourse.group/u/bostjan.begelj)\
**Post date:** [February 20, 2024, 6:42am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/6 "2024-02-20T06:42:41Z")

</div>

I have contacted Matillion support, and they have added the missing parameter in Cloud Data Loader.

 ![069Tm000002p5KfIAI_0D7Tm000000XX8TKAW](https://us1.discourse-cdn.com/flex002/uploads/matillioncommunity/original/1X/567ad99f051e5af4ec20558e92c72cf6a036794d.png)

---

<div class="post-metadata">

**Author:** ![ClaireSeniorCommunityManager](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@ClaireSeniorCommunityManager](https://matillioncommunity.discourse.group/u/ClaireSeniorCommunityManager)\
**Post date:** [April 26, 2023, 10:57am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/7 "2023-04-26T10:57:59Z")

</div>

Hi there [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)​!

Thanks so much for sharing how you solved this, this will be super helpful to anyone else in the community who has the same question as you in the future.

Thanks again!

Claire

---

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [February 11, 2024, 10:30pm UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/8 "2024-02-11T22:30:54Z")

</div>

Hi - which component do you mean?

Data Transfer / Database Query?

&nbsp;

Not sure what you mean by Data Loader, sorry!

---

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [February 12, 2024, 10:27pm UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/9 "2024-02-12T22:27:56Z")

</div>

Ok I see, it looks like you are on the Cloud version. We are still in the Matillion ETL, non-cloud. They are quite different!

&nbsp;

I'm not familiar with the Data Loader in that case - but if you discover the answer please let me know!

---

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [February 13, 2024, 7:07am UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/10 "2024-02-13T07:07:48Z")

</div>

I see, in that case if the help documentation for the Data Loader doesn't mention it then maybe you should raise a ticket with Matillion and have them respond directly?

All the best!

---

<div class="post-metadata">

**Author:** ![SB699925](https://sea2.discourse-cdn.com/flex002/user_avatar/matillioncommunity.discourse.group/sb699925/32/1180_2.png) [@SB699925](https://matillioncommunity.discourse.group/u/SB699925)\
**Post date:** [February 12, 2024, 10:29pm UTC](https://matillioncommunity.discourse.group/t/google-sheet-how-to-override-matillions-column-typecasting/2154/11 "2024-02-12T22:29:04Z")

</div>

What if you enter the RowScanDepth as a connection parameter? Does that work? Can you enter free-text in the Parameter list or is that a hard-coded drop-down?
