Skip to content

Commit

Permalink
feat: Collection functions (#64) (PR #109)
Browse files Browse the repository at this point in the history
* feat: Collection functions (#64)

* fix map testing & add map tests

* doc & refactor: todo scaladoc link (issue #135)

Co-authored-by: Eduardo Ruiz <[email protected]>
  • Loading branch information
eruizalo and eruizalo authored Jan 24, 2022
1 parent dc2cab0 commit 75f91dd
Show file tree
Hide file tree
Showing 17 changed files with 1,586 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- name: Test & coverage # TODO running tests twice
- name: Test & coverage
run: sbt coverage core/test coverageReport coverageAggregate
- uses: codecov/codecov-action@v2
with:
Expand Down
13 changes: 0 additions & 13 deletions core/src/main/scala/doric/sem/AggregationOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ private[sem] trait AggregationOps
* @example {{{
* // Compute the average for all numeric columns cubed by department and group.
* ds.cube("department".cname, "group".cname).avg()
*
* // Compute the max age and average salary, cubed by department and gender.
* ds.cube("department".cname, "gender".cname).agg(Map(
* "salary" -> "avg",
* "age" -> "max"
* ))
* }}}
* @see [[doric.doc.DRelationalGroupedDataset]] for all the available aggregate functions.
* @see [[org.apache.spark.sql.Dataset.cube(col1:* org.apache.spark.sql.Dataset.cube]]
Expand Down Expand Up @@ -91,14 +85,7 @@ private[sem] trait AggregationOps
* @example {{{
* // Compute the average for all numeric columns rolled up by department and group.
* ds.rollup("department".cname, "group".cname).avg()
*
* // Compute the max age and average salary, rolled up by department and gender.
* ds.rollup("department".cname, "gender".cname).agg(Map(
* "salary" -> "avg",
* "age" -> "max"
* ))
* }}}
* @todo this example is not from doric
* @see [[doric.doc.DRelationalGroupedDataset]] for all the available aggregate functions.
* @see [[org.apache.spark.sql.Dataset.rollup(col1:* org.apache.spark.sql.Dataset.rollup]]
* @group Group Dataframe operation
Expand Down
Loading

0 comments on commit 75f91dd

Please sign in to comment.