Re: Spark DF does not rename the column

2021-01-05 Thread Mich Talebzadeh
Yes many thanks German. Jayesh kindly reminded me about it. It is amazing how one at times one overlooks these typos and assumes more sophisticated investigation to the code not working. Mich LinkedIn * https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw

Re: Spark DF does not rename the column

2021-01-04 Thread German Schiavon
Hi, I think you have a typo : root |-- ceated: string (nullable = true) and then: withColumnRenamed("created","Date Calculated"). On Mon, 4 Jan 2021 at 19:12, Lalwani, Jayesh wrote: > You don’t have a column named “created”. The column name is “ceated”, > without the “r” > > > >

Re: Spark DF does not rename the column

2021-01-04 Thread Mich Talebzadeh
Thanks Jayesh for spotting that typo. Cheers Mich LinkedIn * https://www.linkedin.com/profile/view?id=AAEWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw * *Disclaimer:* Use it at your own risk. Any and all

Re: Spark DF does not rename the column

2021-01-04 Thread Lalwani, Jayesh
You don’t have a column named “created”. The column name is “ceated”, without the “r” From: Mich Talebzadeh Date: Monday, January 4, 2021 at 1:06 PM To: "user @spark" Subject: [EXTERNAL] Spark DF does not rename the column CAUTION: This email originated from outside of the organization. Do