cube-js / cube-js/cube

Validate column existence in database

Open
#6,601 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

Hey folks 👋 !

**Is your feature request related to a problem? Please describe.**
As a cube JS user, i am frustrated not being able to confront my cube definition vs actual tables layout in database

**Describe the solution you'd like**
Ideally, a CLI command `npx cube-js validate-table-layout` would generate 1 SQL query per cube and 1 SQL query per view then dry run `(Where 1=2)` it against a given database to check column existence

**Describe alternatives you've considered**
I considered to build my own validation using a python script but it's cumberstone and would not benefit cube nor the comunity

**Additional context**
Such feature exist for [Looker for example](https://github.com/spectacles-ci/spectacles)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.