I have a dataset with schema ( case class GuestHits ( val LOCATION:String ,
val TIMESTAMP_DT:String ,
val DEVICE_ID:String ,
val SERVICE:String ,
val HOSTNAME:String ,
val URL:String ,
val DST:String ,
val DST_PORT:String ,
val RCVD:String ,
val SENT:String ))
I need to convert column HOSTNAME into upper case if URL matches with "some string".
Tried "when otherwise" function also "translate" func but none of them is working . Please help if anybody knows.