cloud-fan commented on code in PR #47304:
URL: https://github.com/apache/spark/pull/47304#discussion_r1674212819


##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisErrorSuite.scala:
##########
@@ -90,6 +91,24 @@ case class TestFunctionWithTypeCheckFailure(
 
 case class UnresolvedTestPlan() extends UnresolvedLeafNode
 
+case class NonDeterministicExpression() extends LeafExpression with 
Nondeterministic {
+  override protected def initializeInternal(partitionIndex: Int): Unit = {}
+  override protected def evalInternal(input: InternalRow): Any = 0
+  override def nullable: Boolean = true
+  override protected def doGenCode(ctx: CodegenContext, ev: ExprCode): 
ExprCode = ev
+  override def dataType: DataType = LongType
+}
+
+case class AllowsNonDeterministicExpressionTestOperator(actions: 
Seq[Expression],
+                                                        
tolerateNonDeterministicExpression: Boolean)

Review Comment:
   ```suggestion
   case class AllowsNonDeterministicExpressionTestOperator(
       actions: Seq[Expression],
       tolerateNonDeterministicExpression: Boolean)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to