diff --git a/README.md b/README.md index ea8f3e3..2d796dd 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,20 @@ The dbt models for managing data transformations in RisingWave is similar to typ To learn how to use, you can check RisingWave offical example [dbt_rw_nexmark](https://github.com/risingwavelabs/dbt_rw_nexmark). +## DBT RUN behavior + +- `dbt run`: only create new models (if not exists) without dropping any models. +- `dbt run --full-refresh`: drop models and create the new ones. This command can make sure your streaming pipelines are consistent with what you define in dbt models. + +## Graph operators + +[Graph operators](https://docs.getdbt.com/reference/node-selection/graph-operators) is useful when you want to only recreate a subset of your models. + +```sh +dbt run --select "my_model+" # select my_model and all children +dbt run --select "+my_model" # select my_model and all parents +dbt run --select "+my_model+" # select my_model, and all of its parents and children +``` ## Tests diff --git a/dbt/adapters/risingwave/relation.py b/dbt/adapters/risingwave/relation.py index e41a72a..00412cb 100644 --- a/dbt/adapters/risingwave/relation.py +++ b/dbt/adapters/risingwave/relation.py @@ -26,3 +26,8 @@ class RisingWaveRelation(PostgresRelation): @classproperty def get_relation_type(cls) -> Type[RisingWaveRelationType]: return RisingWaveRelationType + + # RisingWave has no limitation on relation name length. + # We set a relatively large value right now. + def relation_max_name_length(self): + return 1024 \ No newline at end of file