public static boolean isConfigOptionTrue()

in flink-vvp-connector-adbpg/src/main/java/org/apache/flink/connector/jdbc/table/utils/AdbpgOptions.java [244:259]


    public static boolean isConfigOptionTrue(ReadableConfig readableConfig, ConfigOption<Integer> target) {
        switch (readableConfig.get(target).toString().toLowerCase()) {
            case "0":
            case "false":
                return false;
            case "1":
            case "true":
                return true;
            default:
                throw new IllegalArgumentException(
                        String.format(
                                "Invalid value for config %s : %s",
                                target.key(),
                                readableConfig.get(target)));
        }
    }