Skip to content

Commit cecdb6a

Browse files
committed
fix extendType parse object to comparable
1 parent 994b705 commit cecdb6a

File tree

1 file changed

+6
-4
lines changed
  • src/main/java/com/alipay/oceanbase/rpc/protocol/payload/impl

1 file changed

+6
-4
lines changed

src/main/java/com/alipay/oceanbase/rpc/protocol/payload/impl/ObObjType.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,12 @@ public ObObjMeta getDefaultObjMeta() {
13501350
* Parse to comparable.
13511351
*/
13521352
@Override
1353-
public Comparable parseToComparable(Object o, ObCollationType ct)
1354-
throws IllegalArgumentException,
1355-
FeatureNotSupportedException {
1356-
throw new FeatureNotSupportedException("ObUnknownType is not supported .");
1353+
public Comparable parseToComparable(Object o, ObCollationType ct) throws IllegalArgumentException{
1354+
if (o instanceof Long) {
1355+
return parseLong(this, o, ct);
1356+
} else{
1357+
return parseTextToComparable(this, o, ct);
1358+
}
13571359
}
13581360

13591361
}, // Min, Max, NOP etc.

0 commit comments

Comments
 (0)