Home > other >  Java version sparksql calculate a Max value to use Java int save it
Java version sparksql calculate a Max value to use Java int save it

Time:09-18

Java version oh
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)
  • Related