Skip to content

Commit c1c7459

Browse files
authored
feat: Add div operator for fuzz testing and update expression doc (#1464)
1 parent 1160914 commit c1c7459

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docs/source/user-guide/expressions.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ The following Spark expressions are currently available. Any known compatibility
3535

3636
## Binary Arithmetic
3737

38-
| Expression | Notes |
39-
| --------------- | ----- |
40-
| Add (`+`) | |
41-
| Subtract (`-`) | |
42-
| Multiply (`*`) | |
43-
| Divide (`/`) | |
44-
| Remainder (`%`) | |
38+
| Expression | Notes |
39+
|------------------------| ----- |
40+
| Add (`+`) | |
41+
| Subtract (`-`) | |
42+
| Multiply (`*`) | |
43+
| Divide (`/`) | |
44+
| IntegralDivide (`div`) | |
45+
| Remainder (`%`) | |
4546

4647
## Conditional Expressions
4748

fuzz-testing/src/main/scala/org/apache/comet/fuzz/Meta.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ object Meta {
132132

133133
val unaryArithmeticOps: Seq[String] = Seq("+", "-")
134134

135-
val binaryArithmeticOps: Seq[String] = Seq("+", "-", "*", "/", "%", "&", "|", "^", "<<", ">>")
135+
val binaryArithmeticOps: Seq[String] =
136+
Seq("+", "-", "*", "/", "%", "&", "|", "^", "<<", ">>", "div")
136137

137138
val comparisonOps: Seq[String] = Seq("=", "<=>", ">", ">=", "<", "<=")
138139

0 commit comments

Comments
 (0)