@Override
    public AbstractTableInfo getTableInfo(String tableName, String fieldsInfo, Map<String, Object> props) {
        ImpalaSideTableInfo impalaSideTableInfo = new ImpalaSideTableInfo();
        impalaSideTableInfo.setType(CURR_TYPE);
        impalaSideTableInfo.setName(tableName);
        parseFieldsInfo(fieldsInfo, impalaSideTableInfo);

        parseCacheProp(impalaSideTableInfo, props);
        impalaSideTableInfo.setParallelism(MathUtil.getIntegerVal(props.get(ImpalaSideTableInfo.PARALLELISM_KEY.toLowerCase())));
        impalaSideTableInfo.setUrl(MathUtil.getString(props.get(ImpalaSideTableInfo.URL_KEY.toLowerCase())));
        impalaSideTableInfo.setTableName(MathUtil.getString(props.get(ImpalaSideTableInfo.TABLE_NAME_KEY.toLowerCase())));
        impalaSideTableInfo.setUserName(MathUtil.getString(props.get(ImpalaSideTableInfo.USER_NAME_KEY.toLowerCase())));
        impalaSideTableInfo.setPassword(MathUtil.getString(props.get(ImpalaSideTableInfo.PASSWORD_KEY.toLowerCase())));
        impalaSideTableInfo.setSchema(MathUtil.getString(props.get(ImpalaSideTableInfo.SCHEMA_KEY.toLowerCase())));
        impalaSideTableInfo.setDriverName("com.cloudera.impala.jdbc41.Driver");
        impalaSideTableInfo.setFastCheck(MathUtil.getBoolean(props.getOrDefault(RdbSideTableInfo.FAST_CHECK.toLowerCase(), true)));
        impalaSideTableInfo.setCheckProperties();

        if (MathUtil.getLongVal(props.get(impalaSideTableInfo.ERROR_LIMIT.toLowerCase())) != null) {
            impalaSideTableInfo.setErrorLimit(MathUtil.getLongVal(props.get(impalaSideTableInfo.ERROR_LIMIT.toLowerCase())));
        }

        //set authmech params
        Integer authMech = MathUtil.getIntegerVal(props.get(ImpalaSideTableInfo.AUTHMECH_KEY.toLowerCase()));

        authMech = authMech == null? 0 : authMech;
        impalaSideTableInfo.setAuthMech(authMech);
        List authMechs = Arrays.asList(0, 1, 2, 3);

        if (!authMechs.contains(authMech)){
            throw new IllegalArgumentException("The value of authMech is illegal, Please select 0, 1, 2, 3");
        } else if (authMech == 1) {
            impalaSideTableInfo.setPrincipal(MathUtil.getString(props.get(ImpalaSideTableInfo.PRINCIPAL_KEY.toLowerCase())));
            impalaSideTableInfo.setKeyTabFilePath(MathUtil.getString(props.get(ImpalaSideTableInfo.KEYTABFILEPATH_KEY.toLowerCase())));
            impalaSideTableInfo.setKrb5FilePath(MathUtil.getString(props.get(ImpalaSideTableInfo.KRB5FILEPATH_KEY.toLowerCase())));
            String krbRealm = MathUtil.getString(props.get(ImpalaSideTableInfo.KRBREALM_KEY.toLowerCase()));
            krbRealm = krbRealm == null? "HADOOP.COM" : krbRealm;
            impalaSideTableInfo.setKrbRealm(krbRealm);
            impalaSideTableInfo.setKrbHostFQDN(MathUtil.getString(props.get(ImpalaSideTableInfo.KRBHOSTFQDN_KEY.toLowerCase())));
            impalaSideTableInfo.setKrbServiceName(MathUtil.getString(props.get(ImpalaSideTableInfo.KRBSERVICENAME_KEY.toLowerCase())));
        } else if (authMech == 2 ) {
            impalaSideTableInfo.setUserName(MathUtil.getString(props.get(ImpalaSideTableInfo.USER_NAME_KEY.toLowerCase())));
        } else if (authMech == 3) {
            impalaSideTableInfo.setUserName(MathUtil.getString(props.get(ImpalaSideTableInfo.USER_NAME_KEY.toLowerCase())));
            impalaSideTableInfo.setPassword(MathUtil.getString(props.get(ImpalaSideTableInfo.PASSWORD_KEY.toLowerCase())));
        }

        //set partition params
        String enablePartitionStr  = (String) props.get(ImpalaSideTableInfo.ENABLEPARTITION_KEY.toLowerCase());
        boolean enablePartition = MathUtil.getBoolean(enablePartitionStr == null? "false":enablePartitionStr);
        impalaSideTableInfo.setEnablePartition(enablePartition);
        if (enablePartition) {
            String partitionfieldsStr = MathUtil.getString(props.get(ImpalaSideTableInfo.PARTITIONFIELDS_KEY.toLowerCase()));
            impalaSideTableInfo.setPartitionfields(StringUtils.split(partitionfieldsStr, ","));
            String partitionfieldTypesStr = MathUtil.getString(props.get(ImpalaSideTableInfo.PARTITIONFIELDTYPES_KEY.toLowerCase()));
            impalaSideTableInfo.setPartitionFieldTypes(StringUtils.split(partitionfieldTypesStr, ","));
            String partitionfieldValuesStr = MathUtil.getString(props.get(ImpalaSideTableInfo.PARTITIONVALUES_KEY.toLowerCase()));
            impalaSideTableInfo.setPartitionValues(setPartitionFieldValues(partitionfieldValuesStr));
        }

        impalaSideTableInfo.check();
        return impalaSideTableInfo;
    }
Reason:
Date: 2019/11/12
Company: www.dtstack.com

@author xiuzhu
impala/impala-side/impala-side-core/src/main/java/com/dtstack/flink/sql/side/impala/table/ImpalaSideParser.java