We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f99c37 commit ce367cfCopy full SHA for ce367cf
src/main/java/com/sparkTutorial/sparkSql/StackOverFlowSurvey.java
@@ -61,5 +61,8 @@ public static void main(String[] args) throws Exception {
61
System.out.println("=== Group by salary bucket ===");
62
Dataset<Row> responseWithSalaryBucket = castedResponse.withColumn(SALARY_MIDPOINT_BUCKET, col(SALARY_MIDPOINT).divide(20000).cast("integer").multiply(20000));
63
responseWithSalaryBucket.groupBy(SALARY_MIDPOINT_BUCKET).count().orderBy(col(SALARY_MIDPOINT_BUCKET)).show();
64
+
65
66
+ session.stop();
67
}
68
0 commit comments