Packages

c

org.apache.spark.sql

AnalysisException

class AnalysisException extends Exception with SparkThrowable with Serializable with WithOrigin

Thrown when a query fails to analyze, usually because the query itself is invalid.

Annotations
@Stable()
Source
AnalysisException.scala
Since

1.3.0

Linear Supertypes
WithOrigin, SparkThrowable, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnalysisException
  2. WithOrigin
  3. SparkThrowable
  4. Exception
  5. Throwable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AnalysisException(errorClass: String, messageParameters: Map[String, String], origin: Origin, cause: Option[Throwable])
  2. new AnalysisException(errorClass: String, messageParameters: Map[String, String], origin: Origin)
  3. new AnalysisException(errorClass: String, messageParameters: Map[String, String])
  4. new AnalysisException(errorClass: String, messageParameters: Map[String, String], context: Array[QueryContext], summary: String)
  5. new AnalysisException(errorClass: String, sqlState: String, messageTemplate: String, messageParameters: Map[String, String], cause: Option[Throwable], message: Option[String])

    External constructor for callers that want to supply error fields directly, without requiring a local JSON definition for the error class.

    External constructor for callers that want to supply error fields directly, without requiring a local JSON definition for the error class.

    If message is provided (Some), it is used verbatim. Otherwise, the message is rendered from (errorClass, sqlState, messageTemplate, messageParameters).

    messageTemplate is always persisted into the exception so clients can read it via SparkThrowable.getDefaultMessageTemplate().

  6. new AnalysisException(errorClass: String, messageParameters: Map[String, String], context: Array[QueryContext], cause: Option[Throwable])
  7. new AnalysisException(errorClass: String, messageParameters: Map[String, String], cause: Option[Throwable])
  8. new AnalysisException(message: String, line: Option[Int], startPosition: Option[Int], cause: Option[Throwable], errorClass: Option[String], messageParameters: Map[String, String], context: Array[QueryContext])
  9. new AnalysisException(message: String, line: Option[Int] = None, startPosition: Option[Int] = None, cause: Option[Throwable] = None, errorClass: Option[String] = None, messageParameters: Map[String, String] = Map.empty, context: Array[QueryContext] = Array.empty, sqlState: Option[String] = None, messageTemplate: Option[String] = None)
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val cause: Option[Throwable]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. val context: Array[QueryContext]
  9. def copy(message: String = this.message, line: Option[Int] = this.line, startPosition: Option[Int] = this.startPosition, cause: Option[Throwable] = this.cause, errorClass: Option[String] = this.errorClass, messageParameters: Map[String, String] = this.messageParameters, context: Array[QueryContext] = this.context, sqlState: Option[String] = this.sqlState, messageTemplate: Option[String] = this.messageTemplate): AnalysisException
  10. def copy(message: String, line: Option[Int], startPosition: Option[Int], cause: Option[Throwable], errorClass: Option[String], messageParameters: Map[String, String], context: Array[QueryContext]): AnalysisException
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. val errorClass: Option[String]
  14. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  15. def getBreakingChangeInfo(): BreakingChangeInfo
    Definition Classes
    SparkThrowable
  16. def getCause(): Throwable
    Definition Classes
    Throwable
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def getCondition(): String

    Succinct, human-readable, unique, and consistent representation of the error condition.

    Succinct, human-readable, unique, and consistent representation of the error condition. If null, error condition is not set.

    Definition Classes
    AnalysisExceptionSparkThrowable
  19. def getDefaultMessageTemplate(): String

    Returns the default message template for this error.

    Returns the default message template for this error.

    The template is a machine-readable string with placeholders to be filled by getMessageParameters().

    This is the default template known to Spark, but clients are free to generate their own messages (e.g., translations, alternate formats) using the provided error metadata.

    returns

    the default message template for this error, or null if unavailable

    Definition Classes
    AnalysisExceptionSparkThrowable
  20. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  21. def getMessage(): String
    Definition Classes
    AnalysisException → Throwable
  22. def getMessageParameters(): Map[String, String]
    Definition Classes
    AnalysisExceptionSparkThrowable
  23. def getQueryContext(): Array[QueryContext]
    Definition Classes
    AnalysisExceptionSparkThrowable
  24. def getSimpleMessage: String
  25. def getSqlState(): String
    Definition Classes
    AnalysisExceptionSparkThrowable
  26. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  27. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  29. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def isInternalError(): Boolean
    Definition Classes
    SparkThrowable
  32. val line: Option[Int]
  33. val message: String
  34. val messageParameters: Map[String, String]
  35. val messageTemplate: Option[String]
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  39. lazy val origin: Origin
    Definition Classes
    AnalysisException → WithOrigin
  40. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  41. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  42. def printStackTrace(): Unit
    Definition Classes
    Throwable
  43. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  44. val sqlState: Option[String]
  45. val startPosition: Option[Int]
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. def withPosition(origin: Origin): AnalysisException

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def getErrorClass(): String

    Succinct, human-readable, unique, and consistent representation of the error category.

    Succinct, human-readable, unique, and consistent representation of the error category. If null, error class is not set.

    Definition Classes
    SparkThrowable
    Annotations
    @Deprecated
    Deprecated

Inherited from WithOrigin

Inherited from SparkThrowable

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped