Home > other >  To the operation of the DataFrame spark
To the operation of the DataFrame spark

Time:09-22


Excuse me, when I was in the foreach traversal of df abnormal type conversion why

CodePudding user response:

GetAs return type is generic, you try val ABC: String=x.g etAs (" name ")

CodePudding user response:

reference 1st floor link0007 response:
getAs return type is a generic, you try val ABC: String=x.g etAs (" name ")


Thank you, add a String can indeed
  • Related