commit | 0e1b67ffd20cbdbe6cfc36d867117dd1faa9dd6c | [log] [tgz] |
---|---|---|
author | buyingyi <buyingyi@eaa15691-b419-025a-1212-ee371bd00084> | Tue May 29 00:58:06 2012 +0000 |
committer | buyingyi <buyingyi@eaa15691-b419-025a-1212-ee371bd00084> | Tue May 29 00:58:06 2012 +0000 |
tree | 91050fd07a7387f33e5dd0eafa082db09e198e23 | |
parent | 5e1b288c5d6bb62998602e91c75f8118a96d8ec7 [diff] |
add field name into type mismatch error message git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_opentype@353 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/IntroduceStaticTypeCastRule.java b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/IntroduceStaticTypeCastRule.java index dfd462a..6597b44 100644 --- a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/IntroduceStaticTypeCastRule.java +++ b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/IntroduceStaticTypeCastRule.java
@@ -295,7 +295,7 @@ } // the input has extra fields if (!matched && !reqType.isOpen()) - throw new AlgebricksException("static type mismatch: including extra closed fields"); + throw new AlgebricksException("static type mismatch: including an extra closed field" + fieldName); } // backward match: match from required to actual @@ -338,7 +338,7 @@ nullFields[i] = true; } else { // no matched field in the input for a required closed field - throw new AlgebricksException("static type mismatch: miss a required closed field"); + throw new AlgebricksException("static type mismatch: miss a required closed field" + reqFieldName); } }