Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] support sink rowdata filter #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lyu302
Copy link

@lyu302 lyu302 commented Jan 13, 2023

Suport sink rowdata filter: accept function with return on StarRocksSinkRowBuilder。

With dynamic partition,we may get some data which the partition field value is out of start and end on properties settings。
For Example:

  1. Error data on log , 1754-08-31 06:48:43
  2. Kafka consume lag

The row is out of partition ranges. Please add a new partition..

Uage:

   @Override
    public void accept(Object[] objects, Row row) { 
         // filter with some condition
         if (filter) 
             return;

         objects[i] = row.getField(field);         
    }

@CLAassistant
Copy link

CLAassistant commented Jan 13, 2023

CLA assistant check
All committers have signed the CLA.

@lyu302 lyu302 changed the title support sink rowdata filter [Enhancement] support sink rowdata filter Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants