skip to Main Content

Getting DATATYPE_MISMATCH.UNEXPECTED_INPUT_TYPE while working on a project in Databricks using Apache Spark

I am working on a project in Databricks using Apache Spark, I was doing some data manipulation, during which I encountered this error basically stating "DATATYPE_MISMATCH.UNEXPECTED_INPUT_TYPE". The code snippet is as follows: player_match_df = player_match_df.withColumn( "years_since_debut", (year(current_date()) - (col("season_year"))) )…

VIEW QUESTION
Back To Top
Search