Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
fix for HIVE-1444
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Feb 14, 2012
1 parent 1cbef8e commit ac6f2c3
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ private URI initializeFromURI(String fromPath) throws IOException,

private void applyConstraints(URI fromURI, URI toURI, Tree ast,
boolean isLocal) throws SemanticException {
if (!fromURI.getScheme().equals("file")
&& !fromURI.getScheme().equals("hdfs")) {
throw new SemanticException(ErrorMsg.INVALID_PATH.getMsg(ast,
"only \"file\" or \"hdfs\" file systems accepted"));
}

// local mode implies that scheme should be "file"
// we can change this going forward
Expand Down Expand Up @@ -235,7 +230,7 @@ public void analyzeInternal(ASTNode ast) throws SemanticException {
}

// create final load/move work

String loadTmpPath = ctx.getExternalTmpFileURI(toURI);
Map<String, String> partSpec = ts.getPartSpec();
if (partSpec == null) {
Expand Down

0 comments on commit ac6f2c3

Please sign in to comment.