public static SamzaSqlApplicationConfig getSqlConfig(List<String> sqlStmts, Config config) {
    List<SamzaSqlQueryParser.QueryInfo> queryInfo = fetchQueryInfo(sqlStmts);
    return new SamzaSqlApplicationConfig(config,
        queryInfo.stream().map(SamzaSqlQueryParser.QueryInfo::getSources).flatMap(Collection::stream)
            .collect(Collectors.toList()),
        queryInfo.stream().map(SamzaSqlQueryParser.QueryInfo::getSink)
            .collect(Collectors.toList()));
  }
Get {@link SamzaSqlApplicationConfig} given sql statements and samza config.
@param sqlStmts List of sql statements
@param config Samza config
@return {@link SamzaSqlApplicationConfig}
samza-sql/src/main/java/org/apache/samza/sql/dsl/SamzaSqlDslConverter.java