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

[CT-2697] Can't use integers in measure expr #7865

Closed
2 tasks done
Tracked by #7498
Jstein77 opened this issue Jun 13, 2023 · 1 comment · Fixed by #7876
Closed
2 tasks done
Tracked by #7498

[CT-2697] Can't use integers in measure expr #7865

Jstein77 opened this issue Jun 13, 2023 · 1 comment · Fixed by #7876
Assignees
Labels
bug Something isn't working semantic Issues related to the semantic layer

Comments

@Jstein77
Copy link

Jstein77 commented Jun 13, 2023

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Can’t use 1 in expr. A measure like below will yield the following error: 1 is not valid under any of the given schemas

- name: orders
        expr: 1
        agg: sum

Expected Behavior

I should be able to use integers in expr key.

Steps To Reproduce

Create a measure like below and run dbt run

- name: orders
        expr: 1
        agg: sum

Relevant log output

No response

Environment

- OS:
- Python:
- dbt:

Which database adapter are you using with dbt?

No response

Additional Context

No response

@Jstein77 Jstein77 added bug Something isn't working triage labels Jun 13, 2023
@github-actions github-actions bot changed the title Can't use integers in measure expr [CT-2697] Can't use integers in measure expr Jun 13, 2023
@Jstein77
Copy link
Author

cc @QMalcolm

@dbeatty10 dbeatty10 added semantic Issues related to the semantic layer and removed triage labels Jun 14, 2023
@QMalcolm QMalcolm self-assigned this Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semantic Issues related to the semantic layer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants