Skip to content

Commit

Permalink
set relation_max_name_length to 1024 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 authored Dec 26, 2023
1 parent 1d15898 commit ab1874b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions dbt/adapters/risingwave/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ab1874b

Please sign in to comment.