DATATYPE 您所在的位置:网站首页 sql错误1225 DATATYPE

DATATYPE

2023-04-14 12:01| 来源: 网络整理| 查看: 265

DATATYPE_MISMATCH error class

SQLSTATE: 42K09

Cannot resolve due to data type mismatch:

This error class has the following derived error classes:

ARRAY_FUNCTION_DIFF_TYPES

Input to should have been followed by a value with same element type, but it’s [, ].

BINARY_ARRAY_DIFF_TYPES

Input to function should have been two with same element type, but it’s [, ].

BINARY_OP_DIFF_TYPES

the left and right operands of the binary operator have incompatible types ( and ).

BINARY_OP_WRONG_TYPE

the binary operator requires the input type , not .

BLOOM_FILTER_BINARY_OP_WRONG_TYPE

The Bloom filter binary input to should be either a constant value or a scalar subquery expression, but it’s .

BLOOM_FILTER_WRONG_TYPE

Input to function should have been followed by value with , but it’s [].

CANNOT_CONVERT_TO_JSON

Unable to convert column of type to JSON.

CANNOT_DROP_ALL_FIELDS

Cannot drop all fields in struct.

CAST_WITHOUT_SUGGESTION

cannot cast to .

CAST_WITH_CONF_SUGGESTION

cannot cast to with ANSI mode on.

If you have to cast to , you can set as .

CAST_WITH_FUNC_SUGGESTION

cannot cast to .

To convert values from to , you can use the functions instead.

CREATE_MAP_KEY_DIFF_TYPES

The given keys of function should all be the same type, but they are .

CREATE_MAP_VALUE_DIFF_TYPES

The given values of function should all be the same type, but they are .

CREATE_NAMED_STRUCT_WITHOUT_FOLDABLE_STRING

Only foldable STRING expressions are allowed to appear at odd position, but they are .

DATA_DIFF_TYPES

Input to should all be the same type, but it’s .

FILTER_NOT_BOOLEAN

Filter expression of type is not a boolean.

HASH_MAP_TYPE

Input to the function cannot contain elements of the “MAP” type. In Spark, same maps may have different hashcode, thus hash expressions are prohibited on “MAP” elements. To restore previous behavior set “spark.sql.legacy.allowHashOnMapType” to “true”.

INPUT_SIZE_NOT_ONE

Length of should be 1.

INVALID_ARG_VALUE

The value must to be a literal of , but got .

INVALID_JSON_MAP_KEY_TYPE

Input schema can only contain STRING as a key type for a MAP.

INVALID_JSON_SCHEMA

Input schema must be a struct, an array or a map.

INVALID_MAP_KEY_TYPE

The key of map cannot be/contain .

INVALID_ORDERING_TYPE

The does not support ordering on type .

IN_SUBQUERY_DATA_TYPE_MISMATCH

The data type of one or more elements in the left hand side of an IN subquery is not compatible with the data type of the output of the subquery. Mismatched columns: [], left side: [], right side: [].

IN_SUBQUERY_LENGTH_MISMATCH

The number of columns in the left hand side of an IN subquery does not match the number of columns in the output of subquery. Left hand side columns(length: ): [], right hand side columns(length: ): [].

MAP_CONCAT_DIFF_TYPES

The should all be of type map, but it’s .

MAP_FUNCTION_DIFF_TYPES

Input to should have been followed by a value with same key type, but it’s [, ].

MAP_ZIP_WITH_DIFF_TYPES

Input to the should have been two maps with compatible key types, but it’s [, ].

NON_FOLDABLE_INPUT

the input should be a foldable expression; however, got .

NON_STRING_TYPE

all arguments must be strings.

NULL_TYPE

Null typed values cannot be used as arguments of .

PARAMETER_CONSTRAINT_VIOLATION

The () must be the ().

RANGE_FRAME_INVALID_TYPE

The data type used in the order specification does not match the data type which is used in the range frame.

RANGE_FRAME_MULTI_ORDER

A range window frame with value boundaries cannot be used in a window specification with multiple order by expressions: .

RANGE_FRAME_WITHOUT_ORDER

A range window frame cannot be used in an unordered window specification.

SEQUENCE_WRONG_INPUT_TYPES

uses the wrong parameter type. The parameter type must conform to:

The start and stop expressions must resolve to the same type.

If start and stop expressions resolve to the type, then the step expression must resolve to the type.

Otherwise, if start and stop expressions resolve to the type, then the step expression must resolve to the same type.

SPECIFIED_WINDOW_FRAME_DIFF_TYPES

Window frame bounds and do not have the same type: .

SPECIFIED_WINDOW_FRAME_INVALID_BOUND

Window frame upper bound does not follow the lower bound .

SPECIFIED_WINDOW_FRAME_UNACCEPTED_TYPE

The data type of the bound does not match the expected data type .

SPECIFIED_WINDOW_FRAME_WITHOUT_FOLDABLE

Window frame bound is not a literal.

SPECIFIED_WINDOW_FRAME_WRONG_COMPARISON

The lower bound of a window frame must be to the upper bound.

STACK_COLUMN_DIFF_TYPES

The data type of the column () do not have the same type: () ().

UNEXPECTED_CLASS_TYPE

class not found.

UNEXPECTED_INPUT_TYPE

Parameter requires the type, however has the type .

UNEXPECTED_NULL

The must not be null.

UNEXPECTED_RETURN_TYPE

The requires return type, but the actual is type.

UNEXPECTED_STATIC_METHOD

cannot find a static method that matches the argument types in .

UNSUPPORTED_INPUT_TYPE

The input of can’t be type data.

VALUE_OUT_OF_RANGE

The must be between (current value = ).

WRONG_NUM_ENDPOINTS

The number of endpoints must be >= 2 to construct intervals but the actual number is .



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有