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

fix unsupported expr test #144

Merged
merged 1 commit into from Nov 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main/java/com/pingcap/tikv/expression/TiExpr.java
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