I created a dataframe in spark when find the max date I want to save it to the variable. Just trying to figure out how to get the result, which is a string, and save it to a variable.
code so far:
sqlDF = spark.sql("SELECT MAX(date) FROM account")
sqlDF.show()
what results look likes:
+--------------------+
| max(date)|
+--------------------+
|2018-04-19T14:11:...|
+--------------------+
thanks