@Override
    public Object parse(SourceData sourceData, int rowIndex, Context context) {
        Object stringObject = stringParser.parse(sourceData, rowIndex, context);
        if (stringObject == null) {
            return null;
        }
        try {
            Charset charset = DEFAULT_CHARSET;
            if (charsetParser != null) {
                Object charsetObj = charsetParser.parse(sourceData, rowIndex, context);
                if (charsetObj != null) {
                    charset = Charset.forName(OperatorTools.parseString(charsetObj));
                }
            }
            return OperatorTools.parseString(stringObject).getBytes(charset).length * 8;
        } catch (Exception e) {
            log.error("Analysis failed", e);
            return null;
        }
    }
BitLengthFunction  -> bit_length(string,[charset])
description:
- Return NULL if the string is NULL.
- Return number of bits in string.
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/string/BitLengthFunction.java