cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading Data into Databricks from CSV - Puts Amount column as a string

Ethn
New Contributor

I am attempting in ingesting data into databricks via CSV, with the following statement below, this brings in my data looking perfect:

Ethn_1-1696445292620.png

Although, the bad part is I have to group this data by summing highlighted amt field. Given it is string it spits out all kinds of nulls/0. I then try to change to integer I get the following, it seems as if any values with commas it nulls out (the sum should be displaying the amount of qty * UP): 

Ethn_4-1696445675049.png

What statements would be helpful in fixing my issue of being able to change this from string to integer without messing up any values?

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group