public static StringJoiner csvFormatForLabels(Map<String, String> labels, StringJoiner result) {
        if (labels == null || labels.isEmpty()) {
            return result;
        }
        for (Entry<String, String> kv : labels.entrySet()) {
            result.add(kv.getValue() != null ? kv.getValue() : NULL_VALUE);
        }
        return result;
    }
Csv format for labels

@param labels The labels of dirty sink
@param result The result that store the value after format
@return The value after format
inlong-sort/sort-flink/base/src/main/java/org/apache/inlong/sort/base/dirty/utils/FormatUtils.java