public static int getMetaFieldIndex(TableSchema tableSchema) {
        RowType rowType = (RowType) tableSchema.toRowDataType().getLogicalType();
        List<RowField> fields = rowType.getFields();
        int metaFieldIndex = DEFAULT_META_INDEX;
        for (int i = 0; i < fields.size(); i++) {
            RowType.RowField rowField = fields.get(i);
            if (META_INCREMENTAL.equals(rowField.getName())) {
                metaFieldIndex = i;
                break;
            }
        }
        return metaFieldIndex;
    }
get incremental field index
@param tableSchema input table schema
@return incremental field index
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/iceberg/src/main/java/org/apache/inlong/sort/iceberg/schema/IcebergModeSwitchHelper.java