Skip to content

Automatic Casting to Float64 in Where clause Filters for Numeric Dimensions (Causing Clustering problems)Β #10083

@HassanAtWecrunch

Description

@HassanAtWecrunch

Problem

Hi, is there any way to make sure that dimensions with type: number get converted to int instead of float or is there any way to disable automatic casting?

Related Cube.js schema

org_id: {
      sql: org_id,
      type: number,
    },


time_period_id: {
      sql: time_period_id,
      type: number,
    },

These dimensions generate SQL like this:

Related Cube.js generated SQL

AND (fact.org_id = CAST(4 AS FLOAT64)) AND (fact.time_period_id = CAST(108 AS FLOAT64))

Since my columns are in integer it breaks my clustering optimization when wrong casting is happened.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    driver:bigqueryIssues related to the BigQuery driver

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions