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

Support update_field on dictionary materializations #352

Open
the4thamigo-uk opened this issue Sep 4, 2024 · 0 comments
Open

Support update_field on dictionary materializations #352

the4thamigo-uk opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@the4thamigo-uk
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Dictionaries that are backed by large clickhouse tables/queries typically are reloaded from the entire dataset. This may be inefficient if only a few rows have changed. There is an option to specify a field that enables new data to be identified, thereby minimizing the updated data.

Describe the solution you'd like
Support the update_field syntax in the dictionary materialization

Additional context
Add any other context or screenshots about the feature request here.

SOURCE(CLICKHOUSE(...
    update_field 'added_time'
    QUERY '
        SELECT my_arr.1 AS x, my_arr.2 AS y, creation_time
        FROM (
            SELECT arrayZip(x_arr, y_arr) AS my_arr, creation_time
            FROM dictionary_source
            WHERE {condition}
        )'
))
@the4thamigo-uk the4thamigo-uk added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant