Skip to content
This repository has been archived by the owner on Dec 28, 2017. It is now read-only.

Commit

Permalink
Merge pull request #144 from pingcap/fix_unsupported_expr
Browse files Browse the repository at this point in the history
fix unsupported expr test
  • Loading branch information
Novemser committed Nov 16, 2017
2 parents 05a1f6a + 67bd8f6 commit d067630
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/pingcap/tikv/expression/TiExpr.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ public interface TiExpr extends Serializable {
Expr toProto();

default boolean isSupportedExpr() {
return true;
try {
Expr expr = toProto();
return expr != null;
} catch (Exception e) {
return false;
}
}

DataType getType();
Expand Down

0 comments on commit d067630

Please sign in to comment.