File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed
docs/source/user-guide/latest
fuzz-testing/src/main/scala/org/apache/comet/fuzz
main/scala/org/apache/comet/serde
test/scala/org/apache/comet Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ incompatible expressions.
128128| BRound | ` bround ` | Yes | |
129129| Ceil | ` ceil ` | Yes | |
130130| Cos | ` cos ` | Yes | |
131+ | Cot | ` cot ` | Yes | |
131132| Divide | ` / ` | Yes | |
132133| Exp | ` exp ` | Yes | |
133134| Expm1 | ` expm1 ` | Yes | |
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ object Meta {
114114 createUnaryNumericFunction(" sin" ),
115115 createUnaryNumericFunction(" sqrt" ),
116116 createUnaryNumericFunction(" tan" ),
117+ createUnaryNumericFunction(" cot" ),
117118 createUnaryNumericFunction(" ceil" ),
118119 createUnaryNumericFunction(" floor" ),
119120 createFunctionWithInputTypes(" unary_minus" , Seq (SparkNumericType )))
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ object QueryPlanSerde extends Logging with CometExprShim {
115115 classOf [Sqrt ] -> CometScalarFunction (" sqrt" ),
116116 classOf [Subtract ] -> CometSubtract ,
117117 classOf [Tan ] -> CometScalarFunction (" tan" ),
118+ classOf [Cot ] -> CometScalarFunction (" cot" ),
118119 classOf [UnaryMinus ] -> CometUnaryMinus ,
119120 classOf [Unhex ] -> CometUnhex ,
120121 classOf [Abs ] -> CometAbs )
Original file line number Diff line number Diff line change @@ -1352,7 +1352,8 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
13521352 " log2" ,
13531353 " sin" ,
13541354 " sqrt" ,
1355- " tan" )) {
1355+ " tan" ,
1356+ " cot" )) {
13561357 val (_, cometPlan) =
13571358 checkSparkAnswerAndOperatorWithTol(sql(s " SELECT $expr(_1), $expr(_2) FROM tbl " ))
13581359 val cometProjectExecs = collect(cometPlan) { case op : CometProjectExec =>
You can’t perform that action at this time.
0 commit comments