Pular para o conteúdo principal

STATE_STORE_KEY_SCHEMA_NOT_COMPATIBLE error condition

SQLSTATE: 42000

The provided key schema does not match existing schema in operator state. Existing schema=<storedKeySchema>; provided schema=<newKeySchema>. To run the query without schema validation, set spark.sql.streaming.stateStore.stateSchemaCheck to false. Note that running without schema validation can have non-deterministic behavior.

FIELDS_REORDERED

The key schema fields have been reordered. Reordering fields in the key schema is not allowed.

FIELD_ADDED

New field(s) <addedFields> found in the key schema. Adding fields to the key schema is not allowed.

FIELD_REMOVED

Field(s) <removedFields> missing from the key schema. Removing fields from the key schema is not allowed.

NULLABILITY_CHANGED

Nullability of field(s) <changedFields> in the key schema has changed. Changing nullability of key fields is not allowed.

TYPE_CHANGED

Type of field(s) <changedFields> in the key schema has changed. Changing types of key fields is not allowed.

UNKNOWN_INCOMPATIBILITY

The key schema has changed in an incompatible way.