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

declare used in queries in source breaks when loading into composer. #63

Open
anikaks opened this issue Nov 19, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@anikaks
Copy link
Contributor

anikaks commented Nov 19, 2022

My source contains this query

  query: by_destination_growth_rate is {
    declare: 
      flight2004 is flight_count {? dep_time: @2004}  // can use relative declarations
      flight2003 is flight_count {? dep_time: @2003}  //  also
    group_by: destination.name
    aggregate: 
      flight2004
      flight2003
      delta is flight2004 - flight2003
      growth is (flight2004 - flight2003)/flight2004*100
  }

When I load that query in composer, it fails to recognize the declared things:
Screen Shot 2022-11-18 at 4 02 30 PM

If I write out the definitions of flight2004 and flight2003 in each place they're referenced in the other fields it works.

@anikaks anikaks added the bug Something isn't working label Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant