DATATYPE | 您所在的位置:网站首页 › sql错误1225 › DATATYPE |
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_TYPESInput to should have been followed by a value with same element type, but it’s [, ]. BINARY_ARRAY_DIFF_TYPESInput to function should have been two with same element type, but it’s [, ]. BINARY_OP_DIFF_TYPESthe left and right operands of the binary operator have incompatible types ( and ). BINARY_OP_WRONG_TYPEthe binary operator requires the input type , not . BLOOM_FILTER_BINARY_OP_WRONG_TYPEThe Bloom filter binary input to should be either a constant value or a scalar subquery expression, but it’s . BLOOM_FILTER_WRONG_TYPEInput to function should have been followed by value with , but it’s []. CANNOT_CONVERT_TO_JSONUnable to convert column of type to JSON. CANNOT_DROP_ALL_FIELDSCannot drop all fields in struct. CAST_WITHOUT_SUGGESTIONcannot cast to . CAST_WITH_CONF_SUGGESTIONcannot cast to with ANSI mode on. If you have to cast to , you can set as . CAST_WITH_FUNC_SUGGESTIONcannot cast to . To convert values from to , you can use the functions instead. CREATE_MAP_KEY_DIFF_TYPESThe given keys of function should all be the same type, but they are . CREATE_MAP_VALUE_DIFF_TYPESThe given values of function should all be the same type, but they are . CREATE_NAMED_STRUCT_WITHOUT_FOLDABLE_STRINGOnly foldable STRING expressions are allowed to appear at odd position, but they are . DATA_DIFF_TYPESInput to should all be the same type, but it’s . FILTER_NOT_BOOLEANFilter expression of type is not a boolean. HASH_MAP_TYPEInput 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_ONELength of should be 1. INVALID_ARG_VALUEThe value must to be a literal of , but got . INVALID_JSON_MAP_KEY_TYPEInput schema can only contain STRING as a key type for a MAP. INVALID_JSON_SCHEMAInput schema must be a struct, an array or a map. INVALID_MAP_KEY_TYPEThe key of map cannot be/contain . INVALID_ORDERING_TYPEThe does not support ordering on type . IN_SUBQUERY_DATA_TYPE_MISMATCHThe 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_MISMATCHThe 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_TYPESThe should all be of type map, but it’s . MAP_FUNCTION_DIFF_TYPESInput to should have been followed by a value with same key type, but it’s [, ]. MAP_ZIP_WITH_DIFF_TYPESInput to the should have been two maps with compatible key types, but it’s [, ]. NON_FOLDABLE_INPUTthe input should be a foldable expression; however, got . NON_STRING_TYPEall arguments must be strings. NULL_TYPENull typed values cannot be used as arguments of . PARAMETER_CONSTRAINT_VIOLATIONThe () must be the (). RANGE_FRAME_INVALID_TYPEThe data type used in the order specification does not match the data type which is used in the range frame. RANGE_FRAME_MULTI_ORDERA range window frame with value boundaries cannot be used in a window specification with multiple order by expressions: . RANGE_FRAME_WITHOUT_ORDERA range window frame cannot be used in an unordered window specification. SEQUENCE_WRONG_INPUT_TYPESuses 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_TYPESWindow frame bounds and do not have the same type: . SPECIFIED_WINDOW_FRAME_INVALID_BOUNDWindow frame upper bound does not follow the lower bound . SPECIFIED_WINDOW_FRAME_UNACCEPTED_TYPEThe data type of the bound does not match the expected data type . SPECIFIED_WINDOW_FRAME_WITHOUT_FOLDABLEWindow frame bound is not a literal. SPECIFIED_WINDOW_FRAME_WRONG_COMPARISONThe lower bound of a window frame must be to the upper bound. STACK_COLUMN_DIFF_TYPESThe data type of the column () do not have the same type: () (). UNEXPECTED_CLASS_TYPEclass not found. UNEXPECTED_INPUT_TYPEParameter requires the type, however has the type . UNEXPECTED_NULLThe must not be null. UNEXPECTED_RETURN_TYPEThe requires return type, but the actual is type. UNEXPECTED_STATIC_METHODcannot find a static method that matches the argument types in . UNSUPPORTED_INPUT_TYPEThe input of can’t be type data. VALUE_OUT_OF_RANGEThe must be between (current value = ). WRONG_NUM_ENDPOINTSThe number of endpoints must be >= 2 to construct intervals but the actual number is . |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |