layout: global title: INCOMPATIBLE_DATA_FOR_TABLE error class displayTitle: INCOMPATIBLE_DATA_FOR_TABLE error class license: | Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
SQLSTATE: KD000
Cannot write incompatible data for the table <tableName>:
This error class has the following derived error classes:
Ambiguous column name in the input data <colName>.
Cannot find data for the output column <colName>.
Cannot safely cast <colName> <srcType> to <targetType>.
Cannot write extra columns <extraColumns>.
Cannot write extra fields <extraFields> to the struct <colName>.
Cannot write nullable elements to array of non-nulls: <colName>.
Cannot write nullable values to non-null column <colName>.
Cannot write nullable values to map of non-nulls: <colName>.
Struct <colName> missing fields: <missingFields>.
Struct <colName> <order>-th field name does not match (may be out of order): expected <expected>, found <found>.