JingsongLi commented on code in PR #6993:
URL: https://github.com/apache/paimon/pull/6993#discussion_r2684889384
##########
paimon-common/src/main/java/org/apache/paimon/predicate/Predicate.java:
##########
@@ -32,8 +35,16 @@
* @since 0.4.0
*/
@Public
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = Predicate.FIELD_TYPE)
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = LeafPredicate.class, name = LeafPredicate.NAME),
+ @JsonSubTypes.Type(value = CompoundPredicate.class, name =
CompoundPredicate.NAME)
+})
public interface Predicate extends Serializable {
-
+ String FIELD_TYPE = "type";
Review Comment:
"predicate"? "type" is confused to Data Type.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]