Answer by karthik manchala for How to covert dataframe datatypes to String?
You can do the following:df.withColumn("c_date", df.col("c_date").cast(StringType))
View ArticleAnswer by ROOT for How to covert dataframe datatypes to String?
In scala, we generally cast datatypes like this:df.select($"date".cast(StringType).as("new_date"))
View ArticleHow to covert dataframe datatypes to String?
I have a hive Table having Date and Timestamp datatypes. I am creating DataFrame using below java code:SparkConf conf = new...
View Article
More Pages to Explore .....