You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/06/11 11:01:00 UTC
[GitHub] [incubator-doris] chaoyli commented on a change in pull request
#1280: Support setting exec_mem_limit in ExportJob
chaoyli commented on a change in pull request #1280: Support setting exec_mem_limit in ExportJob
URL: https://github.com/apache/incubator-doris/pull/1280#discussion_r292397658
##########
File path: fe/src/main/java/org/apache/doris/analysis/ExportStmt.java
##########
@@ -221,10 +229,17 @@ private static void checkPath(String path) throws AnalysisException {
throw new AnalysisException("Invalid export path. please use valid 'HDFS://', 'AFS://' or 'BOS://' path.");
}
- private void checkProperties(Map<String, String> properties) throws AnalysisException {
+ private void checkProperties(Map<String, String> properties) throws UserException {
this.columnSeparator = PropertyAnalyzer.analyzeColumnSeparator(
properties, ExportStmt.DEFAULT_COLUMN_SEPARATOR);
this.lineDelimiter = PropertyAnalyzer.analyzeLineDelimiter(properties, ExportStmt.DEFAULT_LINE_DELIMITER);
+ if (properties != null && properties.containsKey(LoadStmt.EXEC_MEM_LIMIT)) {
+ try {
+ this.execMemLimit = Long.parseLong(properties.get(LoadStmt.EXEC_MEM_LIMIT));
+ } catch (NumberFormatException e) {
+ throw new DdlException("Execute memory limit is not Long", e);
+ }
+ }
Review comment:
OK
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org