Aggregate Function AVG(expression)
The following program shows the query for this function −
Query
0: jdbc:drill:zk = local> select avg(mark1) from dfs.`/Users/../workspace/Drill-samples/student_list.json`;
Result
EXPR$0 69.0
Here, the output is the average result of mark1 column.
apache_drill_query_using_json.htm
Advertisements