Repository: incubator-systemml
Updated Branches:
  refs/heads/master 7e9accbc7 -> fe3b56402


[SYSTEMML-330] Fix jmlc metadata handling (no mtd reads on format check)

In order to avoid unnecessary configuration issues w/ hadoop when ran
through jmlc, we now also prevent mtd reads on csv format checks which
was missing before. 

we now   unnecessary meta data reads 

Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/fe3b5640
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/fe3b5640
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/fe3b5640

Branch: refs/heads/master
Commit: fe3b5640203e940b7ce34e4a1eb593620209e4d7
Parents: 7e9accb
Author: Matthias Boehm <[email protected]>
Authored: Thu Jan 14 20:44:22 2016 -0800
Committer: Matthias Boehm <[email protected]>
Committed: Fri Jan 15 10:18:34 2016 -0800

----------------------------------------------------------------------
 src/main/java/org/apache/sysml/parser/DataExpression.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/fe3b5640/src/main/java/org/apache/sysml/parser/DataExpression.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/parser/DataExpression.java 
b/src/main/java/org/apache/sysml/parser/DataExpression.java
index 04e964b..fbaf6a2 100644
--- a/src/main/java/org/apache/sysml/parser/DataExpression.java
+++ b/src/main/java/org/apache/sysml/parser/DataExpression.java
@@ -655,7 +655,7 @@ public class DataExpression extends DataIdentifier
                        }
                        
                        // check if file is delimited format
-                       if (formatTypeString == null) {
+                       if (formatTypeString == null && shouldReadMTD ) {
                                boolean isDelimitedFormat = 
checkHasDelimitedFormat(inputFileName, conditional); 
                                
                                if (isDelimitedFormat){

Reply via email to