Package org.apache.spark.sql.errors
Class DataTypeErrors
Object
org.apache.spark.sql.errors.DataTypeErrors
Object for grouping error messages from (most) exceptions thrown during query execution. This
does not include exceptions thrown during the eager execution of commands, which are grouped
into
CompilationErrors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowableambiguousColumnOrFieldError(scala.collection.immutable.Seq<String> name, int numMatches, org.apache.spark.sql.catalyst.trees.Origin context) static Throwablestatic ArithmeticExceptioncannotChangeDecimalPrecisionError(Decimal value, int decimalPrecision, int decimalScale, QueryContext context) static ThrowablecannotLoadUserDefinedTypeError(String name, String userClass) static ThrowablecannotMergeDecimalTypesWithIncompatibleScaleError(int leftScale, int rightScale) static ThrowablecannotMergeIncompatibleDataTypesError(DataType left, DataType right) static ArithmeticExceptioncastingCauseOverflowError(String t, DataType from, DataType to) static Throwablestatic ThrowabledataTypeUnsupportedError(String dataType, String failure) static ThrowabledecimalCannotGreaterThanPrecisionError(int scale, int precision) static org.apache.spark.SparkArithmeticExceptiondecimalPrecisionExceedsMaxPrecisionError(int precision, int maxPrecision) static org.apache.spark.SparkRuntimeExceptionstatic org.apache.spark.SparkUnsupportedOperationExceptionfieldIndexOnRowWithoutSchemaError(String fieldName) static QueryContext[]getQueryContext(QueryContext context) static StringgetSummary(QueryContext sqlContext) static ThrowableinvalidDayTimeField(byte field, scala.collection.immutable.Seq<String> supportedIds) static ThrowableinvalidDayTimeIntervalType(String startFieldName, String endFieldName) static ThrowableinvalidFieldName(scala.collection.immutable.Seq<String> fieldName, scala.collection.immutable.Seq<String> path, org.apache.spark.sql.catalyst.trees.Origin context) static org.apache.spark.SparkNumberFormatExceptioninvalidInputInCastToNumberError(DataType to, org.apache.spark.unsafe.types.UTF8String s, QueryContext context) static ThrowableinvalidYearMonthField(byte field, scala.collection.immutable.Seq<String> supportedIds) static ThrowablenegativeScaleNotAllowedError(int scale) static ThrowablenotUserDefinedTypeError(String name, String userClass) static org.apache.spark.SparkUnsupportedOperationExceptionstatic org.apache.spark.SparkArithmeticExceptionoutOfDecimalTypeRangeError(org.apache.spark.unsafe.types.UTF8String str) static ThrowableschemaFailToParseError(String schema, Throwable e) static StringtoDSOption(String option) static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic StringtoSQLType(org.apache.spark.sql.types.AbstractDataType t) static StringtoSQLValue(double value) static StringtoSQLValue(float value) static StringtoSQLValue(int value) static StringtoSQLValue(long value) static StringtoSQLValue(short value) static StringtoSQLValue(String value) static StringtoSQLValue(org.apache.spark.unsafe.types.UTF8String value) static ArithmeticExceptionunscaledValueTooLargeForPrecisionError(Decimal value, int decimalPrecision, int decimalScale, QueryContext context) static org.apache.spark.SparkRuntimeExceptionunsupportedArrayTypeError(Class<?> clazz) static org.apache.spark.SparkRuntimeExceptionunsupportedJavaTypeError(Class<?> clazz) static org.apache.spark.SparkUnsupportedOperationExceptionstatic SparkExceptionunsupportedRoundingMode(scala.Enumeration.Value roundMode) static ThrowableuserSpecifiedSchemaUnsupportedError(String operation) static ThrowablevalueIsNullError(int index)
-
Constructor Details
-
DataTypeErrors
public DataTypeErrors()
-
-
Method Details
-
unsupportedOperationExceptionError
public static org.apache.spark.SparkUnsupportedOperationException unsupportedOperationExceptionError() -
decimalPrecisionExceedsMaxPrecisionError
public static org.apache.spark.SparkArithmeticException decimalPrecisionExceedsMaxPrecisionError(int precision, int maxPrecision) -
unsupportedRoundingMode
-
outOfDecimalTypeRangeError
public static org.apache.spark.SparkArithmeticException outOfDecimalTypeRangeError(org.apache.spark.unsafe.types.UTF8String str) -
unsupportedJavaTypeError
-
nullLiteralsCannotBeCastedError
public static org.apache.spark.SparkUnsupportedOperationException nullLiteralsCannotBeCastedError(String name) -
notUserDefinedTypeError
-
cannotLoadUserDefinedTypeError
-
unsupportedArrayTypeError
-
schemaFailToParseError
-
invalidDayTimeIntervalType
-
invalidDayTimeField
-
invalidYearMonthField
-
decimalCannotGreaterThanPrecisionError
-
negativeScaleNotAllowedError
-
attributeNameSyntaxError
-
cannotMergeIncompatibleDataTypesError
-
cannotMergeDecimalTypesWithIncompatibleScaleError
public static Throwable cannotMergeDecimalTypesWithIncompatibleScaleError(int leftScale, int rightScale) -
dataTypeUnsupportedError
-
invalidFieldName
-
unscaledValueTooLargeForPrecisionError
public static ArithmeticException unscaledValueTooLargeForPrecisionError(Decimal value, int decimalPrecision, int decimalScale, QueryContext context) -
cannotChangeDecimalPrecisionError
public static ArithmeticException cannotChangeDecimalPrecisionError(Decimal value, int decimalPrecision, int decimalScale, QueryContext context) -
invalidInputInCastToNumberError
public static org.apache.spark.SparkNumberFormatException invalidInputInCastToNumberError(DataType to, org.apache.spark.unsafe.types.UTF8String s, QueryContext context) -
ambiguousColumnOrFieldError
-
castingCauseOverflowError
-
failedParsingStructTypeError
-
fieldIndexOnRowWithoutSchemaError
public static org.apache.spark.SparkUnsupportedOperationException fieldIndexOnRowWithoutSchemaError(String fieldName) -
valueIsNullError
-
charOrVarcharTypeAsStringUnsupportedError
-
userSpecifiedSchemaUnsupportedError
-
toSQLId
-
toSQLId
-
toSQLStmt
-
toSQLConf
-
toSQLType
-
toSQLType
-
toSQLValue
-
toSQLValue
-
toSQLValue
-
toSQLValue
-
toSQLValue
-
toSQLValue
-
toSQLValue
-
getSummary
-
getQueryContext
-
toDSOption
-