risingwavelabs / dbt-risingwave

Apache License 2.0
21 stars 6 forks source link

feat: add create_indexes on table_with_connector and handle on_configuration_change #51

Closed MattiasMTS closed 1 month ago

MattiasMTS commented 1 month ago

EDIT Ok, as I mixed around with this a bit more I realized that if you do table_with_connector you occasionally might want to update the indexes on the table without having to re-create the entire table by running --full-refresh. Ergo, I refactored the on_configuration_change for the MWs to also be applied for the table_with_connector. A similar issue was raised to dbt-core recently: https://github.com/dbt-labs/dbt-core/issues/9510

This works as expected:

I have verified this on our test cluster but worth to perhaps start to add tests . Let me know what you think @chenzl25.


Smol fix, adding index creation on table_with_connector for SINK INTO kind of relations.