You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/07/29 12:13:25 UTC
[GitHub] [spark] MaxGekk commented on a diff in pull request #37343: [SPARK-39923][SQL] Put QueryContext to array instead of Option
MaxGekk commented on code in PR #37343:
URL: https://github.com/apache/spark/pull/37343#discussion_r933177384
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala:
##########
@@ -288,7 +288,7 @@ abstract class BinaryArithmetic extends BinaryOperator
val errorContextCode = if (failOnError) {
ctx.addReferenceObj("errCtx", queryContext)
} else {
- "scala.None$.MODULE$"
+ "new org.apache.spark.sql.catalyst.trees.SQLQueryContext[0]"
Review Comment:
I think of to replace it by:
```java
new ${classOf[SQLQueryContext].getCanonicalName}[0]
```
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org