JLSy
New Contributor III

I have tried specifying the schema and assigning the following mapping to each column type:

  • string - StringType()
  • date - DateType()
  • double - DoubleType()
  • bigint - LongType()
  • int - LongType()
  • decimal(20,2) - LongType()

I have also tried using other spark types for the decimal(20,2), int, bigint, and double columns, however, the error still persists.