Class QueryOrigin
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
param: language The language used by the user to define the query. param: filePath Path to the file of the user code that defines the query. param: sqlText The SQL text of the query. param: line The line number of the query in the user code. Line numbers are 1-indexed. param: startPosition The start position of the query in the user code. param: objectType The type of the object that the query is associated with. (Table, View, etc) param: objectName The name of the object that the query is associated with.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOrigin
empty()
An empty QueryOrigin without any provenance information.scala.Option<String>
filePath()
static scala.Option<QueryOrigin>
Returns theQueryOrigin
stored as a suppressed exception in the given throwable.scala.Option<Language>
language()
scala.Option<Object>
line()
static org.apache.spark.internal.Logging.LogStringContext
LogStringContext
(scala.StringContext sc) merge
(org.apache.spark.sql.catalyst.trees.Origin other) Merge values from the catalyst origin.merge
(QueryOrigin other) Merges this origin with another one.scala.Option<String>
scala.Option<String>
static org.slf4j.Logger
static void
org$apache$spark$internal$Logging$$log__$eq
(org.slf4j.Logger x$1) scala.Option<String>
sqlText()
scala.Option<Object>
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
QueryOrigin
-
-
Method Details
-
empty
An empty QueryOrigin without any provenance information. -
getOrigin
Returns theQueryOrigin
stored as a suppressed exception in the given throwable.- Parameters:
t
- (undocumented)- Returns:
- Some(origin) if the origin is recorded as part of the given throwable,
None
otherwise.
-
org$apache$spark$internal$Logging$$log_
public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_() -
org$apache$spark$internal$Logging$$log__$eq
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) -
LogStringContext
public static org.apache.spark.internal.Logging.LogStringContext LogStringContext(scala.StringContext sc) -
language
-
filePath
-
sqlText
-
line
-
startPosition
-
objectType
-
objectName
-
merge
Merges this origin with another one.The result has fields set to the value in the other origin if it is defined, or if not, then the value in this origin.
- Parameters:
other
- (undocumented)- Returns:
- (undocumented)
-
merge
Merge values from the catalyst origin.The result has fields set to the value in the other origin if it is defined, or if not, then the value in this origin.
- Parameters:
other
- (undocumented)- Returns:
- (undocumented)
-