hailin0 opened a new issue, #3956:
URL: https://github.com/apache/incubator-seatunnel/issues/3956

   ### Search before asking
   
   - [X] I had searched in the 
[feature](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22)
 and found no similar feature requirement.
   
   
   ### Description
   
   Currently only supports filter data rows based on kind, and needs to be 
extended to support filter based on field values or kind
   
   expected:
   ```hocon
   source {
   }
   
   transform {
     FilterRow {
       source_table_name = "fake"
       result_table_name = "fake1"
   
   
         // and conditions
       must = {
           field-x = {
               eq = 1
               not_eq = 1
               in = [1,2,3]
               not_id = [1,2,3]
               lt = 1
               lte = 1
               gl = 1
               gte = 1
               is_null = true
               not_null = true
           }
       }
       // not conditions
       must_not = {
           field-x = [xxx]
       }
       // or conditions
       should = {
   
       }
     }
   }
   
   sink {
   }
   ```
   
   Improve FilterRowKindTransform to FilterRowTransform:
   
https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/FilterRowKindTransform.java
   
https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/FilterRowKindTransformFactory.java
   
   update e2e:
   
https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-e2e/seatunnel-transforms-v2-e2e/src/test/java/org/apache/seatunnel/e2e/transform/TestFilterRowKindIT.java
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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]

Reply via email to