Skip to content

Commit

Permalink
feat: String functions resolves hablapps#71
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Sep 20, 2021
1 parent 21bc687 commit 12d22f9
Show file tree
Hide file tree
Showing 8 changed files with 1,597 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Type-safe columns for DataFrames!
![Maven Central](https://img.shields.io/maven-central/v/org.hablapps/doric_2.12)

Doric offers type-safety in DataFrame column expressions at a minimum
cost, without compromising performace. In particular, doric allows you
cost, without compromising performance. In particular, doric allows you
to:

* Get rid of malformed column expressions at compile time
Expand Down
12 changes: 11 additions & 1 deletion src/main/scala/doric/syntax/CommonColumns.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,21 @@ trait CommonColumns extends ColGetters[DoricColumn] {
* @param other
* the column to compare
* @return
* a reference to a Boolean DoricColumn whit the comparation
* a reference to a Boolean DoricColumn with the comparation
*/
def ===(other: DoricColumn[T]): BooleanColumn =
(column.elem, other.elem).mapN(_ === _).toDC

/**
* Type safe distinct between Columns
* @param other
* the column to compare
* @return
* a reference to a Boolean DoricColumn with the comparation
*/
def =!=(other: DoricColumn[T]): BooleanColumn =
(column.elem, other.elem).mapN(_ =!= _).toDC

/**
* Pipes the column with the provided transformation
* @param f
Expand Down
Loading

0 comments on commit 12d22f9

Please sign in to comment.