Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer column not getting mapped in the schema file for BQ #83

Open
tanvi-cota opened this issue Apr 17, 2019 · 3 comments
Open

Integer column not getting mapped in the schema file for BQ #83

tanvi-cota opened this issue Apr 17, 2019 · 3 comments
Labels
driver:bigquery Issues relating to the BigQuery driver enhancement New feature proposal help wanted Community contributions are welcome.

Comments

@tanvi-cota
Copy link

Describe the bug
I am currently using BigQuery as DB. I have column 'age' set as 'integer' in the table.
But the schema file in cube.js, does not show this column in dimension or in measures.

Expected behavior
All the columns that are present in the table, should be mapped in the dimension.

Version:
0.5.2

@paveltiunov
Copy link
Member

@tanvi-cota Hey Tanvi! Thanks for posting this! Do you expect that you'll get something like age in dimensions and averageAge in measures after schema is generated?

@paveltiunov paveltiunov added the enhancement New feature proposal label Apr 17, 2019
@tanvi-cota
Copy link
Author

@paveltiunov I would be doing something like 'treatment' in dimensions and age in filter (say > 50) and totalCount in measure

@paveltiunov paveltiunov added the help wanted Community contributions are welcome. label Apr 30, 2019
@hassankhan hassankhan added the driver:bigquery Issues relating to the BigQuery driver label Apr 26, 2021
@igorlukanin
Copy link
Member

igorlukanin commented Jun 12, 2021

I experienced this bug as well. The use case look very legitimate to me: I was creating the data schema for the tables from the TPC-H benchmark.

For the following table structure, I've got all columns in the data schema except for the int64_field_0 and int64_field_5.

The weird thing is that, indeed, I've got double_field_7 in the schema but mapped to the string type:

int64_field_0  | INTEGER | NULLABLE
string_field_1 | STRING  | NULLABLE
string_field_2 | STRING  | NULLABLE
string_field_3 | STRING  | NULLABLE
string_field_4 | STRING  | NULLABLE
int64_field_5  | INTEGER | NULLABLE
string_field_6 | STRING  | NULLABLE
double_field_7 | FLOAT   | NULLABLE
string_field_8 | STRING  | NULLABLE
string_field_9 | STRING  | NULLABLE

I really think Cube.js should generate dimensions for all columns in the dataset and then let a developer create relevant measures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
driver:bigquery Issues relating to the BigQuery driver enhancement New feature proposal help wanted Community contributions are welcome.
Projects
None yet
Development

No branches or pull requests

4 participants