Skip to content

Commit bb594cb

Browse files
committed
Docs: add comment for modulo UDF
(cherry picked from commit d2bb743) (cherry picked from commit f4ae4ad)
1 parent d9313e6 commit bb594cb

File tree

1 file changed

+2
-0
lines changed
  • spark-3.4/clickhouse-spark/src/main/scala/xenon/clickhouse/func/clickhouse

1 file changed

+2
-0
lines changed

spark-3.4/clickhouse-spark/src/main/scala/xenon/clickhouse/func/clickhouse/Mod.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ object Mod extends UnboundFunction with ScalarFunction[Long] with ClickhouseEqui
2626

2727
override def toString: String = name
2828

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

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

0 commit comments

Comments
 (0)