Ask for advice
CodePudding user response:
SparkSession spark=XXXX
Row Row=spark. SQL (" SELECT Max (XXX) FROM XXX "), head ()
The Integer I=(int) row. GetLong (0)
CodePudding user response:
SparkSession spark=XXXX
Row Row=spark. SQL (" SELECT Max (XXX) FROM XXX "), head ()
The Integer I=(int) row. GetLong (0)