pyspark.errors.QueryContext#
- class pyspark.errors.QueryContext[source]#
- Query context of a - PySparkException. It helps users understand where error occur while executing queries.- New in version 4.0.0. - Methods - callSite()- The user code (call site of the API) that caused throwing the exception. - contextType()- The type of this query context. - fragment()- The corresponding fragment of the query which throws the exception. - objectName()- The object name of the query which throws the exception. - objectType()- The object type of the query which throws the exception. - startIndex()- The starting index in the query text which throws the exception. - stopIndex()- The stopping index in the query which throws the exception. - summary()- Summary of the exception cause.