rilldata/rill

Creating a mode.YAML with same name different case is not caught,

Opened this issue · 0 comments

Describe the bug
I created a model name Staging_to_CH.yaml and renaming it staging_to_CH.yaml I see the following error in the UI .

name collision: another resource of type "Model" is also named "staging_to_CH"

To Reproduce
Steps to reproduce the behavior:

  1. Create a Model.yaml
  2. Rename it to model.yaml
  3. See the error in the UI
  4. Technically it is correct since looking at the CH table, Staging_to_CH exists,

Expected behavior
When renaming the file, we should catch that there is already a name like that, like for model.SQL files. CH tables are not case-sensitive?

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2024-08-15 at 16 56 44

Additional context
Add any other context about the problem here.