Aggregate Function SUM(expression)



The following program shows the query for this function −

Query

0: jdbc:drill:zk = local> select sum(mark1) from dfs.`/Users/../workspace/Drill-samples/student_list.json`;

Result

EXPR$0
690

Here mark1 column values are summed and then returns the result as 690.

apache_drill_query_using_json.htm
Advertisements