I am trying to convert a column data type from long to int in spark sql using java, I have seen some of example in scala and trying out but, Its not wotking
df.withColumn("is_open", toInt("is_open"));
where do I need to change. thanks in advance
df.withColumn("is_open", col("is_open").cast("int"))?