cloud-fan commented on code in PR #37841:
URL: https://github.com/apache/spark/pull/37841#discussion_r966744144
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/AnalysisException.scala:
##########
@@ -124,12 +126,16 @@ class AnalysisException protected[sql] (
plan: Option[LogicalPlan] = this.plan,
cause: Option[Throwable] = this.cause,
errorClass: Option[String] = this.errorClass,
- messageParameters: Array[String] = this.messageParameters):
AnalysisException =
+ messageParameters: Array[String] = this.messageParameters,
+ context: Array[QueryContext] = Array.empty): AnalysisException =
new AnalysisException(message, line, startPosition, plan, cause,
errorClass, errorSubClass,
- messageParameters)
+ messageParameters, context)
- def withPosition(line: Option[Int], startPosition: Option[Int]):
AnalysisException = {
- val newException = this.copy(line = line, startPosition = startPosition)
+ def withPosition(origin: Origin): AnalysisException = {
+ val newException = this.copy(
+ line = origin.line,
+ startPosition = origin.startPosition,
Review Comment:
oh we still need them, for errors without error classes.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]