@Override
        public HadoopPathBasedPendingFileRecoverable deserialize(int version, byte[] serialized) throws IOException {
            switch (version) {
                case 1:
                    return deserializeV1(serialized);
                case 2:
                    return deserializeV2(serialized);
                default:
                    throw new IOException("Unrecognized version or corrupt state: " + version);
            }
        }
check if source table schema changes

@param identifier hive database name and table name
@param writerFactory hive writer factory
@param schema hive field with flink types
@return if schema has changed
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/hive/src/main/java/org/apache/inlong/sort/hive/filesystem/HadoopPathBasedPartFileWriter.java