@Override
    public Object parse(SourceData sourceData, int rowIndex, Context context) {
        Object arrayObj = arrayParser.parse(sourceData, rowIndex, context);
        if (arrayObj == null) {
            return null;
        }
        if (arrayObj instanceof ArrayList) {
            ArrayList<?> array = (ArrayList<?>) arrayObj;
            if (array.isEmpty()) {
                return null;
            }
            Set<Object> distinctSet = new LinkedHashSet<>(array);
            return new ArrayList<>(distinctSet);
        }
        return null;
    }
ArrayDistinctFunction  ->  ARRAY_DISTINCT(array)
description:
- Return NULL if 'array' is null
- Return an array with unique elements.
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/collection/ArrayDistinctFunction.java