Skip to content

Commit

Permalink
Docs: add comment for modulo UDF
Browse files Browse the repository at this point in the history
(cherry picked from commit d2bb743)
(cherry picked from commit f4ae4ad)
  • Loading branch information
Yxang committed Jul 24, 2023
1 parent d9313e6 commit bb594cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ object Mod extends UnboundFunction with ScalarFunction[Long] with ClickhouseEqui

override def toString: String = name

// remainder is not a Clickhouse function, but modulo will be parsed to remainder in the connector.
// Added remainder as a synonym.
override val ckFuncNames: Array[String] = Array("modulo", "remainder")

override def description: String = s"$name: (a: long, b: long) => mod: long"
Expand Down

0 comments on commit bb594cb

Please sign in to comment.