Skip to main content

Community

Row Filtering for child tables

Answered

Please sign in to leave a comment.

Comments

2 comments

  • Official comment

    Hi Adam,
    Can you help with more details like the tables you would want this? Filtering on the parent table would be the quickest option, but would love to know more details to see how we can improve the connector as well.

    Thanks,
    Unni

    Hi Unni,

    Absolutely, the `worker_custom_field` table is a long table containing tuples (name/value/type) of all custom fields/values added to the worker object.

    So, the columns are stored as data rows, which makes hashing the data unviable. 

    I would like to define a row filter for this table so we only ingest the data we need.

    An example filter in SQL would be something like
    ```

    SELECT worker_id, name, value, type

    WHERE name IN ('Proficient Languages', 'Favorite Movie')

    ```

    And then pivot these to actual columns downstream. 

    Some of the data in these custom fields can be sensitive, and we want to filter to only what we need.

    Thanks,

    Adam