cube-js / cube-js/cube

Cube Store readily ingests CSV files with non-unique columns

Open
#3,485 1 comment 0 reactions 0 assignees View on GitHub
cube store
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
Cube Store loads a CSV file with pre-aggregated data and stores it without errors even if it contains non-unique columns (e.g., two columns with identical names).

**To Reproduce**
Steps to reproduce the behavior:
1. Create a pre-aggregation where a single dimension is references twice
2. Execute a query and trigger pre-aggregations build
3. The query will yield this error:
> Internal: Error during planning: Schema contains duplicate qualified field name "..."

**Expected behavior**
Cube Store fails to ingest data with non-unique columns and shows an error message clearly indicating the issue.

**Screenshots**
Screenshot 2021-09-24 at 14 22 36
Screenshot 2021-09-24 at 14 18 35

**Version:**
0.28.38

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.